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't know very much about it, but want to implement it into our...
[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 int c ; myclass(){ a = 0; } }; i have couple of ques...
[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 assignment that I wanted to do. My idea is to create a simpl...
[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 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); ...
[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 (regardless of whether it makes sense or not): char* co...
[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-controlled loop: while (...) { ... } The ... seq...
[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 my problem is when i click the button nothing's happen. I u...
[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 but my problem is when i click the button nothing's happen. ...
[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/myfile.txt given input file path as: /tmp/root/filelist/myfile...
[no replies]
max/min/average program
 
This program is suppose to find the max, min, and average for an unspecified quantity of numbers. Everything works fine in the output except the min value alway...
[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 a C++-lib added to it) When I build it, I get some linke...
[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). - Instead of going through all those basics like variables, if then ...
[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; class Patient { float Height; float Weight; friend class...
[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", ios::in | ios::binary); or must I do something like t...
[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 this code but dont work [C++] help me plz --------------...
[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) and there are a lot of them. how do i cout the x from big...
[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 been working on this assignment for almost 24 hours straight ...
[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. The arrival rate is an exponentially distributed random varia...
[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 seconds in a minute it will show the time in number of mintues ...
[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.