subject

Can't seem to get my code to work! anyone care to ? it keeps giving my this error when i try to compile. give me a good answer 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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Aselect query joins tables together by their a. table names. b. primary keys. c. first entries. d. field names.
Answers: 2
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
question
Physics, 16.10.2020 23:01
question
Biology, 16.10.2020 23:01
question
Mathematics, 16.10.2020 23:01
question
Mathematics, 16.10.2020 23:01
question
Computers and Technology, 16.10.2020 23:01
question
Mathematics, 16.10.2020 23:01
question
Biology, 16.10.2020 23:01