General C++ Programming - December 2011 (Page 19)

McNuggets problem, showing "all possible combinations" instead of one.
 
Hi, Im taking an intro to C++ class and I have a project that computes the possible combinations of 6, 9 and 20 piece mcnugget packs that can add up to a total ...
[1 reply] : You need recursions, a tree, a (singly) list, a lot of logic, but not ... (by coder777)
McNuggets problem, how to show the largest number that "cannnot" be purchased
 
Can someone fix my program, so it can show the largest amount of mcnuggets that "cannot" be purchased? I wrote this program, but instead of showing the largest...
[1 reply] : What's the criterion for 'cannot be purchased'? (by coder777)
[Linker error] undefined reference to '__dys_tls_init_callback' DevC++ error
 
I need some help. I opened DevC++, created a new OpenGL project with all the default settings, removed the comments, and compiled. I did not change the code in ...
[3 replies] Last: This is a post reply from another forum: All you have to do, is go to... (by modoran)
LINKED FILES
 
Good day! I want to create a program that will allow the user to access other programs. For example: What program will you wish to open? Dictionary Thesau...
[1 reply] : Neither C nor CPP files can be 'executed' like EXE files. They MUST be... (by LB)
dynamic two dimensional array
 
I have a class TrigramVector that can hold a TrigramVector for a file. What I am trying to do is in another class, called Language, is store all the Trigram Vec...
[2 replies] Last: thank you so much! (by carokai)
any idea what these compile errors mean?
 
Language.cpp: In member function ‘void Language::insertLanguage(std::string, Document)’: Language.cpp:80: error: no match for ‘operator=’ in ‘*((*((L...
[2 replies] Last: what does it mean to overload operators? these compile errors mostly i... (by carokai)
static member functions(valid use of?)
 
I had an idea for wrapping the general creation of a window into a single class using static member functions and a single static member variable. After thinkin...
[4 replies] Last: Thanks for the replies. Never heard of singletons till now. After read... (by skrug80sc)
GUI Urgent
 
I am creating a GUI which reads a txt file and outputs a txt file with column heading and the information from the input text file. Everything seems to be compi...
[1 reply] : My guess would be that 'FirstRecordPointer' isn't correctly set. That ... (by coder777)
COUNTDOWN TIMER IN C
 
Good day! I am trying to make a game that has a timer in it and it will appear every 5 seconds to inform the user about the passing of time: example output: ...
[1 reply] : http://www.cplusplus.com/reference/clibrary/ctime/clock/ (by NVTKrishna)
c++ other date format?
 
#include <iostream> #include <ctime> int main () { char date ; _strdate(date); std::cout<<"Current Date:"<<date; return 0; } I use these...
[1 reply] : Use the following reference. strftime has greater control to format ... (by indikau)
Erasing map elements in a while loop
 
I have a map with following signature. map<const char*, int, Comparator> map_Keys; //Comparator is defined elsewhere I need to clear the map after the...
[11 replies] Last: No, I don't use std::string throughout my program. Hence I don't wan... (by indikau)
by Azat
Arrays
 
Please some one explain me this topic ARRAYS!!!!!!!!!!!!
[3 replies] Last: Nothing we write here will be any more use to you than the explanation... (by ausairman)
by namcs
Need to initialize array after malloc?
 
Greetings, I usually have to deal with large 2D arrays. Before using them, I need to reset all the value to 0: double* arr= (double*) malloc(height*width*s...
[2 replies] Last: Great!, thanks ne555 (by namcs)
by Srija
CLR programming
 
hi...... I am trying to create CLR in VC++2008 . I hav created one Dll in C++ and wonna use the dll in CLR class library. For that what i have to write in...
[no replies]
by Kathy
c++ - Sorting files problem
 
I am trying to sort a record according to their respective number like this: 5 reyes d r 1 2 3 3 delos d k 4 5 6 9 go t r 7 4 5 1 po w w 2 2 2 2 bun b m...
[2 replies] Last: thanks ^^ (by Kathy)
Write Memory address
 
Hey i need some help i have made a d3d menu to turn on chams in game i just want to type chams on with the in game text i found this with all the addresses i ju...
[2 replies] Last: Your post makes little to no sense. You need to word it properly and I... (by TheNoobie)
by LB
Crash on deallocating temporary?
 
Say I have this as a DLL's code: std::string Name() { return("My Plugin Name"); } This DLL is loaded dynamically and the Name function pointer is retrieve...
[8 replies] Last: Well, better to find out early that late I say. The only decent choic... (by webJose)
Simulate Java by C++ with reference
 
Can we just use reference in C++ when I dont need change location of pointer? The purpose is to simulate process of Java. For example: //declare an object Foo...
[6 replies] Last: std::string, std::vector and many other containers use dynamic allocat... (by Peter87)
by iPlus
Books On Object Oriented Programming
 
Any suggestions or links would be helpful
[4 replies] Last: And the irony of it all is after reading from GoF and you look back at... (by sohguanh)
Stack around the variable was corrupted.
 
So this is my code: HRESULT CSerializer::Deserialize_CBaseMap( CBaseMap &map, CONST CHAR *filename ) { ifstream ifs( filename, ios::binary ); if( ifs ) {...
[1 reply] : I've fixed the problem, actually. Anyone who is wondering, this is th... (by Nicholas Allevato)
December 2011 Pages: 1... 1718192021... 39
  Archived months: [nov2011] [jan2012]

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