Beginners - March 2012 (Page 64)

by atjm88
2D Basic Array
 
#include <iostream> #include <conio> int main() { int i, j; int a = {1,2,3,4,5,6,7,8,9,10,11,12}; for(i=0; i<=2; i++) { for(j=0; j<...
[4 replies] Last: Thanks...is that mean, int a in line 7 control the for loop? I mea... (by atjm88)
Beginner's questions
 
Hello... #include <iostream> using namespace std; int main() { int *piNumbers ; for(int x = 0;x < 10;x++) { for(int y = 0;...
[19 replies] Last: Stewbond you were right + two lines of code... #include <iostream> ... (by Gregor Pavlic)
Turbo C help
 
Ok I had this problem Any call started 6:00pm (1800hours) upto 8:00am (0800hours) will be discounted for 50% And any call started from 8:00am (0800hours) up...
[2 replies] Last: thank you very much, worked now =) (by clampzy)
Need hints URGENT!!
 
I have been given a 5 assignments and if u guys can just give me the hints for it i would be grateful to u guys and i am a total noob on c++ i study in 11th gra...
[6 replies] Last: thanks a bunch!!! people sorry if i did anything wrong as i dont know ... (by essexboy)
Ifstream help
 
Hello all! When reading files, how is it possible to skip the next character in the file? Thanks in advance.
[10 replies] Last: It still wont automatically format it, but I have managed to use a pre... (by Exispistis)
by Jynks
ASCII in the console...
 
So I wanted to jazz up some of my consol apps with sime ascii.. I found a few good apps that will convert an image into a ASCII file.. like this for example htt...
[3 replies] Last: #include<iostream> // this program converts any symbol to ASCII c... (by MinwooJu)
Need a little help
 
For a past assignment I was asked to allow the user to input the name of a file. Here was part of the code: void MakeArray(string filename); int main() ...
[6 replies] Last: Okay, so you are finding that the file was not found. This worked oka... (by Stewbond)
random number in sequence
 
Hi, I am making a program that requires you to get 3 random numbers in rapid sequence. I created a function and i call that function 3 times. it is setup wit...
[3 replies] Last: First: srand() should not be called more than once! Take it out of ... (by Stewbond)
Help with recursive function!!
 
Write a recursive function that does the following. Given a number, add all the digits and display the sum. Example The sum of the number 5432 would be 14. ...
[1 reply] : Don't put a cout in a recursive function. You can't control how many ... (by Stewbond)
by PL285
How to declare A Namespace In a Class?
 
Hello, here is my class. How can I declare these namespaces? I have tried several things and none of them work. Thanks for any help! #include <iostream> ...
[1 reply] : are you're trying to declare a namespace or using an existing one? bec... (by chipp)
by mania
student book issue
 
Hi I have created student data (i.e)rollno and names using dat file and i have created book data (i.e)booknumber and booknames using dat file. Now i want to...
[4 replies] Last: Hi I have created bookissue and book dat file, when i enter boo... (by mania)
by Oswld
String Subscript out of range.
 
So I am trying to run this program, its not everything but I think the problem is in one of these functions void get_names(vector<string>& names, string nam...
[2 replies] Last: void get_names(vector<string>& names, string name) { ifstream inputf... (by cire)
please help with my calculator! It's not working properly
 
Can you please help with my calculator? My % isn’t working. I need to get the remainder of 2 integer divisions, but it doesn’t work. Also, both expon...
[2 replies] Last: Thank you for the help! (by agent99s)
Functions
 
I have an assignment due at 11:59PM. Here are the directions: Goals: Using functions Problem: On the site you will find a template that contains a program...
[12 replies] Last: no - when you're professor said an "identifier" - in this context, mea... (by georgewashere)
Number Guessing Game Help
 
Below is my code for a number guessing game. The problem seems to be that if you guess the number on the first try it doesn't display "Phenomenal! You got it o...
[6 replies] Last: Congrats (; (by georgewashere)
I/O using string failed so many times
 
hi guys i have been using c++forum for quick review some times but never had an intend to register until today .. so guys i really need help on inputting file t...
[3 replies] Last: You should try to read it as a number first, and if it fails then try ... (by LB)
by PL285
HELP WITH SIMPLE FUNCTION!? Please
 
Hello can someone please tell me what I'm doing wrong? I am trying to compute the total amount of food but for some reason it's coming out as 1517695209 which i...
[6 replies] Last: duplicate http://www.cplusplus.com/forum/beginner/63392/ (by vin)
by Oswld
Checking for valid input in inputfile
 
Hey, I'm writing a program that involves file writing. I have a question regarding that. I am reading the info from the file into 3 strings and my question is, ...
[2 replies] Last: Oh wow... I feel dumb... Thank youu (by Oswld)
No compilation errors but program not working
 
removed
[5 replies] Last: I'm sort of confused reading this thread... I guess I'll drop some inf... (by georgewashere)
Question for sqrt
 
Hi guys, I was doing some practice for testing the prime number and I used the 'sqrt' command but my compiler showed an error. I'm not sure why. I was wonder...
[4 replies] Last: the % operator will not work because it the modulus operator applies t... (by georgewashere)
March 2012 Pages: 1... 6263646566... 71
  Archived months: [feb2012] [apr2012]

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