Beginners - October 2010 (Page 38)

by tlm884
Loop Question
 
I need to write a program that will display a user given input a user inputed amount of times. For example, the program will ask "Please enter a positi...
[4 replies] Last: Be careful... C++ is case sensitive. It's for /*not*/ For . Also, ... (by Albatross)
reading a sentence until double word
 
hoe can i write a c++ code which reads a sentence until the user enters a word that was entered before Thank you
[1 reply] : Keep a dictionary of used words. (by ne555)
by AzuS
C++ Beginner with Arrays Advise
 
void AnalyzingIntegerArray( void ) { int iValue; int i; double ary[ ARRAY_SIZE ]; // 100, defined on top double small; for ( i = 0; i < ARRAY_SIZE; ...
[11 replies] Last: Why not get the smallest int from each, then compare those to find out... (by MottMan)
problem with formatting my for loop
 
Hi, I am trying to make a program that guesses a random number and then the user has to guess that random number by entering a guess for the row and a guess for...
[1 reply] : Nobody can help me?? :( (by musiclvr)
getch() in c++
 
Hi... I want to get the input from the user, without making him to press 'ENTER' key. I could achieve this in c language, by using getch() function. But, this ...
[4 replies] Last: Here is a hello world example: http://tldp.org/HOWTO/NCURSES-Programmi... (by Bazzy)
by RaxeN
C++ Reading a txt file into an array.
 
#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; ifstream iFile; void readCode(ifstream& infile, stri...
[1 reply] : you could just do the following too (Note: code not compiled & does no... (by naivnomore)
by Jsel
outputting information to a file
 
I am trying to create a void function that accepts an ofstream for the user to write lines of text to. The program will first prompt the user to enter a line of...
[4 replies] Last: I think I found the problem.. take a look at the if block condition - ... (by Jsel)
done
 
removed
[1 reply] : Well, the first error message is telling you that you have two identic... (by moorecm)
by icu812
simple calc, bad result
 
I have a few doubles that are returning a strange value. In plain english, this is what is being done: val1 = 0.1062 val2 = 0.1061 diff = val1 - val2 ...
[1 reply] : Precision problems: http://docs.sun.com/source/806-3568/ncg_goldberg.h... (by firedraco)
Card class problems
 
hey guys, im trying to make a card class for a poker game. and im getting a few errors in in the card.cpp so if anyone can help me out here it would be appr...
[1 reply] : The constructor in a header takes a RANK and a SUIT: CARD(RANK,SUI... (by Disch)
by vivmen
function like sizeof
 
Hi all , i want to create my own function which will work like sizeof(). i can find out size trough pointers. but i don't know how to write such functi...
[6 replies] Last: Thanks Jsmith. (by vivmen)
Do-While statement problem
 
I'm just making a pretty simple goofy survey and i decided that i want the user to be forced to answer "yes" or "no". before I put in the do-while statement, th...
[7 replies] Last: I got that to work, but i have another problem. i decide to make more ... (by SuperiorJT)
CGI of human heads
 
I am looking at producing CGI displays of human heads via C++ and OpenGL I have just started to learn C++ and would like to ask for any guidance that could be ...
[3 replies] Last: Please use code tags when posting on the forums, makes your code more ... (by gcampton)
Subscript on string pointer
 
Hello again ! Sorry to trouble you again, a quick question this time, how can I get the first character from a string pointer ? let me illustrate: int...
[3 replies] Last: Pay attention to operator precedence http://en.wikipedia.org/wiki/O... (by Duthomhas)
quick question about c++ thanks
 
I don't understand this question fully could someone check the code that I have written to see if it does what the question asks me to do I will now give you th...
[1 reply] : well, you should probably print the roots.. (you can write cout << "x... (by hamsterman)
Mean/Medium Function Questions
 
This function is part of a much larger program that I am in the process of writing, and I haven't yet "plugged it in". The intent is for it to go through a vect...
[4 replies] Last: I originally had the historysize declared as a const int, but I'm wor... (by Athar)
Override static class constant in a subclass?
 
In a sales system, I have a class named Product. All basic Products are sold at a 10% profit margin - I want the sale price to be calculated automatically, so I...
[1 reply] : You can override a getter function. But why don't you make profitMarg... (by Bazzy)
Pass by reference pass by pointer
 
What is the difference between. void gett(int *pointerr){ pointerr += 5; } and void gett(int &referecee){ referencee +=5; } When would...
[9 replies] Last: Actually there is some history I believe in place here. Before C++ is ... (by sohguanh)
Storing every variable in use and max variable limits
 
Hello. I am trying to program a basic role-playing game. It's starting to get pretty long, and finally needs a save game feature, something that I could never ...
[no replies]
New to C++, need a challenge.
 
Hello, I am very new to C++. I am learning through the latest C++ for dummies book. I have read a lot of the basics. I have not really got into stuff like array...
[5 replies] Last: Great link, thanks MottMan! (by closed account 3TkL1hU5)
October 2010 Pages: 1... 3637383940... 42
  Archived months: [sep2010] [nov2010]

This is an archived page. To post a new message, go to the current page.