Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
#include <iostream> using namespace std; int main() { int a=1 ,b; a=b; cout << b+a; return 0; }
variables
1 Voto
8 Respuestas
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 Voto
2 Respuestas
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 Votos
6 Respuestas
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 Votos
7 Respuestas
26th Aug 2020, 11:11 AM
JASHANPREET SINGH
#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }
solo
0 Votos
6 Respuestas
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 Voto
2 Respuestas
28th Mar 2023, 11:44 AM
Muhammad Bilal
What is the difference between #include <iostream> using namespace std; & #include <stdio.h>
c++
0 Votos
1 Respuesta
1st May 2017, 6:07 AM
Daniel Brož
Why we cant be able pit header file i.e- <iostream.h> instead of <iostream>
headings
1 Voto
1 Respuesta
18th Dec 2017, 3:01 PM
Sudesh Kumar
Can <.h> & <iostream> header file be run in the same compiler code blocks 16.01?
c/c++
compiler
0 Votos
3 Respuestas
20th Apr 2017, 2:12 PM
Jalal Uddin
#include <iostream> #include <chrono> using namespace std; using namespace std::chrono; int main() { int arr1[10], i, j, temp;
cpp
1 Voto
4 Respuestas
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 Votos
3 Respuestas
9th Dec 2016, 2:00 AM
Md Ãyõûb
#include <iostream> int main(int argc, char **argv) { std::cout << 25u - 50; return 0; }
sololearners
0 Votos
2 Respuestas
21st Jul 2020, 1:17 PM
i Ebenezer
#include <iostream> using namespace std; int main() { int ages[5]; for (int i=0; i<5 ; ++i) { int min=ages[0
c++
1 Voto
5 Respuestas
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 Votos
9 Respuestas
4th Jul 2017, 8:26 AM
Kushagra Agarwal
#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 Votos
9 Respuestas
28th Feb 2017, 6:06 AM
Aneesh Satheesh
why when I write: #include <iostream> using namespace std; int main() { cout <<"Hello world!"; return 0 } int main() { ----It says ERROR
c++
cout
0 Votos
21 Respuestas
28th Jun 2016, 6:47 AM
L-ka
#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 Votos
1 Respuesta
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 Votos
1 Respuesta
10th Dec 2017, 4:20 PM
Ian
#include <iostream> using namespace std; int main() { int x=10; int y=x+++x+++x; cout<<y; return 0; }
c++
1 Voto
2 Respuestas
25th Feb 2017, 2:40 PM
kumar Saurav
CAN WE WRITE include <iostream> and below that using namespace std; and int main () in pc
cpp
how
start
to
0 Votos
4 Respuestas
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 Votos
2 Respuestas
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 Votos
2 Respuestas
28th Aug 2017, 8:19 AM
Rishabh Rai
Can you guys tell me what is the difference between header <iostream> and <stdio.h> ?
c++
0 Votos
2 Respuestas
5th Mar 2016, 9:43 AM
NaMan GuPta
#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }
c++
variables
0 Votos
4 Respuestas
20th Jun 2017, 10:24 AM
radhalakshmi arjun
include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ;
code
1 Voto
1 Respuesta
20th Jun 2020, 1:48 AM
Buneodbek
why this output 0 ? #include <iostream> using namespace std; int main() { double x=(7%6)/2*5; cout<<x; }
c++
0 Votos
3 Respuestas
30th Aug 2016, 5:15 PM
Lekhraj Singh
#include <iostream> using namespace std; int main; { int a=2; do { cout <<a<<endl; a++; } while(a<985); return 0; }
loops
0 Votos
4 Respuestas
18th Apr 2018, 8:00 AM
Adarsh Thakur
i know about #include <stdio.h> header file ,is we can replace with <iostream> header file with < stdio.h > ??
,is
<stdio.h>
about
can
file
header
i
include
know
we
0 Votos
4 Respuestas
14th Jul 2018, 5:31 AM
BANDI SAGAR
C++ Library question
<iostream>
c++
std
0 Votos
2 Respuestas
1st Jan 2018, 10:25 AM
caglar anil arkes
#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 Votos
1 Respuesta
21st Oct 2017, 6:00 AM
Sharad Suryavanshi
#include <iostream> using namespace std; int main() { int x; int i=3; x=++i + i++; cout << x; return 0; }
c++
3 Votos
3 Respuestas
16th Jul 2016, 3:09 AM
s v sagar sagar
why this output 2 not 3 ? #include <iostream> using namespace std; int main() { int x=1; x=x++; cout<<++x; }
c++
0 Votos
5 Respuestas
25th Aug 2016, 12:33 PM
Lekhraj Singh
#include <string> #include <iostream> using namespace std; int main() { string colour = "black" ; cout <<" chge"; return 0;}
c++
0 Votos
2 Respuestas
31st Jul 2018, 9:01 PM
Piyush Goyal
#include <iostream> using namespace std; int main() { int a; for ( a = 10; a <= 100; a+=10){ cout << a << endl;
c++
for
loops
8 Votos
5 Respuestas
6th May 2017, 2:32 AM
MUʜAMMED ɪʟʟYAS
#include <iostream> using namespace std; int main() {int a, b, sum= a+b; cout << "Enter 1st number \n"; cin >> a; cout << a <<
ggy
2 Votos
3 Respuestas
4th Jul 2018, 4:24 PM
Haruki
What is the reason behind using the line using namespace std... And why not <iostream.h> is used why only <iostream> is used?!
c++
5 Votos
3 Respuestas
22nd Jun 2017, 8:38 AM
Simran Jamadar
why output llo? could explain? #include <iostream> using namespace std; int main() { char *pString="hello"; pString+=2; cout<<pString; }
c++
1 Voto
2 Respuestas
23rd Aug 2016, 10:48 AM
Lekhraj Singh
#include <iostream> using namespace std; int main() { cout<<(0==0); return 0; } why the output is 1??
c++
0 Votos
2 Respuestas
18th Sep 2016, 3:53 PM
Krishna Vashista
#include <iostream> using namespace std; int manin() { int a,b; int sum=a+b; cout<< "plz insert the for a ....\n"; cin>>a; cout
if-statements
0 Votos
3 Respuestas
7th Nov 2019, 5:18 AM
Nancy Choudhary
Can anyone please fix my code? I'm trying to compute the weight and the amount of coin (Basic)
<iostream>
c++
coin
help
me
1 Voto
6 Respuestas
22nd Mar 2021, 8:48 AM
Jessica Zarate
#include <iostream> #include <string> using namespace std; int main() { char *p= "this"; p+=2; char c= 1 + *p; cout <<c;
c++
code
0 Votos
4 Respuestas
3rd Jul 2017, 5:09 PM
Kushagra Agarwal
#include <iostream> using namespace std; int main() { cout<< "Alcacer 2 goals, CR7 1 goal"; cout<< "CR7 is old like Chi
c++
variables
1 Voto
3 Respuestas
8th Nov 2017, 10:27 AM
EGENTI PRECIOUS C.
I wrote this using devc++ and it ran properly on windws but when i ran it using solo learn it skipped some of the stages, help
<iostream>
include
Namespace
Using
0 Votos
3 Respuestas
9th Feb 2017, 12:49 PM
Caul:
#include <iostream> using namespace std; int main() { int num = 1; while (num < 7) { cout << "Number: " << num
sa
0 Votos
3 Respuestas
23rd May 2019, 5:22 AM
alif sadam
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5)
loops
-1 Voto
2 Respuestas
25th Oct 2020, 1:43 PM
Sada
Solve it if you are genuis!!!! What is the output of this code? #include <iostream> using namespace std; int main(){ for(int class=0;class<5;class++) { cout<<class<<endl; } return 0;}
c++
1 Voto
9 Respuestas
8th Sep 2016, 11:05 AM
Aklil Asregid
Please tell me......Why to use <iostream> while I had learned to use <iostream.h> for any program tell me some more.
c++
1 Voto
2 Respuestas
18th May 2017, 3:15 PM
Sugt
I'm confused because I just starting to learn C++. What is the difference between <iostream> and <iostream.h> ? I can't run the second one.
c++
cout
0 Votos
6 Respuestas
31st Jul 2016, 1:44 PM
kenn lingcay
Why in Turbo C++ wont run the #include <iostream> ?? But ive tried the #include <iostream.h> ,and it worked. what is the dif.?
c++
loops
0 Votos
5 Respuestas
2nd Feb 2017, 2:34 PM
Joshua Mendoza
#include <iostream> using namespace std; int main() { int i = 3; i = ++i + i++; cout<<i; return 0; }
c++
0 Votos
3 Respuestas
8th Aug 2016, 8:49 PM
Michael Murandu
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
2
3
4
5
Siguiente >
En tendencia hoy
Someone can help me
1 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
1 Votes
I am a super beginner
0 Votes
X velocity
0 Votes
Img & web server or personal info
0 Votes
I want to make a triangle area calculator ,anybody can teach me
1 Votes
How this program executes?
0 Votes
Pls give me an idea
1 Votes
How to achieve "Sololearner" achievement?
0 Votes