Beginners - April 2013 (Page 73)

Trouble with my assignment again..
 
Whenever I try to start debugging it, it says 'M' is being used without being initialized...I want to rip my hair out -_______- What I have to do: A void fu...
[10 replies] Last: Instead of: char M = 'M'; //... if(option == M) Ispil is ... (by Daleth)
by xzki
C++ Allegro Help?
 
Hey guys, are the many users here who have experience with allegro? If so, any ideas how to hide/delete and image from the screen after drawing it? Cheers
[4 replies] Last: Ok thanks, Just missed out a set of brackets that's why errors were co... (by xzki)
Time.h date does not work in ifstream
 
void OrderList::setDate(char* date){ this->date = date; } char* OrderList::getDate(){ return date; } void readOrder( OrderList *&order , in...
[no replies]
by Daleth
A function with many local variables.
 
Will a function with many local variables slow the program down since the variables have to be recreated with every call to that function? void foo(){ ...
[2 replies] Last: Thanks. (by Daleth)
by jc4bs
A Class With Objects of Another Class as Private Members
 
I have a class derived from a base class with a constructor. This class itself has its own constructor to initialize its private members which consist solely of...
[1 reply] : You need to pass 3 sets of name, age, height, weight, plus DerivedTwo'... (by Lowest0ne)
by rruss
HELP!
 
I have to create a project where i have to read and compare individual digits of a digital clock and output certain statements based on the comparison. For exam...
[2 replies] Last: Well, you could set the input to a string, and check each character of... (by Ispil)
SFML Problem
 
I can compile this code fine in Codeblocks with Mingw. I don't get any compile errors. I'm pretty sure I have all of my settings fine. However when I run it ins...
[5 replies] Last: Stick with SFML, Austin. It's better, IMO. Although it probably woul... (by Disch)
help with my assignment
 
when calc number employees at lines 119 and 130 The program gave me that in output #include<iostream> #include <vector> struct employee ...
[5 replies] Last: Thanks I found the problem. (by Man silence)
by MM45MM
C++ assistance
 
trying to understand polymorphism. Not looking for answers but some assistance in having the same character output to a window using visual studio 2012. So I ...
[no replies]
Bit Masking
 
I'm having a weird issue with my code, basically, All im doing is Bit Masking. I create an object of type BitArray, and then I Set and unset bits. All of the Se...
[6 replies] Last: I can't see any point in using double types for your variables - why d... (by TheIdeasMan)
by ninos4
Function is not executing
 
Hello,
[3 replies] Last: Thank you so much! My professor advised I remove my code to prevent o... (by ninos4)
by Pebble
Class member by reference
 
I'm trying to do an exercise that does a boolean string compare of 2 class member's. I'd like to accomplish this on my own but cant find any simple and clear...
[no replies]
Return EXIT_SUCCESS not executing.
 
So I've got an assignment that is due in a few days and the code itself works perfectly. However, when it comes to exiting the program, EXIT_SUCCESS is being ig...
[7 replies] Last: No, I don't... I'll have to change that. (by Specula)
How to access element of a 2D array located in a struct
 
Just to let you know, this is some sloppy coding, so please ignore the the ugliness of it. I need to access an element of a two dimensional array, that is locat...
[5 replies] Last: Thanks, I got it now. (by monkeybutt)
by suraya
error C4430 missing type specifier
 
hey guys, i am wrinting this program and i am getting horrible errors. this is the part where all the errors are caused: this is var.h: #ifndef VAR_H #d...
[7 replies] Last: thank you a lot i will try that now :) (by suraya)
noob. help!!!
 
so im following a online tutorial and making a simple c++ program. but i came across something that confused me. when i assign the value of "sum" at the start, ...
[2 replies] Last: thank you for the quick reply and the simple explanation (by ichigogb)
by AbR
vector of pointers to vector objects
 
vector<MonsterType> hArmy; // MonsterType objects pushed back on hArmy using PushMonsterType (not included here) vector<vector<MonsterType>*> Enemies; //vector...
[4 replies] Last: Thanks. A little re-writing made it work as it should. (by AbR)
Error: "warning: character constant too long for its type"
 
This is my first post so bear with me. char Grade(int avg, int& aCount, int& bCount, int& cCount, int& dCount, int& fCount) { switch(avg) { case '0 ....
[2 replies] Last: Just curious the reason why you don't need if else is because it will ... (by closed account 3qX21hU5)
by tripke
Very simple Loops problem: Need help
 
I am really trying to understand how a do while loop works, but I cannot figure out the correct configuration. #include <iostream> using namespace std; ...
[6 replies] Last: Ok I'll run you through this loop step by step. #include <iostream> ... (by closed account 3qX21hU5)
how to shoew float value with no decimal c++
 
can we show float value with no decimal like we can do in c language but can we do this in c++ in c programing printf("%.0f",n);
[2 replies] Last: the code i am doing need 8 byte for int data type how i can assign mor... (by tjnapster555)
April 2013 Pages: 1... 7172737475... 83
  Archived months: [mar2013] [may2013]

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