Beginners - February 2012 (Page 16)

by GRDfzx
Screenshot.
 
How I can screenshot with c++?
[1 reply] : C++ doesn't know what a screen is. Check your OS's API. Wazzak ... (by closed account zb0S216C)
School Project Pointers
 
Hello everyone. I have a project to do for school and I'm still pretty noob at this whole programming thing. Any pointers anyone could give would be greatly app...
[9 replies] Last: I believe you have some extra brackets floating around in there. Ther... (by Lori)
When to use NULL
 
Getting these errors from compiler, any clue what they mean? WordCompleter.cpp: In constructor ‘WordCompleter::WordCompleter()’: WordCompleter.cpp:6: ...
[7 replies] Last: Your compiler doesn't think it is. Maybe you should recheck the type. (by cire)
by atjm88
ceil???
 
#include <iostream> #include <conio> #include <math> int main() { cout<<"\n1. sqrt(9) is "<<sqrt(9); cout<<"\n2. pow(5,3) is "<<pow(5,3); cout<...
[11 replies] Last: i didn't say that, i said the closest integer of 2.6 is 3. NOT the flo... (by Jikax)
by amb154
How do I store numbers from a text file in a 2d int array?
 
I'm trying to make a tile game in OpenGL, and i need to read the map from a text file. I've gotten as far as this, but i'm not sure where to go next. void ...
[no replies]
retrieving data from memory address?
 
Hi there, I"m new to c++ and to this forum as well, I am trying to save program data from one execution to another through sending the data to file with fstr...
[3 replies] Last: I get it, thank you all for your help. I was just thinking that keepin... (by yakyakbig)
by pzling
How to choose from multiple function definition
 
Hi I'm trying to use the floor() from <math.h> as follows: unsigned long a, b, c; c = floor(a/b); However I get an error that there are multip...
[2 replies] Last: awesome, thank you so much (by pzling)
Fill box issue
 
Hello, im having trouble with the function calls of my program. i need the program to output a box of a given size of asterisks and have the interior of that bo...
[4 replies] Last: @paper32 You need to create another function to get the char variable... (by whitenite1)
by xKeb
"srand" function and how to implement it.
 
I missed the whole week that this was covered. And I cannot find any help from the course book. All help is greatly appreciated. Write a function named gene...
[12 replies] Last: lowerbound + rand() % upperbound; should be lowerbound + rand() % (... (by Muckle ewe)
state error >.<
 
i dont understand why it wont work it says it cant convert...when i tried to load my menu function it doesn't load my menu any more. here is the problem w...
[2 replies] Last: okay fixed it thanks heaps now all i got to do is get rid of this warn... (by programmeraie125)
two dimensional array
 
I programmed something that will group numbers from 11001 to 111999 but I wanted it to run like this: for example if lets make the range of numbers from 1100...
[no replies]
Multiple Choice aPI
 
Hello, im looking for an API or Library etc. that allows me to toggle between multiple objects in console to return a choice. for instance in the bootup of a P...
[3 replies] Last: You can do it with any console lib that allows you to print to a given... (by Disch)
Noob question! (IF and Else)
 
Hey guys! I got a problem right here... When I run the program and choose an age under 18 in I'll get ""Hey kid, go to bed!"" which is good :p But when I tes...
[7 replies] Last: Does that mean I will have bad luck? According to my kids it is equ... (by clanmjc)
by AARGH
class / creating a temp object and assign it to invoking object *this
 
from what i am understanding so far it should look like this? golfers = golfers .setgolf() the setgolf() member function asks 2 questions from the user t...
[12 replies] Last: it definately works out well :) not only that, but i can snip the i... (by AARGH)
wont load menu
 
okay i am creating a game of pong and i cant get my menu to load their is no errors in my code that i can see but i am new so here is the codes for my main func...
[no replies]
by davy92
i am using Open Watcom and i need some help with the fuctions
 
#include <iostream.h> float fToC(float degreesF = 32.0); int main (void) { float fToC(float degreesF) { float degreesC = ((5.0 / 9.0)*...
[2 replies] Last: Multiple threads. http://www.cplusplus.com/forum/windows/62636/ Please... (by ciphermagi)
Integers are being weird
 
Ok, so I know this is a very basic problem, and so I'm a little ashamed of myself:P Anyway, this is a little text rpg I started coding this morning. However, ...
[8 replies] Last: Ok, thank you, I'll read up on that! (by opiop65)
trouble creating a calculator which can also calculate %, s, and e.
 
I’ve created a basic calculator using switch-case programming. There are a few issues with my calculator that I can’t figure out. First, my % (remainder) ...
[no replies]
Calculating and outputting numbers
 
Hi, I just have a query. How would I go about adding numbers together to output the total along with the program showing 1 - 100. Not a very good explanation, ...
[3 replies] Last: You need to track the current value and add them as you go: #includ... (by Stewbond)
accessing the data of a template class
 
we've to create an array template class that can be an array of any type. starting off i've created an int template, and using addEntry(), it compiles okay. i'm...
[7 replies] Last: I don't know why it is 26 from looking at what you've posted, what is ... (by clanmjc)
February 2012 Pages: 1... 1415161718... 64
  Archived months: [jan2012] [mar2012]

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