Jump to content

ShadRS

Member
  • Posts

    23
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ShadRS got a reaction from FakezZ in (C++)Any way to limit the number of digits in a variable?   
    The main topic seems to have been answered, but I thought I'd point this out.
     
    You called:
    ofstream file;file.open("C:\\x\\serial.txt"); Which, as someone said, wipes the file out every time you open it.  If you wanted to open the file to append to it, use the following:
    ofstream file;file.open("C:\\x\\serial.txt", std::ios::app); But moving it outside the for loop was the best option in this case.
  2. Like
    ShadRS got a reaction from WanderingFool in How is a programming language made?   
    Writing a compiler in the language that is supposed to compile is call Bootstrapping.  It is one of the preferred ways of going about the whole process. 
     
    http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29
×