General C++ Programming - December 2008 (Page 3)

Check Box Question
 
New to the world or programming, I'm trying to resolve an issue in a program involving a check box that doesn't display the 'check mark' once it's been clicked ...
[4 replies] Last: is this MFC? I work directly with the win32 API, I haven't done anyt... (by Mal Reynolds)
Best practices question
 
To get things started, I am re-writing an application that I originally wrote in perl. So I am some what sticking with the same concept as I did for the perl ve...
[3 replies] Last: i would still do it using object oriented design. I would think you c... (by Mal Reynolds)
read() function with THREE arguments???
 
I am referencing a code sample I found on the web, and there is a read() statement which takes THREE arguments. Open this URL: http://www.ncsa.uiuc.edu/Peopl...
[2 replies] Last: Thanks, I think I've found it here: http://www.opengroup.org/onlinepub... (by Zettai Baka)
by Vater
pointer to function
 
Hello, I've a question concerning pointers to functions. In my self made menu class a function should be called, if the user clicks on a part of the menu. Rig...
[4 replies] Last: O_o. Implementing this in my class produces another error. It seems, t... (by Vater)
basic type to string
 
Hi all, why is there no operator like template<typename T> std::string operator+(std::string const& s, T const& t); template<typename T> std::string ope...
[8 replies] Last: Ok, thanks. That's something... =) (by caramelo)
Max file size
 
Hello, How do I determine what the max input file size is for my implementation of the standard library? I guess what I am getting at is a 32-bit file p...
[3 replies] Last: Thx helios, I have been trying to avoid the Win32 API for future po... (by CPlusplusdna)
Call by Reference
 
I have the following function. class MyData : public Singleton<MyData> { template <class QUEUE_TYPE> void MyData::dequeue(int name, QUEUE_TYPE *data...
[2 replies] Last: Y I will test it tommorow. It makes sense when i think about it :) (by Superheftig)
by jereme
a C++ algorithm problem- skyscrapers (1,2)
 
Hi can someone plz take a look at this skyscrapers problem in SPOJ: http://www.spoj.pl/problems/CEPC08B/ The time limit is although 10s, but still not enoug...
[22 replies] Last: Argh. I just realized that I completely messed up the indices (no excu... (by exception)
Adding page to a property sheet causes error
 
Hi, First of all i'm using VC++ 6.0 My program has a property sheet called "CPropSheetPR" with 10 property pages in it. All added with AddPage(&m_RM) for exam...
[2 replies] Last: Anyone? (by bouboune)
Making your own printf like functions
 
Hello. I have currently made a function which is declared as follows: inline void fdebugPrintf(FILE* file, const char* fmt, ...){ #ifdef _DEBUG fprintf(...
[6 replies] Last: It has a number of features that are all there for a reason Some fe... (by Bazzy)
Problem with pointers
 
Hello everyone! I have a structure: typedef struct Node_ { struct Node_ *left; struct Node_ *right; struct Node_ *parent; bool color; int data; ...
[13 replies] Last: If you need a pointer, then yes, you must do it that way. But: REM... (by firedraco)
Rounding Numbers
 
Hi I need to either round a number up or down depending on the users choice. For example: 3194 can be rounded to either 3200 or 3190 3194 can be rounded to ...
[2 replies] Last: http://www.cplusplus.com/forum/articles/3638/ (by helios)
by asmtom
Inserting an X into a table depending on user input
 
In my program I have a table of mon-sun on top, and morning, noon night on the side. I want the user to insert which of the options they want, and then an "X" ...
[3 replies] Last: It's a console application, I'm just doing a first year C++ course, so... (by asmtom)
by sharik
System() ; Spawn*() ; does not work properly for my specific EXE program
 
hi to everyone i use Borland C++ 3.01 (yes that "ugly" blue screen , why? because i write programs that manipulates txt files and Dos C++ works faster then a...
[2 replies] Last: Maybe the problem is in Borland? I have heard that isn't really good. ... (by Scipio)
where's my mistake? [SOLVED]
 
Hi! I have to make a program in C++ using Visual C++ 6.0 .There must be a list of options for operating with the program: 1..Creating a file which holds inform...
[5 replies] Last: fp.write((char*)t,(nomer-1)*sizeof(prep)); //saving the eleme... (by lightlord)
argv to string
 
Hi, I am a absolute c beginner... for now, I have the following problem: #include <stdio.h> #include <string.h> #include <stdlib.h> #include "aspell.h...
[1 reply] : You can use sprintf(word,"%s",argv ); Here the C++ way: #includ... (by Bazzy)
program that reads file
 
Hey guys. When writing a program that reads from a file, where do I save the file so the program can read it? Thanks for your help in advance.
[2 replies] Last: Don't post twice! http://www.cplusplus.com/forum/beginner/6419/ (by Bazzy)
by amir
copy the whole row or column whithou loop
 
Hi there, how can I copy one whole row of an array to another array. Is it possible without loop? In Fortran or Matlab: array(:, j) means the column "j" ...
[1 reply] : I suppose you mean matrix. Take a look at the STL copy algorithm (by Corpus)
by dm10
Memory Game Program
 
I need some help with this problem: A common memory matching game played by children is to start with a deck of identical pairs face down on a table. A playe...
[3 replies] Last: cards =rand()%8+1; the way you initialize the cards isn't co... (by anders43)
Using "return 0;"
 
Hey I'm making a program that gives me a few strings from an array depending on how many I ask for. The arrays are in a separate class in a .h file. But I wan...
[3 replies] Last: Nevermind, I get that you can't pass an array. Originally what I was ... (by epiqu1n)
December 2008 Pages: 12345... 10
  Archived months: [nov2008] [jan2009]

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