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, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
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
question
Mathematics, 20.09.2020 14:01
question
History, 20.09.2020 14:01
Questions on the website: 13722359