Beginners - May 2010 (Page 24)

by TonyT
I have some difficulty with this code.
 
Write a program that prompts user to enter a length in feet and inches and outputs the equivalent length in centimeters. If a user enter a negative number or a ...
[2 replies] Last: You're a bit short on closing curly brackets. And... please use tags... (by Albatross)
by sirkip
create one array that contains multiple data types from a data file
 
I have to make an inventory for a CD store and i need to make an array to store all the data. I have to take the information from a seperate data file that look...
[1 reply] : Create your own record for the data, and store it in one of the standa... (by Duthomhas)
Math
 
Hey another quick question for ye. CLAY_PROD / MIN_VARI = CLAY_MIN_PROD; This is the error code:error C2106: '=' : left operand must be l-value just ...
[2 replies] Last: Oh shit now i look like a dumb ass. Thank you. (by Melander)
Access violation writing location 0x00000000
 
Hi all, I'm back with another question. In my (DarkGDK) game I keep getting the "access violation writing location 0x00000000" error. I've searched for infor...
[7 replies] Last: My god, I can't believe it. I didn't realize there was "CTile*" in fro... (by Metalspy)
Does not name a type error
 
I'm getting a "KeyboardInput does not name a type" error on line 17 of game.h. As far as I know, the class has been properly defined and is included in game.h, ...
[3 replies] Last: oh, figured it out! Since I copy-pasted include guards in other files,... (by torchie)
by Deluge
Thowing exceptions for type input
 
I'm trying to get input from a user, put that input into a string, then check the string to see if it is an integer value. I have been searching all over the C...
[4 replies] Last: char store[a.length()]; //Store the characters from string This i... (by firedraco)
for loop error?
 
the first loop is employee number 1. after i have input the relevant data, the next employee number is 7? can someone tell me why the for loop skip 2-6? THANK ...
[2 replies] Last: I got it now. Thanks a lot! (by windgrey)
stacks..
 
pls help me deal with this program pls. im really new to programming and i cant do it by myself.. pls help. all i need to do is just simply program arithmetic...
[5 replies] Last: http://tinyurl.com/27ty58s Nice one :) (by Dufresne)
if Statement Problem
 
Hi Guys I am making a game that involves clicking many buttons with if statements and assorted loops. However, I have run into a problem. I use Codewarrior C...
[no replies]
Deallocating memory Question
 
Hi all,!'m new to the c++ programming scene and I'm trying to get to grips with pointers. Lets say I have the following code: struct player { cha...
[4 replies] Last: Oh ok, thanks very much for your informative posts, helped solved my p... (by benzino)
Validation : What went wrong?
 
do { for(i=0;i<(strlen(temp));i++) { if(!isdigit(temp )) { cout <<"\nis not a digit"; system("pause") ; check = false ;...
[5 replies] Last: char EmployeeType; cout <<"\nPlease enter the Employee Type: "; cin... (by m4ster r0shi)
Im working on my tictactoe board using c++ program
 
hello guys.... im working on my incomplete tictactoe game... can anyone suggest some codes to complete it? here 's the code: #include<iostream.h> int...
[6 replies] Last: The first thing I'd do is get rid of the 3x3 2D array and replace it ... (by Dufresne)
by Nikoru
Understanding Classes?
 
So... I have been doing some tutorials from this site and others. I believe it will take me longer than most to completely understand why all the lines are need...
[3 replies] Last: Why is it in this line: void SetHealth(int iHealth); There is an i... (by m4ster r0shi)
Class encapsulation problem
 
Hi ! I'm having some trouble understanding class encapsulation on the following example (I don't think the rest of the source is relevant) . So I have a trivial...
[1 reply] : Private members are accessible within the class and its friends Since... (by Bazzy)
stacks
 
pls help me deal with this program pls. im really new to programming and i cant do it by myself.. pls help. all i need to do is just simply program arithmetic...
[2 replies] Last: im doing them in the main functions.. this is all ive got.. int ma... (by hikarujen)
#include "stdafx.h
 
ok so i wrote my code and it is telling me: fatal error C1083: Cannot open precompiled header file: 'Debug\lab 11.pch': No such file or directory and i am...
[6 replies] Last: Make a new project. (by blackcoder41)
tricky stuff...
 
1) ok so im reading this book and the author does this typedef void (*functionType) (TreeItemType& anItem); i thought that typedef was used to define ...
[5 replies] Last: does this mean i can do something like int x = 15 const since cons... (by blackcoder41)
two questions
 
1) if i create a class and make everything private, including the constructor, would the constructor still be called on when i create an instance of that class?...
[6 replies] Last: I see... That's interesting... thnx for the info! (by m4ster r0shi)
Strange Problem with Inputting
 
I made this program that takes a letter from the user, then outputs the guitar chord that corresponds with that letter. It works fine except for one thing. If I...
[4 replies] Last: Thanks a lot. I've been able to expand it, now it handles major, minor... (by MottMan)
Array Shifting
 
I am trying to allow the user to enter up to 26 chars in an array, and then it will go through the array, delete all the duplicate chars, and then shift everyth...
[4 replies] Last: That worked great. All i had to do was tack a a = 0; on after the j--... (by R4di4ti0n)
May 2010 Pages: 1... 2223242526... 33
  Archived months: [apr2010] [jun2010]

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