Beginners - September 2012 (Page 19)

New to C++ and confused (1,2)
 
Hello forum. Im new to this site and I am new to C++ programming. I just started a class at school and wow im confused. Its propably a lot easier then i think b...
[20 replies] Last: Please post your latest program that you are working with. The one pos... (by leftcoast)
by Tk731
File and char help
 
I need some help with an assignment. The question wants me to check a True/False test. The correct answers are at the top of a text file, followed by a student ...
[2 replies] Last: The problem with that is all the information is on the SAME file. Also... (by Tk731)
how to get 5 cases to compile correctly
 
so i have this problem that im stucked on. i have about 5 cases to do but i don't know how to put everything together. i did the first part but i cant add every...
[11 replies] Last: #include <iostream> using namespace std; int main() { double ctem... (by noobneedhelp)
Error : Subscript requires array or pointer type
 
So i'm assuming a variable isnt labled? I don't know if it's the right command. I need that command to translate everything to the right. Help? // Mon...
[9 replies] Last: The value will be unknown because total is not enter. So does that mea... (by closed account y6DLy60M)
by wynnf4
only output is incorrect???
 
whenever i run this the only output i can get is incorrect even if it is correct #include <iostream> using namespace std; int main(int argc, char *argv...
[1 reply] : Why are you using both operator>> and std::getline to read q1a from ci... (by Peter87)
Help with calculations
 
Hello, I am working on a program that gets users input for gross amount, I am suppose to have it take deductions such state tax 3.5, federal 5.7% and so for...
[2 replies] Last: I have started the code, I am stuck at the part where I have to the ca... (by Eddy562)
Simple randomizer
 
I am trying to take a number and give it a 50/50 chance of adding .5 or subtracting .5 without going negative or over 22. This is what I got but I am completely...
[1 reply] : You don't need the for loop and for the random, make it so it random... (by Callum5042)
Expected expression error?
 
Can anyone tell me whats going wrong with this program? Trying to implement the trapezoidal rule: template <class ContainerA, class ContainerB> (!EXPECTED ...
[9 replies] Last: I can think of a few reasons as to why you're receiving your error mes... (by closed account zb0S216C)
C++ Rounding
 
Hey Guys, I need some help with rounding in c++. So I have a game script (the two player chip game) and it runs like a beauty, but for some reason my roundin...
[4 replies] Last: Thanks guys! It works! Case solved :) (by chunkymonkey11)
Mersenne Twister - Yet Another C++ Implementation
 
Hello folks! A while ago, I came on this forum with a problem with C code. I was trying to write a simple implementation for Mersenne Twister. The code that I ...
[2 replies] Last: Still... No replies. :( (by Zia Ur Rehman)
Inputting data from a file to an array
 
I am trying to write code from a file to an array, but it fails to open each time. I used a simpler skeleton of code to write this one and the simpler version c...
[no replies]
How do I round up to the next 100?
 
For example a user enters a number double number cout << " Please enter a number "; cin >> number // user enters number 1430 cout << "Your New Number is " <<...
[1 reply] : Check the <cmath> header file--to be specific, the ceil function: ... (by Aceix)
by xzbit
making a chat application
 
hi, im trying to make a chat application in winform right now it can send messages but the problem is when receiving a msg from a another client or server...
[1 reply] : I am new too. I might be able to help if I know how you made it go fr... (by Forseth11)
How to check a url
 
how could i get the program to check if a url is open or not? i already got it to load one with shellexecute but how could i get it so it checks if a site is...
[no replies]
Passing by reference and value. Please explain prototypes and headers.
 
Hello, I'm studying functions right now and need clarification. I did a 'search' but the examples and explanations I read were still a bit cryptic to me. Ho...
[4 replies] Last: Why do you need void , can't you just do it the way I did it?... (by Forseth11)
••MY PROGRAM (The one I used GetAsyncKeyState for)••
 
This is the program I used GetAsyncKeyState for (It is a DEMO, it is not finished.): DOWNLOAD [INSTANT LINK]->http://michaelforseth.webs.com/documents/RS%...
[1 reply] : I have found a small glitch with the decoder and encoder, when ever I ... (by Forseth11)
how come the following code doesn't print out that i want.
 
#include <iostream> using namespace std; int function(int x, int y); int main() { int x, y; function(x,y); return 0; } int funct...
[3 replies] Last: Well, your original code didn't do anything with the value returned fr... (by Chervil)
Why matters what return type of the fucntion is?
 
A question from a teacher: Why matters what return type of the fucntion is? And when it matters? I think that it matters always when return value is used so...
[no replies]
by NeXy96
Array & Function questions
 
Hi! I'm not sure is this the right category for this kind of questions, but I guess I'll give it a try.. :D Let's say I have declared an array (let it be a l...
[2 replies] Last: okay, thanks! :) (by NeXy96)
A few questions from a beginner
 
I need to write a program for class that estimates a budget. I am supposed to only return 2 decimal points in my answer (after the initial whole amount like 359...
[2 replies] Last: I just started this a little bit ago. #include <iostream> #include <... (by krisbkreeme)
September 2012 Pages: 1... 1718192021... 62
  Archived months: [aug2012] [oct2012]

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