General C++ Programming - March 2011 (Page 17)

I don't know what is wrong with this array builder
 
I'm trying to write a function that will build an array for me. But I know it doesnt work because when I print part of the array it comes out with a large (9 di...
[3 replies] Last: nvm it's working (by closed account 9hv4jE8b)
by yeoj
Creating a txt file
 
I read that you can create a .txt with c++ and I have tried what they suggested and it doesn't work. I am also wondering if you can read a specific line in that...
[2 replies] Last: Also: http://www.cplusplus.com/doc/tutorial/files/ (by Computergeek01)
Class and C2065 error
 
Hi void clockType::printTime() const { if(hr < 10) cout << "0"; cout << hr <<":"; if(min < 10) cout << "0";//Gives me an error here for cou...
[1 reply] : You need std:: in front of it. (by firedraco)
Search Function (Vector and Struct)
 
Hi, I am having trouble with a function where I am trying to search a contact by last name. I have atruct with all the contacts info first name, last name, ...
[3 replies] Last: Thank you so much. I took the (loc) out of my string , and it work gre... (by lapoker85)
by reacen
I really need live help for installing CxImage library.
 
Hi. I need some one to help me install the CxImage library on my Code::Blocks please. Because I really give up, it's been 3 days googling and searching but ...
[2 replies] Last: @PanGalactic: Yes, true. I'm still a newbie, But yet I can install som... (by reacen)
Deleting last Linked list node?
 
I have to write a complete function for the CS class that will do the following: Accept a pointer called FirstRoom by reference and remove the last room on the...
[8 replies] Last: Okay I think I've made some progress.... int RemoveRoom (Room *&head)... (by skatingrocker17)
Question about class/struct copying
 
Hello, I'm new here and was wondering if someone could be of assistance. I was wondering if it's possible to copy a class or struct, to another one which inh...
[no replies]
by Gldnbr
Simple math program help
 
I'm trying to write a program where you submit 2 numbers into the executable and use a function to display the addition and subtraction of these 2 numbers. I k...
[2 replies] Last: Oh okay, my mistake. Solved. THANKS! (by Gldnbr)
by dAND3h
SDL_BlitSurface problem
 
Hi, I am currently using the SDL library for some simple game development. I have run into a problem. Ok here goes: I have a Sprite class, which holds all in...
[5 replies] Last: You're mixing together elements of your game world and the graphical r... (by quirkyusername)
by imi
Passing by reference and RVO
 
Hi, does passing a complex struct/class by reference always yield in better performance? IIRC, I read somewhere an counter example, where you get a worse perfo...
[6 replies] Last: I can not help myself, but to write something :) Well, I think I read ... (by simeonz)
Need some explaining please
 
Can anyone explain to me how I should solve this in a correct order: !( ( 1 || 0 ) && 0 ) I know the answer is 1, but can someone explain how to solve t...
[4 replies] Last: Thanks very much! :) (by TotalMax)
boost::filesystem -> recursive_directory_iterator no EACCESS to folder/files
 
Hi everybody, if you use boost and the recursive iterator method to scan your local system and e.g. one folder like "C:\Documents and Settings", the user do...
[3 replies] Last: I can't get it to fail on Windows. I'll check in on OS X later. (by kbw)
C - Accessing Structure Function Caller
 
I'm a bit confused with this one. How do I access a function caller from a structure? Take the following code example: #include <stdio.h> struct _Bas...
[3 replies] Last: For more reading, see the venerable Function Pointer Tutorials http... (by Duthomhas)
by ed0
Program!!
 
hi dears, I faced with one program, which I cannot to write, even I Don't know from what to start. So the task is: To create a class about phone book, in whi...
[7 replies] Last: Kirizel2, can u write this program for me? Some users tend to give h... (by closed account zb0S216C)
Trying to finish final problem for Homework any ideas on what i need?
 
Hi I am finishing up my last homework problem and it ask for you to enter the Golfer A or B They both play 18 holes of golf, It then takes the total strokes for...
[no replies]
Templates + inheritance + virtual functions
 
Code.. template<class T> class AbstractFactory { public: virtual ~AbstractFactory() {} virtual T* Create(uint32 type) const = 0; virtual bo...
[no replies]
writing into a text file with void function?
 
Why can I not write like this? Error keep on appearing on line 9. 1 void student::writeLongRecord() 2 ofstream("student_data.txt"); 3 fstream stu; 4 ...
[2 replies] Last: thanks for pointing that out :) I have solve my problem. (by student 123)
Birthday Program
 
Hi all, okay as my fist customized program. I want to make one that will allow me to do the following. I want to make a program, where I type in the birthd...
[5 replies] Last: OpenGL is a bad choice for that, go for Qt ! http://qt.nokia.com/ And... (by reacen)
by Gldnbr
Simple template/array help
 
I know I made two other topics about this already, instead I figured it'd be better if I had it all at once in this topic. So, what we have here is a program t...
[2 replies] Last: To Gldnbr : Please don't double post /cross post - you just wate p... (by guestgulkan)
by KaiL
OpenCV How do I get cvBlob.lib ???
 
I am using visual studio 2008.
[2 replies] Last: Is cvblob.lib = cvblobslib.lib? By the way , thanks for your help. (by KaiL)
March 2011 Pages: 1... 1516171819... 31
  Archived months: [feb2011] [apr2011]

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