Beginners - December 2011 (Page 4)

Constant Program Speed in C++ and OpenGL
 
Does anyone know how to get a constant speed for an OpenGL program in C++, something that is constant that can be used for physics or game updates. In other w...
[2 replies] Last: I don't always use glut though, at the moment I'm working on an OpenGL... (by BrokenSilenceDev)
string line
 
void E1() //function definition { char pilihan; string line; system("CLS"); fstream deposit; deposit.open("customer.txt"); getline (...
[4 replies] Last: Try using: std::string std::fstream std::cout std::endl (by Galik)
by kapo
PrimeNumberTest_ ?.?
 
*make a prime number test using the for loop #include <iostream> #include <cmath> using namespace std; int main () { int j; int is_prime =...
[9 replies] Last: Your formatting isn't actually bad. It's concise without being cramped... (by ciphermagi)
Help me please.......!
 
I tried several times to solve this aproblem but I can not. The problem is: ------------------------------------------------------ Write a C++ program ...
[8 replies] Last: Are you reading data from a file or writing data to a text file? If... (by Ernest)
Link error? Help
 
Okay well, i'm starting to get into the SDL library and everything works fine its just when I run my program I get this message in my Build log : ========...
[2 replies] Last: Thanks for the link! Fixed it =] (by Ryan Wilson)
question on vector<T>::end() function
 
I am trying to write my own version of STL vector<T> class. I have troubles on the end() function; for example: MyVec<int> vec; .... //put some va...
[10 replies] Last: @eypros, all this really means is that you can't call end() on a list,... (by ascii)
Problem with math program
 
So I have this program that allows one to find the square root of a number except it does not do quite that. When I run it, the square root it gets is always 0....
[4 replies] Last: Ok I have figured out something to bypass all of this trouble with the... (by DaPasta)
How to read WAV from ROOT folder
 
Hi this is my first post and i hope it is easy to understand I use dev bloodshed c++ I use windows xp 32bit I'm working on a text based video game in conso...
[5 replies] Last: Thanks (by theguywhofallz)
by evb
How do you read RPC_PROTSEQ_VECTOR
 
the structure of RPC_PROTSEQ_VECTOR is: typedef struct _RPC_PROTSEQ_VECTOR { unsigned long Count; unsigned char *Protseq ; } RPC_PROTSEQ_VECTOR; ...
[5 replies] Last: webJose: Forget the last post!!! When tweeking my code I accidentall... (by evb)
seat with array!!! HELP
 
heey people .. i have problem that i cant solve i hope you help me with it ... i need to make seats like this : A B C D 1 * * * * 2 * * * * 3 * * * * 4 ...
[6 replies] Last: To get an output like you have above you could do the following: ... (by Stewbond)
by evb
How do you print the value of a pointer to a pointer?
 
How do you print the contents of a memory location given a pointer to a pointer to the location? ie: RPC_STATUS status; RPC_WSTR stringBinding; // I...
[3 replies] Last: Thanks! The fix was: status = RpcStringBindingParse( string... (by evb)
problem with allocating memory
 
Hi ppl! I'm new to this forums and beginner in c++. I've got problem with allocating memory task: i wanted to make an array with n numnbers and difference betw...
[2 replies] Last: thanks! i already thought that i don't know how to allocate memory :P (by Silvestar)
Grades Calculator
 
I'm reading through McGraw Hill Learn To Program With C++ and in the book we are making a Grades Calculator. Everything works fine till I try and add the while ...
[3 replies] Last: Thanks! I thought that might have been the problem. Wonder why the boo... (by kmlam585)
Help with this error
 
Okay so I am making my first c++ program, and I am really new to this so I can't understand why I got this error. Here is my code: #include <iostream> #inc...
[1 reply] : Get rid of the >> endl That command is only to end l ine on an ... (by ciphermagi)
unique random number generator
 
I wanted a program too generate 9 random numbers. I think I've done this (or at least come close) but console just remains blank (cpu usage increases considerab...
[3 replies] Last: You also have a boundary brake in line 21 (by eypros)
output running nonstop
 
When my program prompt the user to enter numbers it will perform the calculation. but when user enter it with characters (e.g a or b) the output will run non...
[4 replies] Last: I would also suggest that you can read your input as string, check if ... (by eypros)
clock with 4 decimal accuracy?
 
i'm using CLOCK_PER_SEC to time how long a function takes and am wondering if its possible to get the timing to 4 decimal places? at the moment i can get 2 dec...
[2 replies] Last: thanks but even when using double i still only get a 0.01 or 0.1 value... (by liquidmonkey)
Misbehaving program
 
Hi, I'm having a little trouble with this program. I can't figure out why it's wrong. Here is the original code: #include <iostream> #include <cstring> ...
[5 replies] Last: I didn't initialize the_string either. Did the cin operation initializ... (by Integrater)
by Maiels
Problem?
 
Hello everyone! So I was doing this simple program for my C++ training but there seems to be a error.In the build window doesn`t show any.I will show you right ...
[3 replies] Last: Wait, this won't work the way you want it to! At the end, if the user ... (by Caprico)
by theraz
finding smallest& largest in array doesn't work
 
// level 3 minsta storsta.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <conio.h> #include <t...
[4 replies] Last: #include <cstdlib> #include <iostream> int main() { char repeat... (by Catfish)
December 2011 Pages: 123456... 47
  Archived months: [nov2011] [jan2012]

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