Beginners - March 2014 (Page 19)

command based
 
I am part of a program called FRC meaning First Robotics Competition we use cpp for our robot and it is command based can some one refer me to a page were i can...
[1 reply] : Is it something like this you're looking for? http://www.youtube.com/w... (by firstlast)
by Kuma97
My factorial just works until 31
 
My calculatorĀ“s factorial works ok but when you use numbers higher than 31 the result will be a negative number or zero and I donĀ“t know why. May someone expl...
[7 replies] Last: ok I supposed I should use long long (by Kuma97)
Question about parrallel array input.
 
I am trying to get user input for a parrallel array and the following loop runs properly the first time. The second time through is puts the requests on the sa...
[4 replies] Last: That's great. I forgot what getline does to the input buffer. Makes to... (by musicman74)
how to make folders
 
Alright Now I know in order to make a folder you have to do the following correct me if I am wrong please #include <direct.h> int main() { ...
[2 replies] Last: im not understanding what you mean ? (by ProgramMaster)
find word in a file and where it is .
 
hi i wont to write a program to find a word from a file and cout which line the word in i can find the word but i can't find which line it is in. can anyone...
[2 replies] Last: thank you for helping (by abdoShaf3i)
For Loop Variable Scope
 
Hello to everyone! I was wondering what the scope of variables declared in a for loop. Like, for example, for(int i = 0; i < 10; i++) { //statements ...
[4 replies] Last: thanks NT3! that's what I'm looking for. and, I checked my compiler, a... (by geniusberry)
how many constructor this class have?
 
class C { public: C(); C(int); C(float); C(int, float); private: int nNum; float fNum; }; C myC ;
[3 replies] Last: Copy and Move constructors? What do they do? I haven't used constructo... (by AceDawg45)
by iluv41
Is this a truncation problem?
 
So I have this function, it needs to output a percent as an integer. When numberWon and gamesPlayed are equal, it correctly gives me 100. But for example if...
[3 replies] Last: Use double instead of int. Or cast the whole result, not just percenta... (by MatthewRock)
Overloaded functions
 
int getValue(int); double getValue(double); int main() { int intnumber; double doublenumber; getValue(intnumber); getValue(doublenumber); ...
[4 replies] Last: Oh i just omitted those. apprently it does work, i dont know why but ... (by bloodvenom)
by jbush
problem using makefile in windows 7
 
Write your question here. I'm having a really hard time executing a makefile for the Cambridge University baking pi lesson 1. In a directory, I have dir templ...
[no replies]
When to use classes
 
Hey. I've been learning the basics of classes and have learned: declaration and function implementation of classes object instantiation: constructors and de...
[8 replies] Last: If you need help, just throw me an email at: sparkyqian@yahoo.ca Joe (by Little Captain)
C++ Book Recommendations?
 
What Book Should I Consider Buying For My C++ J our ney Please do not recommend C++ primer plus or primer i struggle with those book wich is ok but its soo...
[2 replies] Last: I recommend "Programming -- Principles and Practice Using C++" 2nd Edi... (by benbalach)
Standard Deviation/Logic Error
 
Hello all! I'm currently working on a piece of homework where i have to calculate the average, min/max, and standard deviation of the file List.txt which contai...
[2 replies] Last: Inside the getSD function, what are you trying to do on line 125? The ... (by firedraco)
STL Help
 
So im currently learning the basics of C++ and i have covered quite alot im really stuck on STL standard template library i know NOTHING about it is there any ...
[3 replies] Last: Well, you once didn't understand anything in C++, did you? :) Grab vec... (by MatthewRock)
I can't run my calculator program using switch
 
Good afternoon everybody, I am using CODE::BLOCKS 10.05 for UBUNTU and I'm trying to build a calculator using the option switch and a boolean form, I started m...
[4 replies] Last: Thank you for all your advise, I just realized that as Renthalkx97 sai... (by fjavierlara)
by iluv41
guessing game question, calculate games won?
 
I cannot get this to accurately calculate the percent of games won. I tells me 0% even if i did win a game, suggestions? ,
[4 replies] Last: nvm (by iluv41)
writing my first oop code and having issues...
 
My code has compiled, however when I am having trouble finding out why it is not working properly. It is supposed to display a menu (first displaying the conte...
[2 replies] Last: right off the bat it is saying the list is sorted when there is no li... (by helios)
Money Change Program
 
I don't get why the bills aren't working, but the coins are... When I enter 50 in, it says 5 tens, which is good, but then it also says 10 fives... But if I ent...
[1 reply] : The code is assigning values to those other dollar note variables that... (by wildblue)
class separate interface from implement.
 
3 errors on client code undefined reference to GradeBook::GradeBook( std::string name ) can you please tell me where is the problem? // GradeBook.h c...
[1 reply] : http://www.cplusplus.com/forum/general/113904/#msg622055 (by ne555)
Better way to handle this long if, else-if structure.
 
Hi all, I have a project that started out with a pretty simple if, else if structure, but over time it grew and now it's unweildy and just god-awful, and I'd...
[3 replies] Last: You could use std::map . You'd use input as a key, and look up for, l... (by MatthewRock)
March 2014 Pages: 1... 1718192021... 79
  Archived months: [feb2014] [apr2014]

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