OK I guess that my first post was a little wordy so I'll just get to the point. Why does the Qt creator not find the standard library headers when you try to use them. Eg:
#include <iostream>
#include <string>
#include <stdexcept>
#inlcude <vector>
#include <iostream>
#include <string>
#include <stdexcept>
#inlcude <vector>
To copy to clipboard, switch view to plain text mode
all these preprocessor directives get little squiggly red lines under them and if you hover over it the tool tip says "No such file or directory"
What I want to know is where the directory that Qt creator is looking in for these libraries in is so I can add the standard library files. All I want to do is be able to hit the run button and have my program work. Btw, I just opened my .cpp file with qt creator I have no project file.
EDIT: I put my code into the main.cpp generated when I make a Qt console application project (in place of generated code), ran the program and it did everything right until I tried to input something and
std::cin >> n1;
std::cin >> n1;
To copy to clipboard, switch view to plain text mode
wouldn't read my input, I just hit enter and nothing happened. (this is in the program output pane of Qt creator) is there no way to give a program you are running input like you would if it was complied and run in terminal?
Bookmarks