Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Цены
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }
solo
0 голосов
6 ответов
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 голосов
9 ответов
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 голос
2 ответов
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 голосов
13 ответов
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 голосов
2 ответов
9th May 2019, 3:04 PM
kumaran
Define namespaces and structs after main
c++
declaration
definition
main
namespace
struct
52 голосов
6 ответов
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 голосов
8 ответов
15th Aug 2018, 5:16 PM
Samrat✌✌
What is the difference between #include <iostream> using namespace std; & #include <stdio.h>
c++
0 голосов
1 ответ
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 голосов
3 ответов
9th Dec 2016, 2:00 AM
Md Ãyõûb
Html xmlns attribute
html
namespace
xmlns
1 голос
3 ответов
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 голосов
9 ответов
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 голосов
21 ответ
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 голос
5 ответов
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 голосов
2 ответов
4th Aug 2016, 10:26 AM
Prabhat Chandra Dwivedi
after namespace std I have putted int main without space in third unfortunately it stops please help
c++
0 голосов
5 ответов
15th Jul 2016, 3:39 PM
shubham chourasia
#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 голосов
9 ответов
28th Feb 2017, 6:06 AM
Aneesh Satheesh
#include<iostream> using namespace std; int main(){ int x=3; int y=2; x++; y*=x++ - ++y * ++x ;
operators
2 голосов
3 ответов
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 голосов
2 ответов
4th Jan 2017, 6:15 PM
Nitin Kumar
¿Qué es una librería estándar? / What is a std library?
namespace
std;
using
1 голос
4 ответов
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 голос
1 ответ
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 голосов
4 ответов
12th Nov 2016, 1:16 AM
Mithun Verma
What is difference between "using namespace std; , return 0;" and "conio.h , clrscr(); , getch();"
c++
0 голосов
3 ответов
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 голос
2 ответов
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 голос
4 ответов
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 голосов
1 ответ
25th Jun 2017, 4:20 PM
Ahaa mark
Fill in the blanks tobuse the name space for include iostream dash namespace dash
c++
0 голосов
1 ответ
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 голосов
1 ответ
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 голосов
2 ответов
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 голосов
1 ответ
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 голосов
3 ответов
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 голосов
4 ответов
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 голосов
4 ответов
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 голосов
2 ответов
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 голосов
2 ответов
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 голос
11 ответов
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 голосов
5 ответов
2nd Jun 2019, 7:41 AM
Shehroz Irfan
(::) in java
::
java
namespace
1 голос
1 ответ
18th May 2019, 3:15 AM
Abdol Hashimi
#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }
c++
variables
0 голосов
4 ответов
20th Jun 2017, 10:24 AM
radhalakshmi arjun
#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 голос
17 ответов
20th Jun 2016, 7:19 AM
Amrisha singh bhadoria
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 голосов
5 ответов
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 голосов
4 ответов
18th Apr 2018, 8:00 AM
Adarsh Thakur
include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ;
code
1 голос
1 ответ
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 голосов
3 ответов
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 голосов
3 ответов
30th Aug 2016, 5:15 PM
Lekhraj Singh
C++ advises
c++
etc
namespace
std;
std::cout
using
1 голос
17 ответов
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 голосов
5 ответов
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 голосов
2 ответов
26th May 2021, 8:09 AM
زينب حيدر مضر رديف
In C++ STL, does every name exist only once?
c++
collision
name
namespace
stl
9 голосов
2 ответов
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 голосов
11 ответов
20th Aug 2016, 5:37 PM
Muhammed cp
#include <iostream> using namespace std; int main() { int a; for ( a = 10; a <= 100; a+=10){ cout << a << endl;
c++
for
loops
8 голосов
5 ответов
6th May 2017, 2:32 AM
MUʜAMMED ɪʟʟYAS
Задать вопрос
Задать вопрос
< Предыдущий
1
...
5
6
7
...
9
Следующий >
Актуальное сегодня
How many days will It takes to completely learn front end
4 Votes
SQL
3 Votes
JAVA PROGRAMMING
2 Votes
HTML/CSS questions
0 Votes
Solution to solving this bugged problem
2 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes
Html
1 Votes
member initializer list : order of evaluation
0 Votes
How can I continue with my goal if I lost all my lives?
0 Votes