Beginners - August 2011 (Page 34)

static vectors/maps
 
Hello all Could anyone please tell me how do I declare and make use of static vectors & static maps? I have one base class and 3 classes derived from it. I wa...
[1 reply] : You need to make the static object either protected or public. Your c... (by webJose)
Need help to repeat the programme
 
#include <stdio.h>; #include <cstdlib>; void main () { int option; char repeat; do { printf("*************************************\n"); printf("...
[11 replies] Last: oo i c thanks (by Frozendog11)
Object Positions
 
Hey guys/girls, I've got a serious brain block on the part thats supposed to think when i hack code into a file. So here's what i want to achieve. I've go...
[1 reply] : Define the object type struct objectType { int x; int y; ... (by Moschops)
by kassik
array
 
Hi there I am trying to write a code that in there I want to use these orders #include<iostream> using namespace std; int main() { int i,j; ...
[13 replies] Last: Except that sizeof int is usually 4. (by hamsterman)
class StudentEntry {...} *entryList[MAX_STUDENT];
 
Hi, I am beginner and i haven't seen class like this...can any body explain me role of this class? Whole code is from this site: http://www.cplusplus.com/arti...
[5 replies] Last: Despite the errors in code I see many formatting problems that makes t... (by siavoshkc)
by maliv
class header issue
 
hi everybody i have trouble in classes and headers . here is my files: file:test.h #ifndef TEST_H #define TEST_H using namespace std; class CRectangle { ...
[2 replies] Last: i dont know how i should link test.cpp with main.cpp i have written ... (by maliv)
Continuous Calculator w/ object class
 
#include <iostream> using namespace std; //1.This is my current code for a calculator, //I need to make it continuous until the user press =. //2. How do ...
[5 replies] Last: Like I said, make your main Equation e; e.read(); cout << "ther re... (by hamsterman)
Changing The Ouput From GetLocalTime() Using Cout
 
I need to include a timestamp accurate to Milliseconds therefore I am using the GetLocalTime function. I am able to do this using the following code: #inclu...
[5 replies] Last: Try cout.width(). (by webJose)
Where to go
 
I am currently taking a 2 week course in C++ and by the end of the week I hope to know basicly all the fundementals of C++. So far we are making some simple tex...
[6 replies] Last: Making video games was the reason why I wanted to be a Software Engi... (by sohguanh)
by Adrio
C++ Class calculator not working
 
So the assignment is to make a class calculator. The professor gave us a lot of help and very specific steps to follow so the code should work... But I think I ...
[8 replies] Last: How did you figure out how to program in order for the calculator to w... (by LadyCooper)
calling an array function issue
 
I'm just starting this program and cant seem to call the function to display anything. If I don't use the function and just enter the code it works fine. (you'l...
[4 replies] Last: never mind i figured this out thanks (by krakkens)
Read char from text file always result in extra one line
 
Hi, I would appreciate if someone can advise me on this issue. I am trying to write a program that read a text file. The input of the text file looks like this...
[no replies]
Swap value by pointer
 
I have a function that takes in typedef struct{ int a; int b; }example void foo(example s) { /* Is is possible to swap without declaring aa and bb pointer li...
[1 reply] : I think you meant this: void foo(example s) { int *a = &s.a... (by shacktar)
Problem with variables (I think!) (1,2)
 
I've started trying to learn C++ because I find it pretty interesting, and I need something to do other than working at the moment! I've learnt about some basi...
[20 replies] Last: wow. that was the last thing warnis! just me being unobservant and tir... (by jrtfiges)
Another problem making SDLSurface show
 
It doesnt have the same solution though hehe. I just made this new class for my "monster". But the monster is not appearing. Here is the relevant code ...
[no replies]
DLLs
 
Hi there, I am experimenting with exporting functions to a DLL and using this DLL in another project. To export, I am prefacing the function declarations us...
[no replies]
by wasabi
Using parent assignment operator
 
Let's say I have the following code: struct A { int a; operator=(A& obj); }; struct B : public A { int b; B& operator=(B& obj); } I b...
[4 replies] Last: That is... completely reasonable. Thanks. (by wasabi)
Sending arrays from a program to another
 
i have two programs, the main program reads a list of files and them read the files one by one storing their numeric content in unidimensional matrices like thi...
[17 replies] Last: Regarding programming languages, the choice really depends on what you... (by andywestken)
Creating executables
 
I'm creating a program that I plan on distributing to a multitude of people. I am using Microsoft Visual C++ 2010 Express. How can I create an executable (.exe)...
[7 replies] Last: Be aware that unless you are very careful and explicit about how the c... (by Duthomhas)
Why isnt my SDL surface showing?
 
Everything is running fine except the gun is not showing. Please tell me where i screwed up. in Player.cpp pistol = graphics->LoadImage( "Media/Player...
[2 replies] Last: Yeah lol thanks again disch! (by nano511)
August 2011 Pages: 1... 3233343536... 39
  Archived months: [jul2011] [sep2011]

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