General C++ Programming - October 2011 (Page 18)

by ladman
Pixel Indexing Game Levels
 
I am trying to make a game for a school project and use pixel indexing to create the levels. I don'...
[1 reply] : Maybe this is a dumb question, but what is pixel indexing? A google... (by Disch)
how to init static 2d arrays of a class
 
Hi guys, i have written a class: class myclass{ private: int a; public: static int b; static i...
[8 replies] Last: Thank a lot mik2718! that answers my question! (by kvikram)
Classes - Card Game Class & Array (help)
 
Hey guys, this is my first post here! I have an assignment for college, which is also a personal ...
[1 reply] : You shouldn't be #including cpp files. Header files only! Multiple s... (by Disch)
Texture openGL
 
I tried the following code glClearColor(1.0, 0.0, 0.0, 0.0); // Colour to clear the scene glC...
[1 reply] : The last parameter of glTexImage2D takes in a pointer to the pixel ... (by shacktar)
3 Quick Memory-Related Questions
 
I'm a little confused about cleaning up after myself. Let's assume I have the following situation (...
[3 replies] Last: It might be a misconception from my time with C, That explains wh... (by Disch)
need help to answer this question
 
Mark up this code block with TWO statements, to count the number of cycles executed in the event-con...
[2 replies] Last: Hi , we can use static variable also to count the number of cycle whe... (by bluecoder)
how to set ID's inside the for loop
 
I'm makng calculator and i want to make buttons and sets it's ID using for loop for quick coding but...
[3 replies] Last: Duplicate: http://www.cplusplus.com/forum/general/52707/ Wazzak ... (by closed account zb0S216C)
How to set ID's inside for loop
 
I'm makng calculator and i want to make buttons and sets it's ID using for loop for quick coding b...
[no replies]
by rkrish
need help in reading a file
 
Hi, I have a CSV file (comma seperated value) file at a particular path say /tmp/root/filelist/myfi...
[no replies]
max/min/average program
 
This program is suppose to find the max, min, and average for an unspecified quantity of numbers. Ev...
[3 replies] Last: Another method is to assign the first number entered to min and max. ... (by closed account D80DSL3A)
by ozesak
linker error related to ctype
 
Hi, I hava an application, where I mix C and C++ code. ( To be more clear, I have a C-kernel, and...
[3 replies] Last: ...and could you please tell me the long answer to help me understand ... (by ozesak)
some heplful pointers ASAP
 
- I need a book that will teach C++ concepts quickly and has clarity (preferably Linux). - Instea...
[1 reply] : I'd say go here: http://www.cplusplus.com/doc/tutorial/ and skip down ... (by Computergeek01)
Friend Function
 
Can anyone tell me what's wrong with it? #include<cstdlib> #include<iostream> using namespace std;...
[6 replies] Last: Is there any possible solution to solve the problem without changing t... (by ryan nyim choon siong)
filebuf object question
 
Is it possible and safe to declare a filebuf object like this? filebuf fi; fi.open("something.txt...
[6 replies] Last: OP wrote: filebuf got me the best write/read speed since it's low ... (by Computergeek01)
help about this ... :D [C++]
 
Hi Guys, I want make something like virus make hidden folders and files for me i write thi...
[9 replies] Last: @ OP: Due to Lines 10 and 11 this is technically a logic bomb, a poor ... (by Computergeek01)
by xNutty
sorting
 
guys, how do i do sorting in a stl linked list? for example in my link list there is a (float x) ...
[9 replies] Last: yea... u are right.. i had no idea how what is the two sort.. the poin... (by xNutty)
by Tatipu
Desperate need of help with arrays...
 
If you could send me msg I'd be more than happy to provide you with all information needed . I've b...
[11 replies] Last: When testing your program, use the same seed so you can test with th... (by packetpirate)
Use of random number generator
 
Hello, I am doing a homework project in which I have to model the calls coming into a call center. T...
[3 replies] Last: You can make function which return random number like this int rando... (by Dinesh subedi)
Real Time calculator
 
hey guys I was wondering if yall can help me. the program is to work like this if there are 60 sec...
[3 replies] Last: yes... I didn't see it :) (by tolga gerekci)
how to do it?
 
Write the logical opposite of this if-statement, applying DeMorgan's Theorem: if (a == 1 || a == 2) ...
[1 reply] : if(a !=1 && a!=2) (by kvikram)
October 2011 Pages: 1... 1617181920... 36
  Archived months: [sep2011] [nov2011]

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