+ 19

Which is the diference between std::cout and cout?? C++ have if and else statement where is else if or if else???

12th Jan 2019, 6:33 PM
Mister I
Mister I - avatar
12 ответов
+ 10
We use if else like below if(something) Do that else Do that And we use else if when there is more criteria for example If (num==x) do something Else if (num>x) do something Else //this is if num<x do something
12th Jan 2019, 7:39 PM
Adela Selimović
Adela Selimović - avatar
+ 6
Adela Selimović just one problem with your answer if and else should be in lowercase
12th Jan 2019, 8:10 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 3
{"timestamp":"2019-01-18 18:09:06.41 -0600","bug_type":"211","os_version":"iPhone OS 12.1.2 (16C101)","incident_id":"1167CC4D-7485-4C40-BDF0-E42F10BAB54C"} {"_marker":"","_preferredUserInterfaceLanguage":"en","_userInterfaceLanguage":"en","_userSetRegionFormat":"US","startTimestamp":"2019-01-18T00:11:36Z","version":"1.0"} {"message":{"Accel":2,"Baseband":2,"Bt":2,"Duration":2,"DurationExitFromNoHints":2,"Gps":2,"VehicularDuration":0,"Wifi":2},"name":"VehicularStateDetectionLatencyStats","uuid":"6101aa5f-34b5-456c-b761-e4dea7fcd935"} {"message":{"Accel":1,"Baseband":1,"Bt":1,"Duration":1,"DurationExitFromNoHints":1,"Gps":1,"VehicularDuration":60,"Wifi":1},"name":"VehicularStateDetectionLatencyStats","uuid":"6101aa5f-34b5-456c-b761-e4dea7fcd935"} {"message":{"Accel":1,"Baseband":1,"Bt":1,"Duration":1,"DurationExitFromNoHints":1,"Gps":1,"VehicularDuration":180,"Wifi":1},"name":"VehicularStateDetectionLatencyStats","uuid":"6101aa5f-34b5-456c-b761-e4dea7fcd935"} {"message":{"Accel":1,"Baseband":1,"Bt":1
28th Jan 2019, 11:23 AM
Tori miran
Tori miran - avatar
+ 3
For examle: Firstly #include <iostream> using namespace std; int main(){ cout<<"Hello world!!!"<<endl; return 0; } Secondly #include <iostream> int main(){ std::cout<<"Hello world!!!"<<endl; return 0; } All this codes have the same output.
28th Feb 2019, 7:04 PM
Thunder
Thunder - avatar
+ 2
What is this please someone help me
28th Jan 2019, 11:24 AM
Tori miran
Tori miran - avatar
+ 2
std::cout it's the same like cout, but if u'r not set (using namespace std;) , u must write std::cout
28th Feb 2019, 6:57 PM
Thunder
Thunder - avatar
+ 1
What about?
3rd Mar 2019, 9:13 AM
Thunder
Thunder - avatar
0
the diffrence is just you can code easier with (using namespace std;) and you can write your code with out (std::)
18th Feb 2019, 2:41 AM
mahdi bigdely
mahdi bigdely - avatar
0
Hello, can you help me ?
2nd Mar 2019, 10:44 PM
Edie
0
Hello
7th Mar 2019, 12:23 PM
Abdulrahman Rafie
Abdulrahman Rafie - avatar
0
std
8th Mar 2019, 3:22 PM
maks тер
maks тер - avatar