General C++ Programming - January 2012 (Page 16)

atoi error!
 
cout<<"\n "<<subexpresionesparentesis <<subexpresionesparentesis <<subexpresionesparentesis ; exponenterestado=atoi(subexpresionesparentesis ); ...
[8 replies] Last: no, I know that its common, and that in reality revealed only where th... (by Aramil of Elixia)
Problem with inheritance
 
After painfull debugging due weird build messages I figured that this code causes problems: struct Castable { Castable(std::string Name, int Value, int Cos...
[3 replies] Last: @codekiddy thats was typo :) @Ivan Sidarau Yeah, I tried to use vecto... (by closed account 10oTURfi)
problem with the vector size allocation
 
Hi, I am trying following program #include<iostream> #include<vector> using namespace std; int main() { vector<char>v(10); int i; cout << ...
[4 replies] Last: Everytime you do a push_back(), the size() increases by one. Therefore... (by Galik)
Pascal triangle
 
Hi to everyone!!! I wonder if anybody can give me a hand with a problem. I have to write a program which displays a Pascal Triangle (Which starts with one an ...
[15 replies] Last: #include<stdio.h> #include<iostream> using namespace std; long double ... (by saurai3h)
Very simple assigning array
 
class Hangman{ public: Hangman(void); static const char ALPHABET ; static const string DICTIONARY ; static const int ALPHABET_SIZE = 26; pr...
[12 replies] Last: Thanks aquaz. Yes if I was changing the size, a set or vector would... (by calypso)
by lovit
Passing Class arrays to Friend Functions
 
Hi. I am having a terrible problem and I can not solve and hope that someone here can help me. I have a program that has several class decelerations at th...
[4 replies] Last: Thanks Sloopy.... That seemed to work. I guess I missed the passing ... (by lovit)
Tips needed for a guessing progam
 
Hey, im newer to programing and c++ i just want some tips on how to start this program.the program is to have the user guess a number, then have the program ori...
[2 replies] Last: If you want the program to guess the answer, you can use dichotomia: s... (by aquaz)
no errors but it doesn't work :(
 
Hi all, I posted this in the Beginners section but got no response. original thread http://www.cplusplus.com/forum/beginner/59633/ I've made a program to ...
[1 reply] : http://www.cplusplus.com/forum/beginner/59633/#msg322395 (by coder777)
More Dereferencing Confusion
 
Hello all! My last visit was succinct and successful so I figure I have a similar problem and rather than wrack my brain, I may as well bring it here! So I b...
[2 replies] Last: I think you've understood well enough though! That looks about right. ... (by tescrin)
Breaking out of the command prompt?
 
Okay, so I've been programming for a while now. I understand functions, pointers, linked lists data types, structs, and I'm really starting to get a handle on o...
[1 reply] : Pick one of the Widget Toolkits. http://en.wikipedia.org/wiki/List_of... (by Moschops)
How to use the method libxml++ to write a file in c ++ xml
 
I'm using libxml++ library in C++, and I have to write an xml file in which there is an inclusion of another xml file: 1 <? Xml version = "1.0"?> 2 <! DOCTYPE ...
[no replies]
Behaviour when assigning int to char
 
Just checking: When I assign an int to a char, does the char just take the lowest 8 bits from the int? My tests say yes. I'm just looking for some more confirma...
[1 reply] : I think so too. since char has only 8 bits it can't take all of int's... (by codekiddy)
by PLew88
Quick Question
 
Hello, I just wrote a program for extra credit in one of my classes. I have already printed out the source code using lp but my professor says he wants us to pr...
[1 reply] : Try ./a.out > file.txt lp file.txt (by naraku9333)
Problem with returning superior-scope
 
Hi again, trouble! When I return any object from a superior-scope it is destructed before get it, hmm, I dunno how to explain, see: #include <iostream> ...
[2 replies] Last: Thanks for that, solved :) (by Link2012)
How much more time until I can make my own game?
 
Ive been learning c++ for around 2 months now and how long will it take me to learn it enough so i can learn direct x also how long will it take to learn that e...
[3 replies] Last: Seen a guy post 5 threads about the same thing in a day, haven't seen ... (by closed account o1vk4iN6)
Memory size (1,2)
 
This might sound stupid but if a float uses 4Bytes does on array of 100 Floats use 400 Bytes?
[20 replies] Last: Didn't mean to start an argument lol! Besides i consider this questio... (by Aaron Hanna)
by omurad
WHAT'S WRONG WITH MY CODE
 
The answer is always 0 for some reason, I already tried this code on Microsoft Visual C++ and it worked now I'm on a Mac so I am using Eclipse. I would really ...
[3 replies] Last: Set the value of z after you have read in the values of x and y but be... (by Peter87)
by Rhenn
Problem with finding vowels with recursion
 
bool containsVowel(string blah){ if (blah == ""){ return false; } else if (blah == 'a' || blah == 'e' || blah == 'i' || blah == 'o' || b...
[6 replies] Last: Thank you, I see now. I just had to have "return", before the function... (by Rhenn)
Binary search tree
 
It is a simple programme to make a list of numbers. I'm using a class numbers, and a class for the list. The problem is root changes whenever i add another elem...
[no replies]
overloading functions
 
Why is this function not overloaded?? I don't get it int getValue() { int inputValue; cout << "Enter an integer: "; cin >> inputValue; return inputVa...
[2 replies] Last: I think I understand. Thank you. I will try again keeping your expla... (by mathisona)
January 2012 Pages: 1... 1415161718... 36
  Archived months: [dec2011] [feb2012]

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