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, 22.06.2019 04:30
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
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
Physics, 06.05.2020 04:25
Questions on the website: 13722367