Beginners - March 2012 (Page 7)

Abstract Data Types and Constructors Question
 
Right now my class is doing work on ADT and I have read through the section of the textbook that we are using about ADT and constructors several times and I'm s...
[1 reply] : An Abstract Data Type is, exactly as it describes, a data type usually... (by MrHutch)
Large array?
 
Hello, Im having a little issue with my 'roguelike' im working on, basicly I have this: int MapArray = {ETC} void DrawMap( void ) { for ( int y = 0; y < ...
[4 replies] Last: Haha ok, im new and that confused me :P -RetrO (by RetrOzombi)
functions
 
#include <iostream> using namespace std; int getScore(); int findLowest(); float calcAverage(); int getScore() { int test1, test2, test3, tes...
[2 replies] Last: nah i should have a function that reads in 5 scores and calculate the ... (by Stephie22)
by Eath
How do I...
 
Im looking to reference a text file and make it into a variable but I cant figure out how... Would be a great help if someone could show me how. Im trying to us...
[3 replies] Last: @ Aramil Was just some code provided on another post to me. @Danish ... (by Eath)
by jcat4
Program wants input twice?
 
I wrote this program, and it has no errors, however you must enter a value and press enter twice each time it prompts for user input for the program to continue...
[7 replies] Last: This is the correct version if your program.... #include <iostream... (by SUH)
Hi there, need little help on looping
 
Below is my code which i taken from my friend. I need a little help on looping, i wan this game not to end.I have tried some while loop but the game still quit....
[2 replies] Last: sorry to ask this, can i know in which side to put this code ? (by alwayzdevil)
change direction wave
 
Hi everybody.. i was make a sine graphic, but the result is not like what i want. Direction of sine wave that is in vertical, and amplitudo that is in horizonta...
[4 replies] Last: Thanks LB..;) (by sackmac)
by stima
std locale and setLocale problem
 
Hello. I have some problem to write in console localized text. It's my test: int main() { //Variant 1: setlocale(LC_ALL, ""); std::cout...
[2 replies] Last: sry its just bad copy past (by stima)
Delegation function.
 
Hello, I have a series of basic functions; at certain points in my program, a parameter is checked and a corresponding function is called. I do this through ...
[7 replies] Last: Woops, premature jubilation. Having troubles using it. I'm trying thi... (by Gaminic)
link errors
 
when I try to compile my code I get this error and four similar ones Error 2 error LNK2005: "int gameState" (?gameState@@3HA) already defined in main.obj C:\U...
[2 replies] Last: I fixed those errors now Ive just got to try to remember how to use re... (by jax666999)
need help with this C++ code
 
Only part of the code that doesn't work, Trying to get this part of coding to accept one decimal e.g 2.34 and if there was 2.3454.54 the output would be X. I k...
[no replies]
fstream and overloading questions
 
Hello, I posted earlier about my school project giving me some trouble, and while that was resolved, I've run in to some more, much more daunting issues. ...
[1 reply] : You need to put line 11-33 into a function (and call that function). ... (by coder777)
missing file header
 
Anybody,.. i was coding a program based a tutorial and than, i didn't find a file header in include dir, for example <stdafx.h>, because error message told me a...
[15 replies] Last: Thanks again Stewbond.. (by sackmac)
invalid conv from char to char*
 
Basically have a class dec Static funcname (char* file) ; Funcname ("myfile.bmp");
[1 reply] : Funcname is not the same as funcname . Static is unknown. funcn... (by kbw)
using a function return
 
how do you use the value returned by a function in another function
[5 replies] Last: Probably not the last time that one will get you. :-) (by MrHutch)
switch or ifs
 
I am trying to check wheather certain combinatins of characters occur in an array can I use a switch or do I have to use multiple ifs and if/elses
[15 replies] Last: Yeah, Lachlan, you're probably right. I didn't have a compiler handy ... (by MrHutch)
Love is not easy!
 
We don't do other people's homework. Try to do it yourself. If you get stuck, show what you have so far and ask the question.
[6 replies] Last: Well, you can but if it's your last post in that forum. (by CosminNTG)
by Cman87
Passing Objects
 
This is quite hard for me to understand Say that there is a class A. And I have created an object as " A *objA = new A" So this creates a pointer to objA of...
[6 replies] Last: Alright.... I am dealing with a lot of data. The object created has tw... (by Cman87)
Member functions with global scope
 
I have a class with a member function called factorial. I want that function to be available without an instance of the class being around (the class is initial...
[5 replies] Last: Got it. Thanks. (by AchyMain)
keep getting a screen of white!!
 
so i making a game and i trying to load a texture and i believe i have loaded it corretly but all i am getting is a white screen and i cant find where the probl...
[1 reply] : never mind the file directory had a lower case in one word..it needed ... (by programmeraie125)
March 2012 Pages: 1... 56789... 71
  Archived months: [feb2012] [apr2012]

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