General C++ Programming - February 2012 (Page 10)

OpenGL tutorial?
 
Hi, can anybody tell me good source for learning OpenGL? I m searching and I also find some sources but I do not know which one I can choose.
[3 replies] Last: tnx (by Anon777)
[SOLVED] 64 bits standard lib functions (like atoi) ?
 
I have to deal with values going from 34 bits to 42 bits and convert strings of such values into u_int64_t. It seems that the standard library with its atoi or ...
[6 replies] Last: Thanks very much. (by lalebarde)
Collecting and logging data
 
Hello.. My friend and I are writing a program for an honors project that is going to analyze stock quotes and detect trends/patterns.. The problem is we ca...
[1 reply] : That's the sort of thing you need to pay for. Is the problem with get... (by kbw)
Enumerating Removable media?
 
Hi guys I'm stuck on a piece of code, I want to get the address of any removable media (Including USB HDD and Thumb drives). I've tried GetDriveType() and th...
[2 replies] Last: I checked WMI and I can't seem to get it to work, is there any way? I... (by Zinglish)
by kribel
Using / returning an iterator
 
Hi all, I just read the iterator reference at cplusplus.com and a chapter about iterators in a book, but I still cannot get the point about them. Here is ...
[7 replies] Last: Many thanks to all of you. @clanmjc: I know that I am exposing privat... (by kribel)
Combining Time Complexity
 
how you would compute/denote the time complexity of two loops based on different variables? I understand how to compute the time complexity for a simple loop ...
[2 replies] Last: You are correct that the time complexity is O(MN). You say that "M hap... (by Peter87)
Arrays (1,2)
 
Hi Folks, I need to know how to use arrays to open a file containing a text and read it into my program. I'd be happy to have some examples support. Thank...
[27 replies] Last: Can you post the code they were in? If they were by themselves like th... (by LB)
*** glibc detected *** double free or corruption (fasttop): 0x09499008 ***
 
Hello fellow programmers. I am new to c++ and also fairly new to programming. I have been given an assignment to create a class called Doctor. The user inputs ...
[2 replies] Last: It's a requirement for the assignment to use dynamic arrays. Again, I'... (by adjoiningPanda)
by Syl
Making a Game Menu
 
So, I am trying to make a function where the user can hit and a key and be taken to a menu system, much like a pause menu. But the issue is, I need to know how ...
[1 reply] : Depending on the logic of your game, a pause menu would be rather simp... (by ModShop)
by LB
How does the compiler know?
 
Warning: this post contains C++11 code. LB is not held responsible for loss of comprehension. I'm trying to test how the compiler knows what types are wh...
[4 replies] Last: Thanks, I wasn't too concerned with how auto works. I was more concern... (by LB)
by Phiru
How to get USB format ??
 
There are two or more type of format methods of USB. One is FAT and another is NFTS. I want to get which format of the USB I have is. I guess it's pos...
[no replies]
by Rudey
malloc/calloc in C subroutines
 
Hi all, I want to implement a C subroutine, in which memory is allocated using malloc or calloc. The subroutine gets the address of a pointer (defined in the...
[2 replies] Last: Thanks a lot! (by Rudey)
Easy Game Programming Language
 
So for the longest time I have been trying to find a simplistic way to create 2D games in C++. I have come up short each time as if it was meant to be that I am...
[no replies]
two dimensional array
 
programmed something that will group numbers from 11001 to 111999 but I wanted it to run like this: for example if lets make the range of numbers from 11001...
[no replies]
by snova
template specialization problem
 
Hi Everyone, I am facing compiler error with the following code in VS 2005; It points to template specialization declaration statement - class CStack <std::...
[5 replies] Last: Thanks clanmjc. It does work perfectly, and I understand too. (by snova)
Regarding null character
 
Hi, I want to clarify, for the program I have written, is the reason var 'third' doesn't output to screen is b/c the null terminator overwrote the first charact...
[3 replies] Last: right. <string> and <cstring> are 2 different headers. <string> ha... (by Disch)
by raffos
Replacing accented characters in a string
 
Hi Everyone, I have this problem. I have to copy a string read from a database into a char buffer replacing the accented characters with the hex values of th...
[9 replies] Last: Solved, the problem was that I was working with string instead of wstr... (by raffos)
by rzaj
Help with how to clear the input stream
 
I have a project where a user enters a series of integers, and the program must display the highest and lowest value and the average. After, it asks the user if...
[2 replies] Last: I was able to figure this out. Thank You. (by rzaj)
by jwings
Expression: string subscript out of range
 
int equals(string str1, string str2) //return 1 if str 1 == str2, 0 if str1 > str2 || str2 > str1. { int i, j; for( i=0; str1 !=NULL; i++); for( j=0; st...
[4 replies] Last: 1) A function called equals should test to see if the two strings are ... (by ciphermagi)
Two-one dimentionl Random/ Set Array! help me!!!
 
Scenario: You're conducting a study on the number of people that ride the METRO each day. After collecting the data, you will perform statistical analysis. ...
[no replies]
February 2012 Pages: 1... 89101112... 43
  Archived months: [jan2012] [mar2012]

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