Beginners - August 2011 (Page 13)

Arguments and Parameters
 
What is difference between arguments and parameters of function. I want to know detail.
[1 reply] : http://en.wikipedia.org/wiki/Argument_(computer_science) (by andywestken)
detect cin.fail with two inputs
 
I have a function that detects cin.fail.. int n; while(true){ cin >> n; if (cin.fail()|| n<=0) { cout << "Bad i...
[2 replies] Last: Solved by using my own method. Topic closed, thanks for reply. (by deathmoon)
get two input at the same time and check for cin.fail()
 
is there any way to detect cin.fail for 2 inputs? while(true) { cin >> row >> col; if (cin.fail()|| a !='*') ...
[10 replies] Last: Problem solved by using my own method. Thanks for the replies. (by deathmoon)
Memory Leak
 
I have read in a couple of places that pointers must be used with care, else they cause a memory leak. I had read the article on memory leakage on Wikipedia,...
[3 replies] Last: If you want an easy solution to this problem, you can bind pointers to... (by anonymous23323124)
Coordinates from array won't show up on a graph
 
Hello everyone, I'm new here but have been stuck on a problem for two days now. I wrote a small program to make an array, each element has 2 coordinates, and pl...
[6 replies] Last: And you could tweak the loop which searches for points so it bails out... (by andywestken)
by eaxx
How to create a Managed Class
 
I read on google(i couldnt find anything in the documentation), that to crate a manage class you must do it like this __gc class classname { public: ...
[3 replies] Last: Apparently, that's all you need to do: http://www.functionx.com/vcnet... (by shacktar)
by sf123
The use of fprintf?
 
Hi! Can I use fprintf to print text from a .txt file? What I mean is I want to print what the .txt file contains into the program. If not can you teach me ...
[2 replies] Last: i personally think that's the luser way.... you might want to invest y... (by brokenbot)
Doubt in Inheritance
 
I was having a little doubt in Inheritance. Say I have this: class A { protected: int X public: int ShowX () {return X;} }; class B: pub...
[4 replies] Last: Ok! That explains both of them. Thanks a lot . . . (by Nisheeth)
Program Not responding
 
int main() { int x; char* cp ; for (x=0; x< REQUESTED_BLOCKS; x++) { cp = (char*) malloc(10000,1); if (cp == (char*) NULL) break; } i...
[5 replies] Last: Please (oh, pretty please) use [co de] tags. You are using Conio... (by Danny Toledo)
[win32] Window to handle text (1,2,3)
 
Good Day, I don't know if I writed title right, but I'm looking for an "window" that will handle text I've entered, something like chat, I'll enter message, ...
[40 replies] Last: thanks a lot! :) my book is already here, so I'll start finishing it s... (by mekkatorqu)
C++ Vector - Is there a max. it can take?
 
Hi, I am implementating a C++ vector with struct. e.g. vector<student> s; Is there a maximum number a vector can take? I am reading a file into the vector...
[8 replies] Last: Are you using the vector's reserve() method to precommit storage? If ... (by andywestken)
Collision!
 
Hello. I need help with some pong collision. I have the Player collision down - if(BoxX == PlayerX + 18 && BoxY + 50 >= PlayerY && BoxY + 50 <= PlayerY + 225...
[6 replies] Last: [quote=kong288]And I guess adding half of the BotY doesn't work Why ... (by ModShop)
Game Design
 
Hi all, I was wondering if any of you could help me out with something. I have an idea on how to implement an RPG engine made for the C++ console with images...
[16 replies] Last: Yes! Allegro! >:) (by kong288)
Crashing when finding searchKey = Stimson , i dont know why
 
//classData Array.cpp //data items as class objects #include <iostream> #include <string> #include <vector> using namespace std; class Person { pr...
[2 replies] Last: lol silly mistakes always kill me, and i did forget some stuff in the ... (by maddogk9)
help me to figure out this example
 
so i copyed from a book Anmated tower of hanoi code. si i expefcted to see something when i run it. But when i run it i see 4-5 empty lines ans press any key to...
[6 replies] Last: ok ok now i can see the tower, but since this is animated tower of han... (by vastrolorde)
Coding game, need help with 'ranks' being able to use commands.
 
Hey Im currently trying to code a game thas the following : VIP Ranks - v GM Rank -1 System Admin - 2 I need the following code to accept all 3 ranks to use ...
[no replies]
Depth First and Breadth First Spanning trees
 
I will preface this by saying that I am a student and this is a homework assignment. I am not looking for someone to just give me code, but I am looking for a ...
[6 replies] Last: do you mean that the struct would have a node and a bool visited insi... (by andywestken)
what is wrong with my global var getting wrong or weird numbers for inventory function?
 
#include <iostream> using namespace std; //global variables int MONEY = 1000; //initial money int MEDKIT = 0, LIGHTER =0, KNIFE =0, FOOD =0, WEAPON =0,...
[2 replies] Last: don't initialize your global variables unless they're higher/lower tha... (by brokenbot)
Bots that interact with 3rd party softwares
 
Basically, what do I all need to know to make some software that plays/interacts with 3rd party applications? Be general but also go into details. Do I need o...
[no replies]
by w1un
problem with global variable, help pls.
 
i have an assignment, which is required to do a maze game. but i have a problem with global variable. the question in brief is that i can print out the char 2d-...
[12 replies] Last: cool, i got what u mean and i think it is working. thanks for your tim... (by w1un)
August 2011 Pages: 1... 1112131415... 39
  Archived months: [jul2011] [sep2011]

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