General C++ Programming - August 2012 (Page 15)

by nistor
hello.
 
new to this world. Just finished collage(in mechanic) this year but i want to change the air.i'm applyin for software engeneering master degree..but there's a i...
[3 replies] Last: great. thank you. about the language, not english/american not applyin... (by nistor)
Beginner Class Help Needed
 
#include <iostream> #include <string> using namespace std; class safe { public: string giveCode() { return code1; ...
[2 replies] Last: You haven't created an instance of the class safe - that is you didn't... (by TheIdeasMan)
Derived class' pointer
 
I'm having trouble with this one... class B { private: int b; } class D1 : public B { private: int d1; } class D2 : public B { private: in...
[1 reply] : d1 needs to be public: class B { private: int b; }; class D1 : pub... (by BlackSheep)
by his111
plz check this
 
#include<iostream.h> #include<conio.h> using namespace std; int main() { unsigned long int birthmonth,birthyear,birthhour; unsigned long int currentmonth,...
[3 replies] Last: So you have no Birth day? You do have Birth year & month & hour, but n... (by TheIdeasMan)
SFML book
 
Do you know of any good books on SFML?
[1 reply] : I highly doubt there would be. The tutorial on the website is very goo... (by blueberry)
by SirSen
Help with my code
 
i've been having a problem with this code i wrote, in which the system founds a problem within it and it closes the program. The code is: #include <iostream> #i...
[2 replies] Last: oh thank u, i knew i was mixing up somewhere but i didnt realize where... (by SirSen)
by RyanM
Searching Files
 
So my question is this...if condition is met, it will exit the inner while and will re-execute the outer while (because the flag is still false...when it enters...
[4 replies] Last: It's inconsistent with its philosophy to treat an fstream as a file. ... (by kbw)
by dem7w2
How do you not use the default constructor for arrays?
 
I want to do this: QLabel *lblStation; lblStation = new QLabel(ui->verticalLayoutWidget); //except I want this to be an array of, say, size 5. ...
[1 reply] : Well I thought I was lost, but now I think I can just use the default ... (by dem7w2)
Compiling different mode
 
Hi, I am using C++ with QT Creator. I have some code lines which gives me some informations about application. But these are not important for end user. I am...
[2 replies] Last: ¿Is this what you want? http://collaboration.cmc.ec.gc.ca/science/rpn... (by ne555)
by RyanM
Searching Strings
 
I need to extract what's between the first set of -'s ("my name is") and after the last - ("joe"). Is there a simple way of doing this? int main() { str...
[5 replies] Last: I would use std::istringstream for this task. For example #include ... (by vlad from moscow)
by RyanM
Interfaces vs. Header Files
 
I am trying understand what I am supposed to put in a header file. It seems like the same thing as an interface. Interface -> define functions required for ...
[16 replies] Last: Gotcha! Thanks a lot doug :) (by RyanM)
Where Do I Start?
 
I had an idea for a cool program idea, but I don't even know where to start. The program I use to edit (Sony Vegas) likes to create *.sfk files randomly through...
[1 reply] : http://stackoverflow.com/questions/4659240/file-management-in-c http:... (by gonza8888)
How to make something constant in an assignment
 
I finished this assignment: #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { i...
[no replies]
Make my own "Scripting language"
 
Hello, i'm working on a pretty simple game where you are a space ship at the left of the screen and there are enemies incoming from the right. Looks like this ...
[6 replies] Last: oh so counter is holding the delay between waves! i get it now. Thank ... (by stoffe1100)
Need Help With "TimeCard" Program
 
I'm not really all that good at C++ yet. I was actually trying to program this is batch but decided that C++ would probably be a better language for this task. ...
[2 replies] Last: that still doesn't solve the problem that I have no output of how many... (by jadeallencook)
help me to understand this UDP source code
 
hello i'm learning about UDP .and i learn from this source. i get a little problem . it's error for compiling . anyone would help me to correct this source ?...
[no replies]
References and Indirection
 
a function that takes a pointer adds a level of indirection to the object it points to. does a function that takes a reference adds a level of indirection to...
[4 replies] Last: [quote=Brandon Captain] "I was curious about how it breaks down to ass... (by closed account zb0S216C)
comments?
 
i have been wondering this for a while now, so here goes. does comments/epmty lines etc. affect how fast a program is running, or cause lagg? or could you wri...
[5 replies] Last: The comments are ripped out by the preprocessor. Here is a test file:... (by Moschops)
Should i use classes for everything
 
Me and my friend started making a console game and started making classes Is it bad or better if we make classes for everything The Game Contains Menus Like:...
[1 reply] : It's hard to say with that information. When and how to use classes i... (by Disch)
by jorgen
Multiprecision variables segmentation fault
 
Hello! I have a program using multiprecision variables, specifically through the zkcm package (based on gmp and mpfr I think). It works fine up to a certain pre...
[14 replies] Last: viliml: you are right but that is after the loop is done, in the snipp... (by jorgen)
August 2012 Pages: 1... 1314151617... 31
  Archived months: [jul2012] [sep2012]

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