Ye55 the keyboard im u5ing doe5 have a broken key.
But anyway5, Im wondering what language I 5hould learn.
Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?
Ye55 the keyboard im u5ing doe5 have a broken key.
But anyway5, Im wondering what language I 5hould learn.
Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?
Seems the 's' key was good enough to type your name, and compose your other post
http://www.catb.org/~esr/faqs/smart-...html#writewell
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Not exactly a C# related question, is it?
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
nope - moved.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Even if you do have a broken key, buy a new keyboard! They arn't THAT expencive.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
How do you expect to be able to program with a broken s and S?
Code:#include <io5tream> #include <5tring> int main() { 5td::5tring foo = "Hello World!"; 5td::cout << foo; return 0; }
Sent from my iPadŽ
Very funny, 5lyMael5trom
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
How would you type the s?
-Govtcheez
[email protected]
Obviously considered, but it would be quite difficult to do without an s key to set the define. Instead, we would have to supply him with a little pre-preprocessor that replaces all instances of a set token with 's'So who wants to compile this and upload it for the poor kid?Code:#include <iostream> #include <fstream> #include <string> #include <cstring> int main(int argc, char* argv[]) { std::string lineBuff, dataBuff; std::ifstream inFile; std::ofstream outFile; if(argc != 3 || strlen(argv[2]) != 1) { std::cerr << "Usage: " << argv[0] << " <data source> <token>"; return 1; } inFile.open(argv[1]); while(inFile >> lineBuff) dataBuff += lineBuff + '\n'; inFile.close(); while(dataBuff.find(argv[2]) != std::string::npos) dataBuff[dataBuff.find(argv[2])] = 's'; outFile.open(argv[1]); outFile << dataBuff; outFile.close(); return 0; }
Last edited by SlyMaelstrom; 03-29-2007 at 02:04 PM.
Sent from my iPadŽ