Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, westjayson69
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
image
Computers and Technology, 22.06.2019 11:20, destinyleisantos
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, alyssacyamamoto8050
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, quanharris2k19
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
Do you know the correct answer?
I'm new to programming and i'm starting with c++, so the first program i want to write should take a...

Questions in other subjects: