Beginners - November 2008 (Page 5)

by srlunx
Unable to compile, debug & release...
 
ummm...i am using Visual C++ 2008 - Express Edition. and...i can compile/release in the [Dev C++] program. why i couldn't do it in VC 2008? Guide me please. ...
[4 replies] Last: I also use Visual C++ 2008 - Express Edition For some reason, when ... (by someb0dy)
How can i pass in an array with a value?
 
Hey guys, how exactly can i pass an array with a value into a function. Etc void MyFunction(SDL_Rect *pCamera, SDL_Rect tile ) { } Is anything lik...
[4 replies] Last: I think this should work: void MyFunction(SDL_Rect *pCamera, SDL_Rec... (by Bazzy)
Creating a Tile Engine with SDL Problem
 
So below is my code that compiles with no errors. But i know something is wrong as it does not display anything. I took out the snippets that I'm using from my ...
[no replies]
Sorting an array in ascending order
 
Hi all, I'm having a bit of trouble sorting my array into ascending order. I don't want someone to write the code for me, but if I could get a hefty nudge in th...
[2 replies] Last: Thanks! Those were awesome links. The one for sorting algorithms is fa... (by proudHelios)
by mjmr89
Increasing console resolution?
 
I'm new to C++ and still working in the console and using curses, I was wondering if there was a way somehow to increase the resolution past 80x25. Thanks!
[no replies]
by Timbo1
Division calculator
 
Am having some trouble with a division calculator here are the errors 1>c:\documents and settings\timbo\my documents\visual studio 2008\projects\new calcu...
[2 replies] Last: Why exactly did you add this? TIMSPrompt:: And another question: ... (by helios)
amateur code not working. any ideas?
 
i have wrote my "Hello World" code but now want it to stall afta being decoded so that command prompt exit when you press a key. i have used the following to tr...
[7 replies] Last: See, here's the problem with VC++: The default project configuration s... (by helios)
Why do all my programs use 100% CPU?
 
For example #include <windows.h> int main(){ POINT p; do{ GetCursorPos(&p); }while(p.x>10); return 0; } Help please...
[3 replies] Last: The reason regular programs don't use 100% CPU is because they spend m... (by helios)
by Sathed
Vectors!
 
Hi there! Long time listener, first time caller... j/k! No really, I'm trying to convert the following file that using I/O to input data from a .txt file f...
[5 replies] Last: It might be a good idea to close the ifsteam when you're done with it,... (by seymore15074)
by Timbo1
DirectX installation
 
I tried to install directx for MVC++2008 but I keep getting errors: 1>c:\documents and settings\timbo\desktop\2d game\08_animations_source\library.h(12) : fa...
[5 replies] Last: The installation shouldn't try compile anything... If in doubt, search... (by exception)
How can i make this SDL_Rect Work?
 
I'd gather this is simple but I'm just doing it wrong? CODE: const int TILE_SPRITES = 12; SDL_Rect rClips ; SDL_Rect *clips; clips = &rClips; ...
[5 replies] Last: I see what you mean but i'm getting damn frustrated lol, i've been stu... (by Mythios)
Random 1 - 6 into a char array.
 
I know this might sounds weird and it can be DONE EASILY using int array. However i would like to try on char array. I tried and it print alot of funny characte...
[2 replies] Last: yeah it works. Thanks. (by mrgoogle)
Error in my SDL Game get_box() Function
 
Hey guys, been programming a lot more further with this game but I've come to a stump with this bit of code. The source is pretty large so I'm just going to pas...
[5 replies] Last: Yup awesome, thanks :D (by Mythios)
by Novice
Arrays and Ranges
 
Hello, I looked in the contents here but can't find any thing on this particular problem...killingthemonkey's post is close but not quite!! I want to crea...
[10 replies] Last: Ah, I thought msoft compilers keyed on stdafx.h and ignored everything... (by jsmith)
Connecting to a wireless computer
 
This is more of a general question, but it's end is for a C++ program. I've read articles about connecting to a specific IP address, but how does one connect t...
[1 reply] : You will need to know some networking, more specifically winsock. Try... (by Sathed)
SDL Error: redefinition of default parameter
 
Hey Guys, Just started a basic SDL program but I've already come to an error after the first couple of minutes. Not exactly sure why I'm getting the error th...
[3 replies] Last: Thanks a heap for that helios - that explains it a lot better. Cheers (by Mythios)
a little problem
 
i have a problem here is the code: #include "stdafx.h" #include <iostream> using namespace std; int main() { char *a,*b; int x; b = "test123456789...
[5 replies] Last: I personally would use STL strings instead. #include <algorithm>... (by jsmith)
do while loops
 
hey guys im a high school student in desperate need of help with loops especially do while loops an help that you guys/girls can give me would be wonderful
[2 replies] Last: thank you very much it helped a lot (by allenanders)
handling collections
 
I'm a c++ newbie and would like to know what is the best way to handle collections: vector template or arrays ? thanx in advance
[1 reply] : With a vector you could add elements so it is better but it isn't th... (by Bazzy)
by Nay
Cant see my output!!
 
My program runs without error. It has few cout statements. But I cant see any output on console. I tried using cin.ignore, but that does not seem to have any ef...
[3 replies] Last: Aside from main() that it should be declared as int , your program ... (by Bazzy)
November 2008 Pages: 1... 34567... 19
  Archived months: [oct2008] [dec2008]

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