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, 21.06.2019 14:30
Asoftware program that includes tools for entering, editing, and formatting text and graphics is called a word processing program. true or false?
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
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
English, 09.12.2020 14:00
question
Mathematics, 09.12.2020 14:00
question
Mathematics, 09.12.2020 14:00
question
Physics, 09.12.2020 14:00
question
Social Studies, 09.12.2020 14:00