Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit 677cda8

Browse files
committed
vscode remov
1 parent 658728e commit 677cda8

31 files changed

Lines changed: 444 additions & 3 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <iostream>
2+
#include <vector>
3+
4+
using namespace std;
5+
6+
int main()
7+
{
8+
vector<
9+
cout << "Hello world!" << endl;
10+
return 0;
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include<unordered_map>
2+
#include<iostream>
3+
using namespace std;
4+
int main(){
5+
unordered_map<int,int,int>mp;
6+
mp[5]=12;
7+
mp[4]=14;
8+
mp[6]=17;
9+
cout<<mp[5]<<' '<<mp[4]<<' '<<mp[6]<<endl;//prints: 12 14
10+
}
43.6 KB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<CodeBlocks_project_file>
3+
<FileVersion major="1" minor="6" />
4+
<Project>
5+
<Option title="practices" />
6+
<Option pch_mode="2" />
7+
<Option compiler="gcc" />
8+
<Build>
9+
<Target title="Debug">
10+
<Option output="bin/Debug/practices" prefix_auto="1" extension_auto="1" />
11+
<Option object_output="obj/Debug/" />
12+
<Option type="1" />
13+
<Option compiler="gcc" />
14+
<Compiler>
15+
<Add option="-g" />
16+
</Compiler>
17+
</Target>
18+
<Target title="Release">
19+
<Option output="bin/Release/practices" prefix_auto="1" extension_auto="1" />
20+
<Option object_output="obj/Release/" />
21+
<Option type="1" />
22+
<Option compiler="gcc" />
23+
<Compiler>
24+
<Add option="-O2" />
25+
</Compiler>
26+
<Linker>
27+
<Add option="-s" />
28+
</Linker>
29+
</Target>
30+
</Build>
31+
<Compiler>
32+
<Add option="-Wall" />
33+
<Add option="-fexceptions" />
34+
</Compiler>
35+
<Unit filename="main.cpp" />
36+
<Extensions>
37+
<envvars />
38+
<code_completion />
39+
<debugger />
40+
</Extensions>
41+
</Project>
42+
</CodeBlocks_project_file>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<CodeBlocks_layout_file>
3+
<FileVersion major="1" minor="0" />
4+
<ActiveTarget name="Debug" />
5+
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="5" zoom_2="0">
6+
<Cursor>
7+
<Cursor1 position="138" topLine="0" />
8+
</Cursor>
9+
</File>
10+
</CodeBlocks_layout_file>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include <iostream>
2+
#include <vector>
3+
4+
using namespace std;
5+
6+
int main()
7+
{
8+
vector<int> g1;
9+
for(int i=1;i<=5;i++)
10+
g1.push_back(i);
11+
cout<<"Output of begin and end : "<<endl;
12+
13+
for(auto i=g1.begin();i!=g1.end();++i)
14+
cout<<*i<<"\n";
15+
16+
for(auto i=g1.cbegin();i!=g1.cend();++i)
17+
cout<<*i<<"\n";
18+
19+
for(auto ir=g1.rbegin();ir!=g1.rend();++ir)
20+
cout<<*ir<<"\n";
21+
22+
for(auto ir=g1.crbegin();ir!=g1.crend();++ir)
23+
cout<<*ir<<"\n";
24+
25+
26+
cout<<"Size => "<<g1.size()<<endl;
27+
//cout << "Hello world!" << endl;
28+
return 0;
29+
}
33.1 KB
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include<stdio.h>
2+
#include<stdlib.h>
3+
//#include<cstdlib.h>
4+
5+
int main(int argc, char* argv[argc+1]){
6+
puts("Hello World!");
7+
if(argc>1){
8+
while(true){
9+
puts("Some progs never stops");
10+
}
11+
} else{
12+
do{
13+
puts("But this one does!");
14+
}while(false);
15+
}
16+
return EXIT_SUCCESS;
17+
}
16.2 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//✗ gcc -std=c99 -Wall -o encounter encounter.c -lm
2+
3+
#include<stdlib.h>
4+
#include<stdio.h>
5+
6+
int main(void){
7+
double A[5] = {
8+
[0] = 9.0,
9+
[1] = 2.9,
10+
[4] = 3.E+25,
11+
[3] = .00007,
12+
};
13+
14+
for(size_t i=0;i<5;i++)
15+
{
16+
printf("element %zu is %g, \tits square is %g\n",
17+
i,
18+
A[i],
19+
A[i]*A[i]);
20+
}
21+
22+
return EXIT_SUCCESS;
23+
}
24+

0 commit comments

Comments
 (0)