Beginners - March 2014 (Page 60)

Ifsting problem
 
I need help about database, my problem is I need a code on how can I pop out my output on Microsft Excel after I run in on c++ my prof told me to use this exam...
[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 random numbers. In the spinner function I call another func...
[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 named in06.txt. The file in06.txt looks exactly as follows: ...
[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)? My failed attempt follows. tellp() works as expected ...
[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 <iostream> using namespace std; int main() { bool pressed =...
[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 question: Write the definition of a function named maxmin t...
[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 that I have to look for overlaps. Example of Overlap: Ke...
[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 totals set to two decimal places. I already have a total and ...
[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 then gets an error: Unhandled Exception: 0xC0000005: Acces...
[1 reply] : http://www.cplusplus.com/forum/general/112111/ //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 beside it all its orders in the string. for example: The result ...
[3 replies] Last: EssGeEich (2118)@ the code didn't give me the desired result. i don'... (by hossamshreef)
by merta
Matrix
 
a program that will input an n-by-n matrix A by rows from the keyboard in the following way. Each line should input a row of the matrix where (i) one or more sp...
[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". Simple, trivial stuff but I've been beating my head for a we...
[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 player or computer. If against a player, move on to p_v_p. W...
[2 replies] Last: you are amazing, thanks!! (by pilotnate)
String search program
 
Hey all, I'm working on this homework assignment and I'm really having trouble. I'm supposed to count the number of words more than two characters(have to con...
[7 replies] Last: Problem is probably that if word is in line multiple times, it will be... (by MiiNiPaa)
need help with shipping cost program
 
I am doing a C++ program for class it has to list shipper, receiver, add insurance and shipping cost. It works fine in Raptor flow chart. I have modified it af...
[1 reply] : Why are the receiver and sender's names doubles? Shouldn't they be str... (by giblit)
by angelk
C++ Game managerial/strategic shift
 
I develop a managerial game/turn-based strategy, with the use of AI (Artificial Intelligence). Can you give me some advice on what kind of game you might develo...
[no replies]
What does this code entail?
 
Hey guys, This book I'm following gives questions but no answers which is strange but this is one of them. "Will the three memory addresses displayed by the ...
[4 replies] Last: also you don't need to output the pointers address like that. cout... (by giblit)
Simple way to convert exe to apk.
 
Hello, idiot question over here : Is there a simple way to convert a C++ console executable to a apk that runs also in console, on a android device , without kn...
[1 reply] : For direct conversion, I don't think so and do not think it will be ef... (by Aceix)
How to take care of these repetitions elegantly?
 
The following gives what I want, but I want to remove the repetitions: #include <iostream> #include <list> struct InventoryItem { virtual ~InventoryIt...
[3 replies] Last: If there would be several more entities like Menu: Visitor + CRTP http... (by JLBorges)
by enemy
Global variable-heap???
 
Hello! Please, if we have a global variable, declared on the very beginning of the program, variable of ANY TYPE (int, char, array, struct), if it is declared ...
[1 reply] : See this: http://stackoverflow.com/questions/1169858/global-memory-man... (by long double main)
March 2014 Pages: 1... 5859606162... 79
  Archived months: [feb2014] [apr2014]

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