Beginners - July 2013 (Page 27)

Detecting pressed key
 
Hi guys, I trying to detect what user have pressed by GetAsyncKeyState() #include <iostream> #include <window.h> using namespace std; int main () ...
[1 reply] : For the parameters, you need the virtual keys. Example if (GetAsyncK... (by Callum5042)
Function Parameters
 
Why can't I write int getWhatTheyWant(int choice) instead? Isn't those () used to declare variables that are about to be used inside the private function getWha...
[2 replies] Last: In your 2nd example the variable is being passed to the function exter... (by Raezzor)
...
 
...
[7 replies] Last: The problem isn't with the double to int problem, it just says that be... (by TwilightSpectre)
If switch statement fails?
 
I have this being called: cin >> c; switch(c) { case '1': blacksmith(); town(); break; ...
[3 replies] Last: Thanks for your help! (by sanoj00)
C++ primes using find_if
 
First of all i'm a beginner in progamming. I need to make a calculator for aritmetics, combinatorials and number strings. I'm stuck at the primes because i need...
[no replies]
Windows Visual C++ 2010 won't debug
 
Every time i try to debug my programs, it says my project is out of date even though i just created it. I also get windows error message saying "Microsoft Re...
[1 reply] : http://stackoverflow.com/questions/6103250/visual-studio-2010-debug-no... (by tath)
Program doesn't work for larger values
 
Hi everybody, I am trying to write my first program. Unfortunately, it won't work for large input values. Realistic values for my application would be n = 25...
[4 replies] Last: Hi Laura, Is there a reason why you are writing C rather than C++ ? ... (by TheIdeasMan)
What's the difference between char* a and char *a
 
What's the difference between char* a and char *a char* a char *a char * a
[11 replies] Last: Most of the time, I declare only one pointer/reference/etc per line, ... (by MikeyBoy)
How to correctly read an entire binary file?
 
I wrote this to read a file, but i found the bin it read is not the bin it was...there were some redundant bytes at the end...why is that? char* FileToBin(c...
[1 reply] : there were some redundant bytes at the end...why is that? how did you... (by coder777)
why a= new char [210]; but strlen(a)= 224??
 
char *bin; bin = new char ; if(strlen(bin)!=210) { //I used debug to detect the strlen(bin),it's 224. Not 210 MessageBox (NULL,L"error!!...
[3 replies] Last: Well, I see...Thanks you guys.. (by CharChen)
Help with vehicle registration console app
 
Hey thanks in advance to anyone who could lend a hand, im trying to get something together for a small security place, and we could really use some automated wa...
[no replies]
So sick of this Banking Project.
 
I have been working on this project for two and half days now. I know that isn't a long time, but it has been almost nonstop. I am so tired of looking at a scre...
[4 replies] Last: Hi silversidewalkstew , Btw, try to avoid starting new topics about ... (by TheIdeasMan)
Sieve of Eratosthenes : Bitwise version
 
After searching the net i came to know that the bit-wise version is pretty efficient. The problem is i am unable to understand the math/method it is using. T...
[7 replies] Last: Problem is solved just examined a few cases deeply. @smac89 thanks. :) (by The Protostar)
by wardah
HELP !!
 
Write an algorithm to print all even numbers in descending order and draw the flowchart. Put the code you need help with here. [/c programming]
[18 replies] Last: The program needs to print even numbers in descending order. If you w... (by jrfrago)
Help: Cannot Output properly
 
I'm sure why it won't output properly. When I input '1', I'll print '132' and if I input '2', I'll not print result. I'm not sure whats the problem. Header f...
[1 reply] : Your bracing is wrong, at least for the for loops. Any block like that... (by Raezzor)
FreeGlut?
 
Where can I find a solid FreeGlut tutorials.
[no replies]
GLUT
 
My window quickly disapers after being displayed. #include <stdlib.h> #ifdef __APPLE__ # include <GLUT/glut.h> #else # include <GL/glut.h> #endif #in...
[2 replies] Last: Try adding some functions: http://www.opengl.org/resources/libraries/g... (by Niven)
appending a file
 
is there a way to open a file when you 1st run a program - as if it were new - then open it later and append it? I have a program that asks for information f...
[6 replies] Last: added an extra function to run the program itself and main only opens ... (by scthread)
array size - columns?
 
I'm reading someone else's code (which once I understand what it does, I have to rewrite in a different language) and I can't quite figure out what's going on h...
[4 replies] Last: Okay. I think I get it. Thanks. (by rachelp)
by Tomhet
"lazy erase with vector"
 
is it possible to auto erase a pointer from a vector container? a stuff what's like swap... #include<vector> int main(){ std::vector<int*>ptrs; in...
[1 reply] : Huh? What does it mean to "auto erase"? There is no way for the vecto... (by Zhuge)
July 2013 Pages: 1... 2526272829... 53
  Archived months: [jun2013] [aug2013]

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