General C++ Programming - October 2012 (Page 37)

Question for all Programmers
 
Hello, I'm new to programming, and the reason I didn't post this in Beginners is because I would like some advice from experienced programmers, people who have ...
[2 replies] Last: Also remember that CS isn't all programming. There are many different ... (by ResidentBiscuit)
how to get c++ to read multiple characters in one input?
 
Write a C++ program that reads in letter grades for a class. Acceptable grades are A, B, C, D, and F. The user may enter as many grades as desired and enters a ...
[6 replies] Last: oh yea that makes sense. (by jayadelgado)
how to pick numbers from array that are less or greater then constant
 
Hi, here is the situation: there is an array of 100 random values, and I need to pick greater than number 50 and lesser than 50 values in two separate arrays, a...
[7 replies] Last: Thank you, AleaIactaEst, for advice of increment. (by Pauliuskasospuoga)
by DOBA
Program with != Mem print on XP and Win7
 
Hi, I made a C++ program. On my XP machine (~2004 laptop), in task manager, I see that the program memory consumption is around 13K while with my Win 7 64 bi...
[4 replies] Last: Well it seems to be the answer because the 13K and 24 K mem print vari... (by DOBA)
Very Large numbers
 
I'm making a game and need some very large numbers. My goal is to be able to at least hold 30 digits of accuracy (28 to be exact), but I'm not sure if doubl...
[6 replies] Last: Cool, Thank you. I'll look into it. (by Jakman217)
passing template class as temporary object
 
i have a template classa as shown below, i want to call it in for_each method using the temporary object... how can i do this. i have already done this by class...
[1 reply] : Is this what you mean? //My_action<int> i_action; for_each(vi.begin(... (by clanmjc)
Creating a complex function to make multi-tasking Simple
 
Firstly i would love to know if this has already been done cos it'd save a LOT of time and effort. Secondly you may be able to understand what i'm wanting if yo...
[8 replies] Last: IF you come across problems just post it up. We can help. (by clanmjc)
C++ program
 
What is the code in C++ program that will convert money? / currency this code has an error: Please help me to run this program. double dollar,pesos; int rate...
[2 replies] Last: I had already solve it right. Thanks anyway I appreciate your help. (by saywhat)
How to declare a file as a variable in other class
 
Hello i want to declare a new file for each class as a variable. eg. class bst { node *root; ofstream out("out.txt"); //i want to do someting l...
[2 replies] Last: Thanks ne555. And much thanks for increament section. Worked! (by unkn00wn)
error C2447: '{' : missing function header (old-style formal list?)
 
It has an error.. it always says that error C2447: '{' : missing function header (old-style formal list?) Please help me ... I am having a hard time running th...
[4 replies] Last: OP for reference: It has an error.. it always says that error C2447:... (by Moschops)
by krow
C++ vs Java (Calling super constructor)
 
Hello, I'm having trouble trying to call the super constructor in C++ from a derived class. There are two different cases: 1. As you may know, the way to ...
[5 replies] Last: Hey guys thank you very much. Very useful contribution!!! that's what ... (by krow)
by nhez
How to create user and pass with number??
 
hi please help me make a username with number .. im using stdio conio ctype and string as include thanks in advance
[4 replies] Last: its my prof style xD hes a gangnam thanks anyway (by nhez)
Need help with Graphic callback
 
Hey again c++ people, I have a code with A turtle class and then a DrawApp class which should be responsible for the drawing to the screen. THe turtle is moveab...
[1 reply] : > I guess the problem is that the if() and else if() functions im usin... (by ne555)
Text based adventure side-scroller. Works and would like input
 
I am working on a side-scroller that is currently in text mode. I'll make this short because there are a lot of notes in main.cpp for you to refer to. I'm no...
[2 replies] Last: Hi Jayhawker07, What OS are you using? What compiler? This game was ... (by carebearboy)
c++ to database connectivity - HOW TO???
 
I've been doing some database apps with java using jdbc mysql connector. I was wondering if I could do the same with c++ but how? I've noticed that the mysql we...
[2 replies] Last: I've heard good things about SQLAPI++ and their front page has a set o... (by Moschops)
Dynamic path names
 
Hey I am working on a game that allows saves in it, and long story short I was wondering if it was possible to have a dynamic path name. I know this sounds con...
[2 replies] Last: Another way is to make use of std::to_string to convert the integer to... (by Peter87)
Reading a User-Defined File
 
I am writing a programe that can read a user defined specific file , meaning that user has to select the file , which function i have to use for that as on defa...
[6 replies] Last: can you correct my code so that it can read upto period. (by asad393)
Help needed! if-then-else structure
 
First off, the program is part of an assignment due tomorrow for my intro to C++ class. Here is the assignment prompt: CSIT 575 – Programming Funda...
[7 replies] Last: It a Basic programing Language. (by GenevieveSmith)
Need help with debugging process
 
The following code is compiled and debugged on linux. p.s. headers are omitted. class P { public: P() {} P( const string &s ) : str( s ) {} ...
[1 reply] : You shouldn't be creating new instances of class P by calling malloc. ... (by SIK)
by lmd141
Mersenne twister
 
Hi there, I'm currently writing a program that accepts/rejects moves based on some other data (Monte Carlo simulation). My problem is with the Mersenne twister ...
[2 replies] Last: Thanks Helios, I guess I didn't need pRanGen. Makes my life a bit easi... (by lmd141)
October 2012 Pages: 1... 3536373839... 50
  Archived months: [sep2012] [nov2012]

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