Beginners (Page 5)

C verify input
 
Hello, Need to make it so that if a RATIONAL number is entered it returns 1 and if a letter/nothin...
[1 reply] : Thought % f was for float type. Aceix. (by Aceix)
by amna03
new in programming
 
can anyone help me this question? 2- Write a program that populates an integer array of size 50 wit...
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/vhope it helps. Aceix. (by Aceix)
by vxk
different result for allocated uninitialized int*
 
The following 2 different codes are giving different results even though the result has nothing to d...
[6 replies] Last: Yes, except for: std::vector<int> v2(); // empty vector declares f... (by JLBorges)
read nuknow row file in to array
 
what is the syntax of reading one column unknown rows numbers and make into array???
[1 reply] : you cannot (directly) dynamically allocate an array at run time. The s... (by Esslercuffi)
Stuck in loop when value over int is entered
 
When any value over int is entered (including letters and decimal numbers) the program gets stuck in...
[3 replies] Last: Fixed it with this code thanks to someones post on yahoo answers, I al... (by Finnian)
Basic inventory problems
 
I am having some unexpected trouble with a game I'm working on. Basically I have a function with a...
[7 replies] Last: Nevermind i solved it. I changed: if(flag == 0) { } else { } ... (by Funkist)
Reading in basic C File I/O help
 
Hello everyone. Im fairly new to programming and could really use some help. 48604394 100.00 63.9...
[1 reply] : I would read the first element in, and throw the rest into a variable ... (by mobotus)
by ANouf
please help
 
i have a qestion and i have just one day to answer it ,so i really need your help.. here is it ...
[11 replies] Last: change: cout<<"welcome the tairn ticket cost calculator,\nHow old are... (by Funkist)
Help with switch statements inside while a loop
 
Trying to write a program that can calculate the volume, surface area, or "girth" of a box. I want t...
[4 replies] Last: Thank you so much for the help. :) (by JackHawk)
Text file not read properly
 
I am reading string from a line in a text file and for some reason the the code will not read the wh...
[6 replies] Last: Then empty the buffer into the vector right after the loop has ended. ... (by Aceix)
basic input, ouput and stream operations
 
I have to ahcieve the following : 1) my program gets called with input looking like this : 15497...
[no replies]
just a question?
 
hey guys ive been doing this for an hour now this is a decimal to binary converter that ive been wor...
[1 reply] : You could start with a really big power of 2. Something like 2^15. T... (by kevinkjt2000)
by Phaxen
Generating random integers, calculate the square root, calculate the average
 
Write a program that will do the following steps: - generate 2 random integer numbers between 0 and...
[10 replies] Last: Very close. Line 13: random1 and random2 is actually a boolean expr... (by dhayden)
by HelenI
For
 
Can I put an IF statement in an For statement ? How do I do it?
[2 replies] Last: thanks (by HelenI)
how to call my function
 
i am writing my code with ask for weight and height once enter the W and H I have to call my void ca...
[5 replies] Last: Oh! Good catch! Sorry about that. (by dhayden)
Can someone please explain this simple code?
 
Write your question here. int m=12345; while(m>0) { d=m%10; cout<<"d="<<d; m/=10; cout<<"...
[3 replies] Last: Sorry it was my mistake. M is never 5. :( (by Al Biruni)
first time c++ prime and perfect
 
Write your question here. i cant seem to understand how to place number to plug in on their own and...
[2 replies] Last: so i made it more complicated then it really is? the thing is i know a... (by poseidn)
Arrays
 
In the beginning of the program a set of 50 numbers is randomly generated to populate an array. The ...
[1 reply] : Hi there you can do this easily by assigning different roles to differ... (by andy1992)
illegal else without matching if , would love if my mistake is explained
 
would love if my mistake is explained #include <iostream.h> void main ( ) { int x; cin>>...
[3 replies] Last: thank you very much ispil , i just started learning this language and ... (by yazeedasad)
Pages: 1... 34567... 76
  Archived months: [sep2014]

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