I totaly ballsed up typing in the example and have now got it working.
Thanks.
Type: Posts; User: The Gweech
I totaly ballsed up typing in the example and have now got it working.
Thanks.
thanks for the suggestion but that still hasnt worked . Any other suggestions.
It is also worth note that this is the first time i have tried using a resource file in a windows program so chances...
I am working my way through "Windows 2000 programing from the ground up" .After typing in a basic example of how to use menus (using a resource file, a header file and a main file)
i receive an...
thanks for that korn1699. I can sod off to bed now!
i am making a basic fruit machine program and i require this kinda thing
if(reel1 == reel2 == reel3)
{
cout << "you win!" << '\n';
}
but this doesnt work.
Geo Fry that is exactly what i mean:)
So far i have only seen tic-tac-toe and connect four in c++ console mode as far as games are concerned can you do space invaders and tetris or pacman?
Hello people,
I set out a couple of years ago learning to program games , and people told me i had to learn console mode c++ first before getting into the pretty graphics and what not. I now near...
the below program ends when a letter is input because any non numerical value is converted to 0. What if i want to be able to type in '0' and the program not to end . Can anyone help me out?
...
Does anyone know of a good link that explains the inner workings of the pc , explaining how the Stack , Cpu , registers and what not work together .
An easy explanation if possible.
Thanks...
Can someone please explain why the memory addresses are getting lower in the below code.
int main(void)
{
int num1 = 1;
int num2 = 2;
int num3 = 3;
int num4 = 4;
i dont want to initialize a value into the char pointer there and then like this
char *word2 = "s";
i want something like this
char* word2 = {0}; // this doesnt work
I am trying to cement my knowledge of pointers ,with very little success at the moment . I want to do the same with the second paragraph of code what i managed with the first . I am obviously using...
Thanks Salem .
char* names[] =
{
{"Mark"},
{"Nikki"}
};
char letter = *names[0];
char letter2 = *names[1];
cout << letter << endl;
There has been a few constructive posts there and i have built a loose conclusion.
Inheritance, operator overloading, virtual functions seem to be used in large projects if not mainly...
Okay a little background about where i stand at the moment . I am relatively happy with functions,classes ,objects ,constructors ,pointers , references . I think you will find that is about day 9 in...
Yeah i appreciate that but i thought a compiler would at least be able to count the number of news in a program and the number of deletes and if the numbers dont match issue a warning.
Just been reading about the new and delete keywords and i made the following simple code
// dynamic memory allocation
#include<iostream>
using namespace std;
int main(void)
so basicly if a class needs 20 parameters then so be it.
I just thought that either my program design would be at fault to use that many parameters and that there would be an alternative.
I am trying to get the hang of classes and I am using football management as the context.
I have the following code so for
// classes again
#include<iostream>
#include<string.h>
Troll King the book you mentioned is it for advanced users
of c++ or would a newbie be okay ( I know the syntax of c++)
I was thinking of the subject of a football manager game
and how classes...
Thanks FillYourBrain that has put another few pieces of the
puzzle into place. A big problem for me is when does something
qualify to become a class.
What would help me if someone could tell...
I am pretty comfortable with functions , loops and decision making
aspects of c++ and have written some very basic programs
using these techniques.
Now i am trying to get the hang of OOP and I...
Thanks Fordy thats the answer i was hoping for!
Guys,
Are unions the kind of things i can worry about way down the
track when i am comfortable with more important stuff like
inheritance , virtual functions and operator overloading ?