Beginners - April 2010 (Page 8)

by dumas9
problem with *char to string conversion
 
This is my code: // returns the value of this preference at index 0 ifail = PREF_ask_char_value("ProcessAdmin", 0, &adminGrpRle); CHECK_IFAIL(ifail); ...
[no replies]
SDL projectiles
 
hey guys i need to make a game that will spawn a new object every 2 seconds almost like a bullet being shot every 2 seconds and it will move across the screen...
[5 replies] Last: also, if you want to make something spawn every certain amount of time... (by closed account y8h7M4Gy)
Pointer/key input control
 
Hello! For a long time, I've wanted to make a bot program for various things, and here's the problem: I've never been able to find a keyboard or mouse input an...
[1 reply] : To manipulate input events on a system-wide level: http://www.google.... (by Duthomhas)
by GameOn
overflowof int
 
if i take 'i as int and num is long long and go like this num=i*i; then it will show TLE. but it works fine if i go like this num=i; num*=i; ...
[2 replies] Last: srry for late reply and thx for such an elaborate explaination :) btw... (by GameOn)
Calling Functions with Switch Statements
 
Hi, I am learning C++ and have started a simple console program to create and load text files for clients. I have created the two functions (createClient and op...
[3 replies] Last: Thanks! I believe that solved my little problem, your help is greatly ... (by aqdesign)
by Leppie
Could I have a code review please. Newbie and my first program
 
This program was just to learn, loops, if else's, rand and to see if I could get it all to work, (which it does). However I need the code review to tell me if t...
[2 replies] Last: Thank you for your advice, I haven't looked at array's yet but I will ... (by Leppie)
Validating Integer Input
 
How can I validate that an input is an integer and is within certain numbers? I tried this which did not work: bool valid = false; int choice = 0; whil...
[2 replies] Last: Simple stuff: http://www.cplusplus.com/forum/beginner/18258/#msg92955 ... (by Duthomhas)
a question about Facebook
 
...
[1 reply] : A cgi program written in C++ can be used to generate a webpage in any ... (by Bazzy)
printing array elements in the programs output.
 
I'm trying to print all the array elements in their proper columns in the second for(loop). #include <iostream> #include <iomanip> using namespace std; ...
[2 replies] Last: Dufresne, I appreciate you feedback that worked out just fine. The t... (by marty09x)
by mmm
error in atoi function
 
this programme hass error that i dont understand :D note: using language c not c++ # include "stdio.h" # include "math.h" # include "stdlib.h" # include ...
[4 replies] Last: thnxx,,:) but if i want to evaluate (for ex.=1789563+7897854 ).. how ... (by mmm)
How to Generate Random Numbers but..
 
Well I want to generate random numbers. The problem is, I don't want them to repeat, and I want to get numbers with in range of 1-100. for example // int ...
[5 replies] Last: Hi, I'm from Brazil and in 2006 i build this code: (After creating ... (by diogomilagres)
by Ranvi
Convert to void pointer
 
Hi, I need some help in converting the struct pointer to void pointer, since I do not want to expose the whole structure coming from one interface to the oth...
[no replies]
access violation
 
hi, i know this topic has been discussed so many times you probably want to kill me for bringing it again. I tried my best not to bother anyone but without s...
[7 replies] Last: oh... well.. that's.. :D .. good to know it at least.. thx (by stupid idiot)
by besc
Sams Teach Yourself C++ in 24 hours
 
Has anyone used this book? I just got it and when I klick on the tab to go to borlands site to register it takes me to "Emarcadero Technologies" site. No Borlan...
[15 replies] Last: It's pass 24 hours, some people here must have learned C++ already fro... (by blackcoder41)
Why is this crashing?
 
Hey, i've been stuck for a day or two trying to search the web on how to fix this problem and i haven't got positive results so i decided to register here. T...
[2 replies] Last: LOL, epic fail for me there. (by Chileandude)
Simple Hangman Project
 
I really need help with this project. I do not know where to begin at all. Below are the instructions from the teacher any and all help would be appreciate...
[1 reply] : Just think about what needs to be done. You'll need the word to guess... (by zoerb)
by arpi
Expression Evaluation
 
Consider a pseudo code which takes following expression as input and produces given outputs. Input Output [ 0 ] ...
[3 replies] Last: ya exactly sir....i have doubt that how do we use stack in the program... (by arpi)
vector subscript out of range error
 
I can't figure out why I keep getting an error when I try to print my vector. If I use anything other than names.size() in the for loop than I get the vector s...
[3 replies] Last: Are you sure that getNames is working correctly? It could be that you... (by zoerb)
by cyker
How to declare then defind a const variable which can [..to be continued]
 
How to declare then defind a const variable which can only be seen in a single source file? The title may be somehow long, I'll explain that. Normally, if...
[3 replies] Last: You could also try initialization lists. Not sure if that's what you'... (by zoerb)
by arpi
Prime No. summation
 
Express a given number as a summation of 4 positive primes. Time limit of execution is 3.00 seconds. void prime_sum(int n,int sol[ ]); The input contains...
[1 reply] : People aren't just going to do your homework for you. If you have a s... (by zoerb)
April 2010 Pages: 1... 678910... 35
  Archived months: [mar2010] [may2010]

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