Computers and Technology

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; } } }

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:00, 19elbatawisaly
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, Princessirisperez0
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e. g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
image
Computers and Technology, 24.06.2019 11:40, girdwood6678
100 pts. first person gets brainliest
Answers: 2
image
Computers and Technology, 24.06.2019 12:00, tipbri6380
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
Do you know the correct 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
Law, 04.01.2021 17:20