General C++ Programming - April 2008 (Page 2)

Help with time.h
 
I was wondering if anyone had any ideas as to how i can get my program to continuously check for time. It counts down and everything but it waits until the butt...
[no replies]
Help with go fish
 
hey everyone. this is my first post. i am new to c++ and need some help. fist of all i am self taught through books. i am writeing a go fish program for my b...
[4 replies] Last: Perhaps you could make a class/struct Player for each player of the ga... (by Zhuge)
extending class property to main?????
 
class cplus{ public: void a(){x=5;} int x;} in above class we used variable x in function 'a' where x is not declared above the function 'a'. it means comp...
[1 reply] : C++ programs are checked in multiple passes. The compiler takes note o... (by rpgfan3233)
' '==0
 
char s=0; cout<<s;// prints space if(' '==0){cout<<" space character is equivalent to 0 integer";} // donot display the message typed ABOVE DOUBT:when we...
[1 reply] : char s = 0; // Ascii NUL The Nul character is unprintable (it has... (by closed account z05DSL3A)
Please help me with a segmentation fault
 
Hi! I've a problem, I've done a class called Model that can load 3D models for an OpenGL application. It works just as it should and have member functions to di...
[2 replies] Last: Ok, thanks. I made it a vector of pointers as you recommended and ever... (by Brown Jenkins)
by Jeanne
Returning multiple variables in a function, passing by reference
 
Hello and thank you for any help in advance. I am a student currently working on a C++ assignment as follows: Specific Tasks: Write a program that repeat...
[2 replies] Last: Thank you so much! I had the function type as double instead of voi... (by Jeanne)
constructor help
 
Im new to c++ im tring to include my constructor, and it wants me to set the numerator equal to the first argument value and set the denominator equal to the se...
[1 reply] : One thing is that the very last line - #endif - belongs at the end of ... (by jsmith)
2d vector, classes, bitmap
 
hey guys i have to implement and test a header file here bitmap..implementation uses a 2-dimensional vector of bool called grid and its dimensions, numrows and ...
[no replies]
by etoile
How to remove duplicate ints from a vector
 
Hi, I got a problem with removing duplicate ints from a unsorted vector. Problem is that user will type ints as many as he or she can. The program need to pri...
[1 reply] : If you use std::set instead of std::vector, duplicates are removed aut... (by ropez)
crop video files
 
Hello! I am a C++ beginner. I want to write a program to crop black bars off top and bottom of video,Is there any function to cut data? thanks! へへ
[2 replies] Last: fread http://www.cplusplus.com/reference/clibrary/cstdio/fread.html... (by InLight)
Adding a timer in a C++ program
 
Im using a OOPic-R microprocessor for a school project. The basic thing Im looking for to is to light up an LED (which I can do already), however Im trying to w...
[1 reply] : So far this is the program i have. It lights up two LEDs and keeps the... (by nightrain85)
Polymorphism and inheritance...
 
I can't do the following due to the fact that the Base class doesn't have a function named Hello(): class Base { public: virtual ~Base (void) {} }; ...
[1 reply] : I'm not sure what you really want to do, but to call Hello directly, y... (by ropez)
ERRNO inquiry...
 
Hi guys! Need your help once again. I was again reading the Reference Part of this Great Site, and found something interesting. The CERRNO, heard is has ...
[1 reply] : I recommend checking out http://www.cplusplus.com/reference/clibrary/c... (by rpgfan3233)
passing multiple params to thread
 
I have a function like such: void acceptClients(CLIENTS *list,SOCKET s) and I want to run it in a thread, something like: _beginthread(acceptingClients,...
[5 replies] Last: The explicit keyword can be used any time you write a constructor that... (by jsmith)
sorted Linked list problem
 
I am trying to write the program for sorted-liked list. By the way if I try to send the data to fuction from user input, the program gets crashed, but if I call...
[2 replies] Last: At a glance, I could tell you that your addSong() would need a simple ... (by satm2008)
Trouble with a class in a DLL
 
Hey. I have a problem. I search the web for class in DLLs. I found some pages and try it. here is the code for my class. main.c #include <window...
[16 replies] Last: I was leaning towards it being compiled in C, I hadn't noticed the nam... (by closed account z05DSL3A)
by BxCore
Using my program
 
Hello, Ive built a simple conversion program for myself for school using visual studio 2008. My question is is it possible to take the program and get ...
[5 replies] Last: If your .exe file is located in C:\Program Files\meter_mile1, then it ... (by rpgfan3233)
What are bit flags ?
 
As the title says, just what exactly are bit flags ? I can't seem to find a definition or explanation of bit flags on this site or in my reference book. I've ...
[2 replies] Last: This is an example, using a 8-bit unsigned integer to store 8 flags: ... (by ropez)
Writing own compiler and language.
 
I decided to write my own language and compiler. My question is, what is the best way to handle user declared variables. In my language there is already a def...
[no replies]
it is char* ???
 
char* s="cplus"; string a=s;// correct string b="plus"; char* q=b;// error we can initialise string by a char* as in 1st two steps.but why cant we initial...
[1 reply] : std::string is a typedef of a class, and one of its constructors can t... (by rpgfan3233)
April 2008 Pages: 1234... 11
  Archived months: [mar2008] [may2008]

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