General C++ Programming - July 2008 (Page 4)

How to make player chams?
 
I'm trying to code this game and making player chams although I'm having difficulty finding the code and making them. I'm new to this whole C++ I've been readin...
[5 replies] Last: No problem :) Sorry we couldn't help. (by Zaita)
what is the difference
 
what are the difference between cstdio.h and iostream.h
[1 reply] : C and C++? http://www.cplusplus.com/reference/clibrary/cstdio/ htt... (by mikeb570)
by k9mk2
Copying youself?..... how?
 
Ok I have nearly created my program everything seems to be working ok (except one other thing but that will be a different post) I want my program to copy itsel...
[4 replies] Last: Yeh sorry about the title, and thank you for the help and scince I've... (by k9mk2)
FIX 3 ERRORS ..
 
#include <iostream.h> #include <conio.h> #include <string.h> main() { int Num1; int Num2; int Num3; int maxNum; int minNum; ...
[1 reply] : Try this: #include <iostream> #include <conio.h> #include <str... (by Return 0)
by oktet
Debugging Stub Functions
 
Okay, I am a newbie in C++, but I have done the reading, searched Google, and joined the MSDN developers; however, it seems that when you ask a simple questio...
[3 replies] Last: Thank you Guestgulkan and Aakanaar for the quick response and the ex... (by oktet)
by idono
Rpg game
 
i have been working on a rpg game and im trying to use a menu anf if staments for the items and attack useing loops 1 can this work this way and 2 im getting er...
[2 replies] Last: thanks this code is just one part of a much bigger code iv been worki... (by idono)
To overload or Not to overload
 
I have a class, that contains several pieces of data. I'll be using a vector of objects based on this class. So, when it comes time to print these objects to...
[4 replies] Last: you know what.. turns out I won't be able to print from inside the obj... (by Aakanaar)
function pointers
 
hai, i want the function prototype for the below 3 function pointers. 1. void * (*(*fp1)(int)) ; 2. float (*(*fp2)(int,int,float))(int); 3. double (*(*(*fp...
[no replies]
by PWWWWR
205. 205! 205?
 
struct COLOR { unsigned char R; unsigned char G; unsigned char B; }; int main() { COLOR * color; color = new COLOR ; ...
[11 replies] Last: To follow on from guestgulkan's reply. Do NOT assume this is going to ... (by Zaita)
by neeti
image reading
 
hi!! this is the part of a code on which i m working and image is read in .pcx format.if i already define rows and coloums then it reads the image but if i us...
[1 reply] : http://www.cplusplus.com/forum/articles/1624/ (by Zaita)
Implementing chance in C++
 
Hello, I was wondering if it is possible to implement chance in C++. Can you create something that says, 1, 2, 3, and 4: they each have a 25% chance of b...
[5 replies] Last: srand() seeds your random number generator. The number you put in deci... (by Zaita)
debugging and runtime errors
 
I have been working on this program for awhile and have had a lot of runtime errors in it. i have gotten most of the bugs out of it but still find values that c...
[1 reply] : We aren't here to test your code =\ However. By merely looking at j... (by Zaita)
Registering a class
 
I'm integrating an open source library to some of my code. To customize a class, I need to create a derived class from a base class(of the library) and then 're...
[1 reply] : Register Class is not a part of the C++ language. It will be specific ... (by Zaita)
A little question about operators...
 
I have this code: awi_clog("Unknown command: " << command); Which uses the function: string awi_clog(string awi_clog_text){ std::...
[3 replies] Last: Ah, okay. Thanks guys. <3 (by XTZGZoReX)
by k9mk2
My other and final problem
 
how could I close explorer.exe from my program it's probally simple but I dunno :D thanks for the help!
[2 replies] Last: Oh, well, great job, there. Convert a char array to a string, then cop... (by helios)
unable to understand c++ union
 
hello friends i am somwhat unable to understand union in c++.please guide me to understand for the same. thanks puneet
[1 reply] : http://www.cplusplus.com/doc/tutorial/other_data_types.html or use MS... (by elpis)
Taking only part of a char array?
 
Let's say we have a char array test , and it contains "123456789" What should I do if I want to get only the first 5 characters and put it into another chara...
[1 reply] : Use strncpy http://www.cplusplus.com/reference/clibrary/cstring/str... (by elpis)
by idono
random math teacher
 
Im having trouble with connecting a random math problem to the correct answer its i don't know if its my logic or am i missing something to connect the random 2...
[7 replies] Last: It's called manual labor.... Breaking the process by yourself :)* Y... (by PWWWWR)
by petike
"Struct" or "Class"?
 
Hi, I have completely learned the languages "C" and "Java". In Java there were only Classes but NO Structures. And now when I am learning "C++" language, I a...
[4 replies] Last: I think he was replying to the wrong thread. Not sure, but his answer ... (by Aakanaar)
what does this mean?
 
what does this mean in more basic c++ terms? it is a function in a header file: friend ostream& operator << (ostream& os, const item* itm);
[5 replies] Last: hmmm... As I told you it makes your life much easier when you use outp... (by Mitsakos)
July 2008 Pages: 123456... 10
  Archived months: [jun2008] [aug2008]

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