Beginners (Page 93)

key pressed
i have no idea about hte part where it says "if GetAsyncKeyState(vkey)" this is what some guy gave m...
[2 replies] Last: #include <conio.h> #include <windows.h> #define _VK_P 0x50 void _clrs... (by SorinAlex)
Storing Class object in a array
Please take a look at the following: dispenserType type ; dispenserType appleJuice(); ty...
[1 reply] : That behavior leads me to think that appleJuice and type are two sepa... (by kbw)
tellg tellp seekp seekg
Can someone explain to me in simple details and stuff what are tellg tellp seekp seekg for??? :D Tha...
[1 reply] : When processing a stream that's capable of reading and writing (put an... (by kbw)
Undefined reference for included class
I am writing some C++ implementations which work if I inline all the functions into one file, but I ...
[2 replies] Last: That is the answer thank you! (by barnhillec)
i have to made a class of large integer. that is capable of storing and manipulating integers so big...
[no replies]
Copying Arrays
I am trying to copy the values from array 2 to array 1 however when I compile I get the error "stri...
[4 replies] Last: Thanks so much i just appended it like you said. (by nickmiller24)
Class and vecors, writing CD collection program
I'm writing a code that keeps track of a CD collection, however I've run into some issues with my co...
[3 replies] Last: Something I noticed while I was skimming. On line 92, you are calling ... (by xismn)
Ifsting problem
I need help about database, my problem is I need a code on how can I pop out my output on Microsft E...
[no replies]
Random Numbers help
I am currently writing a slot game program. I have most of it worked out but I cant seem to generate...
[1 reply] : #include <iostream> #include <random> #include <ctime> constexpr std... (by JLBorges)
Struggling with Reading File Input
Hello, I am working on a school project that requires me to read basketball statistics from a file ...
[no replies]
by wolfv
Write to a stringstream and then read from it
Is there a way to write to a stringstream and then read from it (including a space charater or empty...
[3 replies] Last: jlb: line 18 repositions the get pointer so it can read the character ... (by wolfv)
key reading
i would like it to read if any key is being pressed for the time its pressed #include <iostrea...
[1 reply] : I'm a bit confused on the iostream and std then you use printf. :P any... (by giblit)
Quick question
Hey I have a my programming lab question here and I just don't know what's wrong. This is the que...
[2 replies] Last: Ahhhhh! Yes it was my lack of curly brackets on the the else statement... (by eladage)
by kim12
Need help with C++ assignment!
Can someone please help me? I can't figure out how to code this assignment I have. The assignment is...
[4 replies] Last: How would I go about coding something that overlaps like for example,... (by cire)
How to put a counter..
So for this code I have a menu and I need to put counters for Falafel, Soda, and extras with their t...
[no replies]
srand compiler error
Hello all, I am trying to make a player vs computer tic tac toe game, and it runs a couple turns and...
[1 reply] : //makes the seed tim... (by ne555)
Need help please
if i entered 10 characters and i want the program to cout a certain character in the string and besi...
[3 replies] Last: EssGeEich (2118)@ the code didn't give me the desired result. i don'... (by hossamshreef)
by merta
a program that will input an n-by-n matrix A by rows from the keyboard in the following way. Each li...
[11 replies] Last: The problem is solved whit this code: int row = 0, col = 1; cons... (by merta)
C++ forbids declaration of ‘setPosition’ with no type
Hi all. Trying to work through exercises in "An Introduction to design Patterns in C++ with QT". ...
[3 replies] Last: Do you know why it needs a return type? The language requires it. A... (by cire)
member functions passing variables
Hello all, writing code for a game, and am trying to ask the user if they want to play vs another pl...
[2 replies] Last: you are amazing, thanks!! (by pilotnate)
Pages: 1... 9192939495... 112
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.