subject

I'm new to programming and i'm starting with c++, so the first program i want to write should take a string of characters and output it to the console afterwards, but the execution isn't working, i can't find the issue.
'#include
#include
#include
using namespace std;

int main()
{
short t;
cin > > t;

char *str;
//cin. clear();
cin. sync();
cin. ignore(1000, '\n');

while(cin > > *str++)
;

cin. sync();
cin. ignore(1000, '\n');
while(*str++ ! = '\0')
cout < < *str;

return 0;
}
'

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e nΓ£o consigo tira-la no chorme
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
You know the right answer?
I'm new to programming and i'm starting with c++, so the first program i want to write should take a...
Questions
question
Computers and Technology, 12.02.2020 20:46
Questions on the website: 13722361