Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Cennik
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b; c=a+b; c=a-b; cout<<c; return 0; }
c++
1 Głos
7 odpowiedzi
30th May 2018, 8:21 AM
Bunny
#include <iostream> #include <iomanip> using namespace std; int main(); { int n[10]; for(int i=0;i<10;i++) cout<<"element"<<s
no
-1 Głos
4 odpowiedzi
18th Aug 2020, 3:40 AM
Mairaj jamali
#include <iostream> using namespace std; int main() { int x = 15/(3*(5/3)); cout << x; return 0;} D output wz 5 hw
operators
3 głosów
9 odpowiedzi
29th Mar 2018, 6:32 AM
JeClives
#include <iostream> #include <string> using namespace std; class myClass { public: void setName(string x) {
encapsulation
0 głosów
3 odpowiedzi
21st May 2020, 6:22 PM
Salini Selvam
#include <iostream> using namespace std; int main() { //print "C++ is cool" return 0; }
answer
it
please
1 Głos
2 odpowiedzi
7th Oct 2021, 7:05 AM
Trupti Giri
#include <iostream> using namespace std; int main() { cout<<12+"good morning\n"-24; return 0; }
c++
1 Głos
1 Odpowiedź
4th May 2017, 6:20 PM
siddiqui junaid
#include <iostream> using namespace std; int main(){ int age; cout<<"Please enter age"; cin>>age; int group; while(ag
c++
2 głosów
3 odpowiedzi
17th Sep 2020, 5:32 AM
Nurul Izzati
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 11; } is something wrong
program
0 głosów
8 odpowiedzi
18th May 2018, 3:08 PM
Shivam Kumar
#Include <Iostream> using namespace std; { Int num=1 While(num<6) { Cout<< "Number"<< num<<endl; Num=num+3; } }
c++
1 Głos
6 odpowiedzi
12th Apr 2017, 7:12 PM
Abdi
#include <iostream> using namespace std; int main() { int a[]={1,2,3,4}; for(int x=0;x<4;x++) { a[0]+=a[x]; }
c++
1 Głos
2 odpowiedzi
3rd May 2019, 3:06 AM
Husaain Naqvi
#include <iostream> using namespace std; void printSomething(int x) { cout << x; } int main() { printSomething(42); }
<b>
1 Głos
4 odpowiedzi
14th Apr 2018, 12:20 PM
TOKOLLO COLLEN
#include <iostream> using namespace std; int main() { int x=2; cout <<(x-++--x); return 1; }
c++
data-types
0 głosów
4 odpowiedzi
25th Sep 2016, 12:40 PM
Sourabh Goyal
C++ why std:: at every line instead of adding just once user namespace std;
namespace
std::
user
1 Głos
1 Odpowiedź
20th Sep 2018, 6:22 PM
Sabine Meijran-Prins
#include <iostream> using namespace std; int main() { int a=1 ,b; a=b; cout << b+a; return 0; }
variables
1 Głos
8 odpowiedzi
25th Jan 2019, 6:42 AM
Akash Kumar
#include <iostream> using namespace std; char(hack) { char hack; cout<<"which hacking do you wants to learn"<<hack<<endl; cin>>h
c++
1 Głos
2 odpowiedzi
23rd Jul 2018, 4:02 PM
Adarsh Thakur
is this code wrong # include <iostream> using namespace std; int main() { int age; cin>> age; switch(
c++
0 głosów
6 odpowiedzi
17th Feb 2020, 9:52 PM
MÆŘEÁLT
#include <iostream> using namespace std; //Compiler version g++ 6.3.0 int main() { int myVariable = 10; "Cout" << "myvari
print
0 głosów
7 odpowiedzi
26th Aug 2020, 11:11 AM
JASHANPREET SINGH
Please someone tell me why we using "using name space std; in program
sanjeev
0 głosów
2 odpowiedzi
2nd Feb 2017, 4:21 AM
sanjeev Kumar
#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }
solo
0 głosów
6 odpowiedzi
5th Nov 2021, 8:44 AM
Eman Mohamed Salem Mohamed
#include <iostream> using namespace std; int main() { string s = "SoloLearn"; cout << (s[1]==s[3]); }
c++
1 Głos
2 odpowiedzi
28th Mar 2023, 11:44 AM
Muhammad Bilal
#include <iostream using namespace std; int main(a= 2); { while(a <=100) cout<<"this is even"<< a << ln; }
c++
0 głosów
9 odpowiedzi
28th Jan 2017, 5:33 AM
Scooby Doo
#include<iostream> #include<cstdlib> using namespace std; class student{ int rno; char name[10]; int m[6],n; float avg; public:
exceptional
handling
-2 głosów
2 odpowiedzi
9th May 2019, 3:04 PM
kumaran
What is the difference between #include <iostream> using namespace std; & #include <stdio.h>
c++
0 głosów
1 Odpowiedź
1st May 2017, 6:07 AM
Daniel Brož
using namespace std; struct student{ int roll; char name[30]; char fname[30]; float cgpa; } s[10]; int main (void) { }
c++
0 głosów
13 odpowiedzi
13th Dec 2017, 7:53 PM
Rehan Solangi
C++ advises
c++
etc
namespace
std;
std::cout
using
1 Głos
17 odpowiedzi
23rd Sep 2019, 4:36 PM
Joseph Ahouandjinou
#include <iostream> #include <chrono> using namespace std; using namespace std::chrono; int main() { int arr1[10], i, j, temp;
cpp
1 Głos
4 odpowiedzi
2nd Feb 2020, 7:01 PM
ivy jepkirui
Rearrange the code blocks to form a valid C++ program: #include <iostream> using namespace std; int main() { cout << "Awesome!
c++
-2 głosów
3 odpowiedzi
9th Dec 2016, 2:00 AM
Md Ãyõûb
#include <iostream> using namespace std; int main() { int ages[5]; for (int i=0; i<5 ; ++i) { int min=ages[0
c++
1 Głos
5 odpowiedzi
10th Feb 2021, 5:43 PM
Med Iheb Harbaoui
#include <iostream> using namespace std; int main() { int x=10,y=20; int *ptr = &x; int &ref= y; *ptr++; ref++; cout<<x<<y
c++
code
output
0 głosów
9 odpowiedzi
4th Jul 2017, 8:26 AM
Kushagra Agarwal
#include<iostream> using namespace std; int main(){ int x=3; int y=2; x++; y*=x++ - ++y * ++x ;
operators
2 głosów
3 odpowiedzi
23rd Feb 2018, 12:01 AM
stop.ol
#include <iostream> using namespace std; int main() { int k=5; int m; m=(m=5)+(++k+k++ + ++k+k++); cout<<m<<" "<<k; return 0; }
c++
cascading
doubt
help
increment
0 głosów
9 odpowiedzi
28th Feb 2017, 6:06 AM
Aneesh Satheesh
What is difference between "using namespace std; , return 0;" and "conio.h , clrscr(); , getch();"
c++
0 głosów
3 odpowiedzi
16th Feb 2017, 8:11 PM
Jayesh Waghmare
#include <iostream> #include<cctype> #include<string> using namespace std; void PersonalDetails() { string name1,name2; int age;
c++
help
in
is
it
me
please
strings
0 głosów
1 Odpowiedź
25th Jun 2017, 4:20 PM
Ahaa mark
#include <iostream> using namespace std; int main(){ float a,b; for(int i=1;i<1000;++i){ cin>>a; cin>>b; flo
ian
0 głosów
1 Odpowiedź
10th Dec 2017, 4:20 PM
Ian
why when I write: #include <iostream> using namespace std; int main() { cout <<"Hello world!"; return 0 } int main() { ----It says ERROR
c++
cout
0 głosów
21 odpowiedzi
28th Jun 2016, 6:47 AM
L-ka
#include <iostream> using namespace std; int main() { int x=10; int y=x+++x+++x; cout<<y; return 0; }
c++
1 Głos
2 odpowiedzi
25th Feb 2017, 2:40 PM
kumar Saurav
using namespace std; int main() { int x=5.0,negsum; int countneg=0; if(x<0.0) { negsum=negsum+x; countneg=countneg+1; } ret
c++
-1 Głos
4 odpowiedzi
20th Nov 2016, 7:28 PM
aniket gupta
cout does not name a type? i am getting this error. I used namespace std;
c++
0 głosów
1 Odpowiedź
29th Sep 2018, 3:30 PM
chandrika dadhirao
CAN WE WRITE include <iostream> and below that using namespace std; and int main () in pc
cpp
how
start
to
0 głosów
4 odpowiedzi
5th Jul 2017, 4:12 PM
Aryan Shiv . R
#include <iostream> using namespace std; int main() { int i=2; i=i++; cout<<"Result : " <<i++ + i++; return 0;}
c
c++
java
math
problem
5 głosów
2 odpowiedzi
4th May 2017, 10:32 AM
P∆WAN M∆URY∆
#include <iostream> using namespace std; int main() { int a=10,c=2,b; b=a>>c; cout<<b; return 0; }
c++
increment
0 głosów
2 odpowiedzi
28th Aug 2017, 8:19 AM
Rishabh Rai
#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }
c++
variables
0 głosów
4 odpowiedzi
20th Jun 2017, 10:24 AM
radhalakshmi arjun
include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ;
code
1 Głos
1 Odpowiedź
20th Jun 2020, 1:48 AM
Buneodbek
#include<iostream> using namespace std; void f(int n) { if (n == 1 || n == 0) return; else { cout <
c
c++
recursion
0 głosów
5 odpowiedzi
2nd Jun 2019, 7:41 AM
Shehroz Irfan
why this output 0 ? #include <iostream> using namespace std; int main() { double x=(7%6)/2*5; cout<<x; }
c++
0 głosów
3 odpowiedzi
30th Aug 2016, 5:15 PM
Lekhraj Singh
What is the final value of y? //Program #include<iostream> using namespace std; int main() { int y; for(y=2;y<=6;y+=2) cout<<y; }
c++
2 głosów
5 odpowiedzi
14th Sep 2016, 2:14 PM
Venus
#include <iostream> using namespace std; int main; { int a=2; do { cout <<a<<endl; a++; } while(a<985); return 0; }
loops
0 głosów
4 odpowiedzi
18th Apr 2018, 8:00 AM
Adarsh Thakur
#include<iostream> using namespace std; int main () { int a,b; int sum=a+b; cout<<"enter a number"; cin>>a; cout<<"enter another number"; cin b; cout<<" sum is"<<sum<<endl; return 0; }
c++
variables
1 Głos
17 odpowiedzi
20th Jun 2016, 7:19 AM
Amrisha singh bhadoria
#include<iostream> using namespace std; int pri(int a) {int i; for(i=2;i<a;i++) if(a%i==0) return 0; else return 1;} int main(){
c++
0 głosów
2 odpowiedzi
26th May 2021, 8:09 AM
زينب حيدر مضر رديف
#include <iostream> using namespace std; int main() { int i=0; for(;i<5;i+=3){ i=i*i; }cout<<i; return 0; }
cpp_output
0 głosów
1 Odpowiedź
21st Oct 2017, 6:00 AM
Sharad Suryavanshi
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
< Do tyłu
1
2
3
4
Dalej >
Popularne dzisiaj
Is anyone else annoyed about lives?
1 Votes
Naming Variables
0 Votes
Times up quiz has error
0 Votes
JavaScript concept of "toggle" while doing nav Bar
0 Votes
JavaScript functions
0 Votes
Help what is wrong with this code I can't run it
0 Votes
What happens if a function reach "return" statemt.
0 Votes
Cell Growth bugged?
0 Votes
Job
0 Votes
Library and modules
0 Votes