also I found I prefer to work in Notepad and copy / paste into my IDE. I use it to put my thoughts in writing.
Strange habit... What IDE are you using?
Code::Blocks
I only write in notepad when working on a complex function.
in notepad I can type noncode then hit return a few times and start coding,
take string isolate each word and return it as a string.
take string find position of space, starting at 0 for first word, then starting at
last position +1 for next space.
make new string starting at postition going to the length of position of space - start postion
etc. just like, little notes that don't make much sense, Then I put it all together into something like
string returnword(string wholestring, string::size_type &wordpos)
{
string::size_type endofword;
endofword = wholestring.find(" ",wordpos) ;
string word;
word = wholestring.substr(wordpos,endofword-wordpos);
wordpos = endofword+1;
return word;
}
then copy that into Code::Blocks, and start working on the next function.
and I can change the font size, I can do that in codeblocks too, but I prefer to keep the font small in codeblocks and bigger in notepad, so I can see more clearly the part I'm working on, like zooming in on the specific part I'm working on
Also, I have a question, how come when I use using namespace string, it doesn't work, yet I have to use functions in the namespace with the scope resolution "::"
such as string::size_type,
I don't know how well I worded that, basically string::size_type works, but using namespace string; size_type doesn't, but to my understanding of namespaces it should,