Beginners - December 2008

Big problem with a program - very important
 
Hello, I have to write a program in c++ for a exam, but I`m not really good in that programming language. The exam is very important for me. I will explain h...
[1 reply] : Well to start off you'd have to take the input. int Length; char ... (by KyletheProgrammer)
FIRST Robotics Tutorial
 
This year, I am a novice programmer on my school's FIRST Robotics team, though it's my second year, and it looks like next year I will be the lead programmer fo...
[5 replies] Last: That's hard to do without actually having the code with me right now, ... (by demosthenes2k8)
Simple problem of array
 
I can find records of account holders whom data are stored in a structure. I have used the array of structure data type. But when the record is not found in the...
[no replies]
Defining vector size
 
I cannot work out how I can create a vector such, that the user has to enter the length of that vector... Thanks for helping!
[2 replies] Last: Use the resize function http://www.cplusplus.com/reference/stl/vector/... (by Bazzy)
User Input in FLTK
 
While using FLTK graphics libraries for basic game writing how do you take user input? getch() doesn't really work since Visual Studios opens up a console windo...
[1 reply] : Bump. (by KyletheProgrammer)
by choxo
Double pointer,memory leak?
 
Hi all, In my class I have a member int** m_yValues, witch I use to create an dynamic allocated array/matrix: m_yValues = new int* ; for (int i...
[4 replies] Last: Yeah, as guestgulkan suggested, it is a good idea to check if the poin... (by satm2008)
by Yiga
Overwiev of the program?
 
I made a program that can tell you if a number is a prime number or not. Here is the code: #include "stdafx.h" #include <iostream> #include <math.h> usi...
[7 replies] Last: Put the primality test code in a function with this prototype: bool ... (by helios)
Classes 2 problem...
 
Hello I am reading the tutorial to try and learn c++ by myself. Today I move on to Classes II. This is program // vectors: overloading operators example #...
[3 replies] Last: x and y are membervariables. Take a look at this: //...class dec... (by Scipio)
by Claymz
Specifying range for random number
 
code: #include <iostream> #include <cstdlib> using namespace std; int main() { int r0 = 1 + rand() % ((7 + 1) – 1 ); cout << "r0 = " << r0 << en...
[2 replies] Last: ty, my bad lol, this '–' was there because ive copy/pasted it :X ... (by Claymz)
by Navane
definition of %
 
Hi, i have a weird assignment. I made a program, but my teacher wants -- for the sake of research -- to let me prove that % works how I intend it to work. Where...
[4 replies] Last: You should probably state that a-((a/b)*b) uses integer division. Furt... (by Corpus)
what software to package and distribute my c++ program
 
Hi,I have written a couple of text adventure games in Devc++ which i am looking to distribute.Could you please tell me which software package would enable me to...
[5 replies] Last: I use Inno Setup http://www.innosetup.com/isinfo.php (by Duthomhas)
C++ Return array from function
 
I am just starting off in c++ and I have function which I want to return two pieces of information from. So I make an array in the function and return it, but y...
[8 replies] Last: Because God knows everything! =) (by chris)
Program just skips to the end.....
 
I wrote this program, which is supposed to have the user put input in (maximum 40 characters), and if it contains a character which is not a letter, the program...
[9 replies] Last: No problems, any time. (by chris)
Dev-C++
 
Okay so I am just beginning C++, im currently reading a book by Jeff Cogswell to teach myself. To write my first program he tells me make a new project, a con...
[2 replies] Last: thanks, that helped a lot. (by vitalrampage)
driver program
 
I have an assignment to do. I just want to know what the instructor meant when she wanted me to demonstrate a function using a driver program. can somebody ...
[7 replies] Last: Yes, I would say so. You don't have to split your program into parts t... (by Corpus)
by Rasmo
PWM Signal from C++
 
Hi guys, I am trying to get a project going that takes telemetry from the game rFactor (http://www.rfactor.net) and sends it to a realife gauge. I am rea...
[no replies]
Newbie Q: reg. MFC dlg resource & Vista UAC shield icon
 
I'm new to C++ and having trouble using the Button_SetElevationRequiredState Macro to decorate two button controls on an MFC dialog resource so that they show t...
[1 reply] : Someone on another forum pointed out that "the application must be man... (by colbyringeisen)
loop list<> inside &operator<<
 
Please forgive me. Beginner here. I've done the appropriate research and just haven't found anything. Here's how I have my current stripped down set up i...
[no replies]
by hsn
C++ Exam Practice
 
Hi everyone, I'm a total n00b at C++, I'm still learning and I've got loads of questions to ask, here's one of them ^^. I'm going over a past paper to practi...
[4 replies] Last: Phone_number(string name_, string phoneNumber_) : name (name_), phone... (by hsn)
by JorgeD
Small beginner code wont work..
 
Hi, I've been messing around with small codes practicing but alot of them wont work for some reason! This isnt making sense i cant find wuts wronge with this. s...
[2 replies] Last: ok so with this code after i type the word it wont go to the IF line. ... (by JorgeD)
December 2008 Pages: 123... 17
  Archived months: [nov2008] [jan2009]

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