Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
#include <iostream> using namespace std; char(hack) { char hack; cout<<"which hacking do you wants to learn"<<hack<<endl; cin>>h
c++
1 Vote
2 Answers
23rd Jul 2018, 4:02 PM
Adarsh Thakur
#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }
solo
0 Votes
6 Answers
5th Nov 2021, 8:44 AM
Eman Mohamed Salem Mohamed
#include <iostream using namespace std; int main(a= 2); { while(a <=100) cout<<"this is even"<< a << ln; }
c++
0 Votes
9 Answers
28th Jan 2017, 5:33 AM
Scooby Doo
#include <iostream> using namespace std; int main() { string s = "SoloLearn"; cout << (s[1]==s[3]); }
c++
1 Vote
2 Answers
28th Mar 2023, 11:44 AM
Muhammad Bilal
using namespace std; struct student{ int roll; char name[30]; char fname[30]; float cgpa; } s[10]; int main (void) { }
c++
0 Votes
13 Answers
13th Dec 2017, 7:53 PM
Rehan Solangi
#include<iostream> #include<cstdlib> using namespace std; class student{ int rno; char name[10]; int m[6],n; float avg; public:
exceptional
handling
-2 Votes
2 Answers
9th May 2019, 3:04 PM
kumaran
Define namespaces and structs after main
c++
declaration
definition
main
namespace
struct
52 Votes
6 Answers
10th Nov 2018, 12:45 PM
Andrea Leoni
Can any one tell me in c++ where we use namespace std and where we not use it ???
c++
namespaces
0 Votes
8 Answers
15th Aug 2018, 5:16 PM
Samrat✌✌
What is the difference between #include <iostream> using namespace std; & #include <stdio.h>
c++
0 Votes
1 Answer
1st May 2017, 6:07 AM
Daniel Brož
Rearrange the code blocks to form a valid C++ program: #include <iostream> using namespace std; int main() { cout << "Awesome!
c++
-2 Votes
3 Answers
9th Dec 2016, 2:00 AM
Md Ãyõûb
Html xmlns attribute
html
namespace
xmlns
1 Vote
3 Answers
24th Apr 2020, 8:31 AM
ifl
#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 Votes
9 Answers
4th Jul 2017, 8:26 AM
Kushagra Agarwal
why when I write: #include <iostream> using namespace std; int main() { cout <<"Hello world!"; return 0 } int main() { ----It says ERROR
c++
cout
0 Votes
21 Answers
28th Jun 2016, 6:47 AM
L-ka
#include <iostream> using namespace std; int main() { int ages[5]; for (int i=0; i<5 ; ++i) { int min=ages[0
c++
1 Vote
5 Answers
10th Feb 2021, 5:43 PM
Med Iheb Harbaoui
What is the use of namespace std? Can it be replaced by another code??
c++
0 Votes
2 Answers
4th Aug 2016, 10:26 AM
Prabhat Chandra Dwivedi
#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 Votes
9 Answers
28th Feb 2017, 6:06 AM
Aneesh Satheesh
after namespace std I have putted int main without space in third unfortunately it stops please help
c++
0 Votes
5 Answers
15th Jul 2016, 3:39 PM
shubham chourasia
#include<iostream> using namespace std; int main(){ int x=3; int y=2; x++; y*=x++ - ++y * ++x ;
operators
2 Votes
3 Answers
23rd Feb 2018, 12:01 AM
stop.ol
What's namespace and what's it's use and why main function is declared inside namespace........
c#
input
0 Votes
2 Answers
4th Jan 2017, 6:15 PM
Nitin Kumar
¿Qué es una librería estándar? / What is a std library?
namespace
std;
using
1 Vote
4 Answers
3rd Jan 2020, 1:49 AM
JOHNNIE MONDRAGÓN FUENTES
In where we really use this expression "using namespace std ; " in c++ ?
c++
llibrary
namespaces
standard
std
using
1 Vote
1 Answer
12th Sep 2018, 5:56 AM
Atik🇧🇩
Why write using namespace std Even program execute without it and when we use it gives error please explain
c++
4 Votes
4 Answers
12th Nov 2016, 1:16 AM
Mithun Verma
What is difference between "using namespace std; , return 0;" and "conio.h , clrscr(); , getch();"
c++
0 Votes
3 Answers
16th Feb 2017, 8:11 PM
Jayesh Waghmare
#include <iostream> using namespace std; int main() { int x=10; int y=x+++x+++x; cout<<y; return 0; }
c++
1 Vote
2 Answers
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 Vote
4 Answers
20th Nov 2016, 7:28 PM
aniket gupta
#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 Votes
1 Answer
25th Jun 2017, 4:20 PM
Ahaa mark
Fill in the blanks tobuse the name space for include iostream dash namespace dash
c++
0 Votes
1 Answer
26th Jul 2019, 11:10 AM
TIE PIE VINES
#include <iostream> using namespace std; int main(){ float a,b; for(int i=1;i<1000;++i){ cin>>a; cin>>b; flo
ian
0 Votes
1 Answer
10th Dec 2017, 4:20 PM
Ian
#include <iostream> using namespace std; int main() { int i=2; i=i++; cout<<"Result : " <<i++ + i++; return 0;}
c
c++
java
math
problem
5 Votes
2 Answers
4th May 2017, 10:32 AM
P∆WAN M∆URY∆
cout does not name a type? i am getting this error. I used namespace std;
c++
0 Votes
1 Answer
29th Sep 2018, 3:30 PM
chandrika dadhirao
What is difference between include directive and using directive? Using directive is appropriate or namespace directive
c#
headerfile
0 Votes
3 Answers
4th Dec 2016, 3:37 PM
Muhammad Farhan
CAN WE WRITE include <iostream> and below that using namespace std; and int main () in pc
cpp
how
start
to
0 Votes
4 Answers
5th Jul 2017, 4:12 PM
Aryan Shiv . R
Why we write #using namespace std# when we code in code blocks but not in Turbo C++
c++
0 Votes
4 Answers
24th Mar 2017, 12:38 AM
Serjeel Ranjan
A namespace cannot directly contain members such as fiels and methods. - error What it means?
c#
0 Votes
2 Answers
21st Jul 2018, 2:38 PM
Rose Loreles
#include <iostream> using namespace std; int main() { int a=10,c=2,b; b=a>>c; cout<<b; return 0; }
c++
increment
0 Votes
2 Answers
28th Aug 2017, 8:19 AM
Rishabh Rai
What is the main purpose of using "using namespace std" in c++ coding? Is it possible to skip this step or any alternative?
c++
1 Vote
11 Answers
27th Jul 2017, 10:55 PM
Vinamra Kishore
#include<iostream> using namespace std; void f(int n) { if (n == 1 || n == 0) return; else { cout <
c
c++
recursion
0 Votes
5 Answers
2nd Jun 2019, 7:41 AM
Shehroz Irfan
(::) in java
::
java
namespace
1 Vote
1 Answer
18th May 2019, 3:15 AM
Abdol Hashimi
#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 Vote
17 Answers
20th Jun 2016, 7:19 AM
Amrisha singh bhadoria
#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }
c++
variables
0 Votes
4 Answers
20th Jun 2017, 10:24 AM
radhalakshmi arjun
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 Votes
5 Answers
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 Votes
4 Answers
18th Apr 2018, 8:00 AM
Adarsh Thakur
include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ;
code
1 Vote
1 Answer
20th Jun 2020, 1:48 AM
Buneodbek
Where I can find a namespace that contains classes which works with buttons and so one in Unity?
unity
0 Votes
3 Answers
14th Aug 2018, 10:37 AM
GGLinker
why this output 0 ? #include <iostream> using namespace std; int main() { double x=(7%6)/2*5; cout<<x; }
c++
0 Votes
3 Answers
30th Aug 2016, 5:15 PM
Lekhraj Singh
C++ advises
c++
etc
namespace
std;
std::cout
using
1 Vote
17 Answers
23rd Sep 2019, 4:36 PM
Joseph Ahouandjinou
Why am i having this problem? The type or namespace system could not be found are you missing an assembly reference?
c#
0 Votes
5 Answers
1st Aug 2019, 3:23 PM
Raphaelle Gideon Manicat
#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 Votes
2 Answers
26th May 2021, 8:09 AM
زينب حيدر مضر رديف
In C++ STL, does every name exist only once?
c++
collision
name
namespace
stl
9 Votes
2 Answers
8th May 2019, 3:46 PM
HonFu
Predict the output of the given program ? #include<iostream> using namespace std; int main() { int m=7,k=3; k+=m++; m=++k; k=k++; m+=++k; cout<<m<<" "<<k; return 0; }
c++
4 Votes
11 Answers
20th Aug 2016, 5:37 PM
Muhammed cp
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
5
6
7
...
9
Next >
Hot today
Javascript
3 Votes
I Had Solve My Own Way But I See Others Method which I had added as Comented code I don't Understand Working Can You explain me?
2 Votes
What i do?in html intermediate level i dont like.
2 Votes
How to get mentor in solo learn.any mentor who response my activity🥹
1 Votes
What is late happening in late binding
1 Votes
Why text takes time to load
1 Votes
Why my code closes when i choose a border and submit?
0 Votes
Digital currency
1 Votes
Did You resolve Calculating The Discount?
0 Votes
I had an issue, I have PRO version, but not unlimited lives.
1 Votes