Thanks.Wrapped the string with _T.Still didnt work.Came across some code that had SetConsoleTitle in it.
It seemed to use a precompiled headers that u can setup when your creating the project in...
Type: Posts; User: Cathalo
Thanks.Wrapped the string with _T.Still didnt work.Came across some code that had SetConsoleTitle in it.
It seemed to use a precompiled headers that u can setup when your creating the project in...
Hi having problems changing title of console.I have included windows.h and have called the function in main but keep getting
error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from...
Got ye.I think i was trying the impossible:)
So what can go in the .cpp file then?
Will just keep using one cpp file and the headers.Not worth the head ache.And its not as If im programming Microsoft Office suite 2009 or half life 3:)
...
i Have for example int x=10 in playerClass.cpp.If i cout<<x; in main I get the error undeclared var.Main isnt picking up playerClass.cpp at all.
Will keep at it.Doesnt help that Im off cigarettes...
Yeah sorry didnt make myself clear.
At the moment I have
main.cpp
main.h(function prototype's)
playerClass.h(my structs and class's)
and I want to include a playerClass.cpp with the...
Hi how do you go about including two or more .cpp files in visual express 2008?Have no problem including headers but cant seem to fathom including extra .cpp files.Tried to find it on msdn but just...
Lazy Foo' Productions
Dont I know!think my first ever question was'how do you keep the console window open':)
Will check in the options menu.Tried googling but firewall in work wont let me go to the sites:(
Thanks
Hi,
is it possible to close the console window without getting the user hit enter at the end of the programme?Im using MS visual express2008,
regards
Cathalo
I get you Anon.So once the compiler sees that any of the variables can change and as a result the someArray could be of any size it throws up the errors.
Normally I always knew what size the array...
Thanks Laserlight.
Strangely enough bought accelerated C++ and was going to make a start on it this evening and one of the first subjects is the vectors
Regards Cathalo
Hi,tried to define the size of an array by doing this:
int x=2;
int y=3;
int z=x*y;
int someArray[z];
and I keep getting these errors:
Sun Forums
could be a good place to start
google is your friend
Thanks.
Ok I understand you both.I see where I was goin wrong.
I know that there is always going to be a 1 value in the array(well there should be!)
I take it that its a bad practice to to leave that if...
Hi,
Im trying to call a function within a function but the 2nd function isnt returning anything.
The code compiles fine.
void playerMove(char playerInput,int playerRow,int playerCol,int...
hi,
Im in same boat as your self.Just started learning c++ as a hobby.like a poster said above start off with basic console games like tic tac toe,hang man and as you go along a learn new parts of...
Thanks mats..I understand what your getting at.Will change to code too.the first case statement was been overwritten by the 2nd.Must of read the code 20 times and dint notice the missing break!
Hi,
have iniatlised all elements in a array to zero except for [1][1],where its value is 1.I then try to move it up,down left and right.It seems to work for down,left and right but when you press up...
What they mean by indentation is that your code is broken up nicely so that it is easier to read.Like below its easier to see when varibles are being initialised and so on
#include<iostream>...
thanks,I get you,its working now
Hi
Im using a switch case for menu options.In case 1 im just printing the values of a couple varibles.I put in the getline() but it seems to be by passed all together.
the varible flashs up on...
thanks@dwks that got it to compile fine
@laserlight im not sure i follow you..should the return type for the function be sShip?should structure elements not change?
thanks