Beginners - August 2011 (Page 31)

how can i shorten up the options?
 
currently there is only the first option and the exit option, but after having all 10 options, there will be a lot of code for this function. Is there a way to ...
[8 replies] Last: Minor correction! Basically that integer would be able to be accesse... (by andywestken)
Sparse Matrix Multiplication
 
Hi! I want to learn a program for multiplication of sparse matrices.
[1 reply] : Did you do this as a learning exercise or because you actually need to... (by helios)
Loop with > test terminating when they're same
 
Basically as title states. double daph = 100; double cleo = 100; int year; for (year = 0; cleo < daph; year++) { cleo...
[1 reply] : The condition you put in a for is a condition you need to meet to cont... (by hamsterman)
by PizzaE
Undeclared identifier error yet I declared?
 
Is this theory not wrong? int main() { //Creates x int x; { //Creates y int y; //Destroys y } //destroys x return 0; } Well I am havin...
[2 replies] Last: Ok thanks, I thought since I declared them, I would have expected game... (by PizzaE)
assigning const var to ref var's
 
const int i=10; int &j=i; Is this assignment correct.?
[1 reply] : You could just compile and see.. It is not correct as constness is lo... (by hamsterman)
How to do a proper if statement to display the correct information
 
I am a beginner... and me and my friend are making little "manuals" based on a fantasy novel we are writing. He is doing it in java while I am doing it in C++. ...
[no replies]
Help with 2D arrays
 
So I'm trying to write a program that displays available seats on an airplane (7 rows with 4 seats each). The user is supposed to specify a row and column of a ...
[1 reply] : Never mind. I figured it out. (by bool maybe)
Initialializing a std::deque
 
Trying to initialize five deques from the STL library like this: for (int i = 0; i < 5; i++) { deque<int> line(i); } Later, when ...
[4 replies] Last: Thanks. I appreciate your help. (by joatmon)
More Constructor Frustration
 
should be simple, doesn't work: int main() const double ARRIVAL_PROB = 0.05; Bool_source arrival(ARRIVAL_PROB); Bool_source::Bool_source(double...
[2 replies] Last: Nope. Thanks. I knew there was something obvious. (by joatmon)
menu selection, money problem
 
What is wrong with my code, sometimes my moeny goes into a negative and sometimes not? #include <iostream> #include <string> using namespace std; int m...
[2 replies] Last: cin >> choiceAmount; if(money < 500 * choiceA... (by closed account DSLq5Di1)
Problem with shooting animation
 
I'm having multiple problems atm. 1. player shooting animation not playing 2. arms dont appear when looking left Here is where i set the clips // fa...
[no replies]
Practice problem. Give me your input :D
 
Ok so I got directed towards some practice problems about a week ago and I finally got some time to get to em. The code is for this problem: Pancake Glutton ...
[no replies]
by xen
Dynamic Arrays?
 
I have created a program allows you to input the amount of items purchased, and then input the price of each item and the sales tax. It then creates a receipt w...
[15 replies] Last: Other than its type, your names variable should be handled in same way... (by closed account DSLq5Di1)
what is the difference in printf and cout?
 
what is the difference in printf(" "); and cout << " "; and why would you use one over the other
[7 replies] Last: I thought printf was an amazing function and it has a lot to do with ... (by brokenbot)
by diod
Dumb Question
 
I'm an extreme newbie, but im trying to make this app thats like a multiplication table. user has to input a letter then a number to get output which might be t...
[7 replies] Last: The ascii code for the character 'a' = 97, 'b' = 98, 'c' = 99, ... So... (by andywestken)
visual 2005 issues (win 7, windows.h file missing)
 
Long story short I have to use visual studio 2005 to launch several projects but the issue is that system dependent files like "windows.h" but I can get heade...
[5 replies] Last: thanks so much, you guys are life savers (by Blessman11)
Address finding/Modifying
 
Okay, I think (not entirely sure) that the way people are able to change in-program features (such as hacking a game or website), they need to find an address o...
[2 replies] Last: Thanks for the cheatengine program ^_^ Now, I just need to know how t... (by Shay9999)
systems for saving documents/files
 
How can systems for saving documents be created? (with respect to things like game saves, document saves... etc.) I mean this with regards to custom file sav...
[no replies]
by efigen
help finishing program
 
Under class SavingsAccount i have a variable called balance, under the main function i created a switch statement, and every time i choose to deposit into savin...
[2 replies] Last: This code overwrites the previous balance: cout<<"Enter amount of ... (by shacktar)
Player goes off screen
 
nvm i got it
[no replies]
August 2011 Pages: 1... 2930313233... 39
  Archived months: [jul2011] [sep2011]

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