subject

Can't seem to get my code to work! anyone care to ? it keeps giving my this error when i try to compile. main. cpp: in function 'int main()': main. cpp: 28: 30: error: could not convert 'mystring. std: : basic_string< _chart, _traits, _alloc> : : operator=, std: : allocator > char*)"time"))' from 'std: : basic_string' to 'bool' if (mystring = "time") { #include #include #include #include #include using namespace std; string x; string y; string z; string mystring; int main(){ cout < < "console 1.0 beta" < < endl < < "type end to quit (case sensitive)" < < endl; while (x ! = "end"){ cout < < "> "; cin > > x; cout < < x < < endl; mystring = x; if (mystring = "time") { cout < < time(0); < < endl; } } }

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, Devan6264
You need to write some code that responds to a text change in a jtextfield. how can you do that? create a class that implements the interface actionlistener and override the method textfieldchanged create a class that extends the superclass actionlistener and override the method actionperformed create a class that implements the interface actionlistener and override the method actionperformed create a class that extends the superclass actionlistener and override the method textfieldchanged
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, tagerryawilson6
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
image
Computers and Technology, 24.06.2019 22:10, gabriellabadon2
In command prompt, whats a command that will list only .ini files in c: \windows\system32 directory?
Answers: 1
image
Computers and Technology, 25.06.2019 06:20, kromaug7986
In your pest busters game, how does player 2 move the ship 2 object? a pressing the w and s keys b. pressing the up arrow and down arrow keys c. moving the mouse from side to side d. moving the mouse up and down select the best answer from the choices provided
Answers: 1
You know the right answer?
Can't seem to get my code to work! anyone care to ? it keeps giving my this error when i try to co...

Questions in other subjects:

Konu
Mathematics, 19.03.2021 01:00
Konu
Mathematics, 19.03.2021 01:00
Konu
Mathematics, 19.03.2021 01:00