- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
20 Posted Topics
Seems to me there was once a political group called Technocrats, who envisioned a Utopian society that would rally around a universal language... But what happens when you give power to technocrats? They each plump for what he or she thinks is the perfect language! It is to laugh!
isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" …
This seems simple, but it's not working. There IS a text file in the same directory, but it's not being opened (and with the ios::in | ios::out, it should open even if it doesn't exist). I also ran into trouble trying to use infile.fail, which is why I used !infile. …
I seem to be inventing my own syntax here. The idea seemed simple enough: use the keyword 'new' to allocate space for a new integer array, and populate it with a few integers. Where have I gone wrong? [CODE] #include <iostream> using namespace std; const int SIZE = 5; int …
If I uncomment the 'int x;' above main, and comment out the int x = 0 inside of main, it works, but I don't want to use global variables. What I can't understand is why x is out of scope. The text I'm using says “vars having local or block …
Probably the classic uberprogrammer would be Hugh Jackman in Swordfish, machine-gunning the keyboard in a life-and-death situation while getting oral taunts from John Travolta and oral sex from someone else.
Has anyone found a useful tutorial for the XCode IDE, especially the Debugger utilities? Rich
Restarting C++ class after lengthy break, seems I've forgotten a lot. I can't seem to get a cout to indicate that a file record has been read. I created a text file of just one record to keep it simple: an SS number, first and last names, and five exam …
[QUOTE=kc0arf;63107]Hi, When talking with Dani this past week or so on ICQ, I found out that on the East Coast, where she lives, they do a lot of eating out, and not much cooking. As the conversation unfolded, I found out that Dani hasn't cooked much at all, and decided …
I think the pieces, taken separately, are okay, but they don't seem to play together well. [CODE] //lab12: This program requests input of ten employee names and salaries; //a file is created and they are written into it, and the file is closed. //The file is then reopened and the …
I thought I was following a recipe that worked, but not so. Can someone explain to me why this does not compile? (And I have yet to include a couple of constructors!) - Thanks, Rich. [CODE]//CIS 180 Rich Mansfield 0457321 12/6/09 //Lab11.1 - This program illustrates the use of classes …
For me, it's Quest For Fire. I really got involved with the characters (even learned their language!), and in the final scene, I just had to be grateful I had ancestors like them, or I wouldn't be here typing this.
Everything below works the first time through, and the validation of the user's choice to proceed or not works, as does his choice to quit; but when it gets to cin.getline it just blows right through it without waiting for input. As my parents used to say, Where have I …
I got interested in writing these small apps, so I started with C++; my next class will be doing C++ for object-oriented programs. After that, it looks like I'll have to go slideways and take an iTunes University course from Stanford, because they're the only ones I know of that …
I got not one but two good answers to my last question, which was how to make a function that would both create an array and fill it. I was surprised to find that the first one of them was so simple - I had been making it harder than …
Hi - I'm having a problem converting a couple of things that work fine spelled out in function main, but not when I try to define them as functions. One is a process of filling in a one-dimensional array. I'd like to just be able to say "here's the array; …
I come to this space after a long journey. Back in 1978, when I was driving down Hawthorne Blvd in Redondo Beach (California), I saw a sign that said "Byte Shop", and made a fast u-turn, thinking, "You mean I can buy my own computer?!!". Fifteen minutes and $1200 bucks …
Constantly! I've joined three book discussion groups (try Osher Lifelong Learning Institutes, or Great Books), and have six library cards for colleges and public libraries within a ten-mile radius. Add to that a new Kindle with access to ebooks on the internet (check out the Gutenberg project). Fiction (mystery, action, …
If you truly want to be argumentative, you can't beat arguing that people are obsolescent. As they begin to realize that computers have real advantages in processing speed (with parallel processing) and focus, politicians and businessmen will become dependent upon the technology, for better or worse. [QUOTE=alexa868;1044374]I need a topic …
The End.
richman0829