Beginners - October 2009 (Page 21)

I don't know what I'm doing.
 
Hi everyone, I’m new to this programming world so I’m sorry if I’m asking a stupid question. I have a problem trying to get a variable output from a ra...
[11 replies] Last: very easy to create a RNG function or 2, setter and getter I include b... (by gcampton)
by ztein
Pointer/Structure skips input
 
The program skips the "Enter the pizza's weight: " part, if the string for "Enter the pizza company name: " has a whitespace. The program's output: Enter t...
[5 replies] Last: Problem solved: #include <iostream> #include <string> using name... (by ztein)
Stuck on Practice work...
 
Im trying to get my finished work to look like this: http://img.photobucket.com/albums/v323/Monkeyman1010/help.gif These are the directions... 1. Coding the...
[7 replies] Last: yep, I finished and got it correct. Thanks guys!! (by BrassMonkey1010)
Check for empty file.
 
I need to check if my text file is empty. If so, I exit the program. But, I need to do this without reading anything into a buffer as to not lose any text if it...
[2 replies] Last: Thanks a bunch. (by IamScaredOfTrees)
pointers and references
 
Hello, I have this function void smallAverage(int *array, float *average, int *numSmallerThanAverage ); which returns in the parameters, average and nu...
[7 replies] Last: ok I have this idea for the size , becaue in my function the variable ... (by nanoooosha)
cant understand what or where to use...
 
hi .. to all.. my name is Muhammad Waqas ...and i am new to programming ... i am bit confused in programing....i know that C and C++ is console programming la...
[13 replies] Last: True, but as this guy said on a google result from searching that quot... (by chrisname)
by hannes
pointers to functions
 
why doesn't this code work? #include <iostream> using namespace std; char *function() { return "lol"; } char *function2() { char *(*me)(); h...
[4 replies] Last: problem is already solved. thanks anyway! (by hannes)
Software Engineering major?
 
I wasn't sure if this was the right forum to ask on. But I'm currently majoring in Software Engineering. But all the job requirements I see requires a major i...
[4 replies] Last: I would pick a major that gives you the most options after graduation.... (by kempofighter)
by Jasina
Sorting a field in ascending and descending order
 
Hi! I need to Sort a records of employees by their last name in ascending and descending order. And these records are from employee database.
[2 replies] Last: Okay, so you'll need to look at the following links. First, you'll wa... (by kempofighter)
Stop a certain part of loop from repeating
 
What the Output SHOULD be: The bold part should only be in the first account number, but my output is repeating it for all the other account numbers as well. ...
[3 replies] Last: Thank you kindly. (by ashley19)
Fraction simplifier prog.
 
hi all, i made a fraction simplifier prog. but the code doesnt look gud to me. i will greatly appreciate any diff method for fracion solving using simple ...
[3 replies] Last: thanx all 4 help (by Asad Abbas)
by robezy
ISO C++ forbids declaration of ‘vector’ with no type
 
Hi, Could anyone tell me what is the error here. Thanks medal.cpp:8: error: ISO C++ forbids declaration of ‘vector’ with no type medal.cpp:8: erro...
[1 reply] : My mistake.. Forgot to include vector.h :) (by robezy)
Reset Pointer Value (Binary to Decimal Converter)
 
Ok, so I'm really really honestly new to c++, and I know very little about it. The thing I want to do for my project is a number system converter. Binary, De...
[2 replies] Last: Your code worked properly. You should change compiler and IDE for exam... (by screw)
Problem with if statement :S
 
I'm pretty confused because I've written a plug in for a program before and when i wanted to remake pretty much the same plug in it won't work. This is the c...
[11 replies] Last: Diablo 2 =), or redvex a proxy for diablo 2. (by ogelami)
by hannes
structure or class?
 
can someone tell me the difference between a structure and a class?
[10 replies] Last: In C you can't put functions into the struct but in C++ you can! ht... (by screw)
by x5aint
Celsius to Fahrenheit wrong increment
 
i am new to programming, so bare with me. I know that only C to F works but once i figure that out everything else will be easy. The problem i have is that when...
[5 replies] Last: thanks for your tips now i really understand how functions work. (by x5aint)
ASCII conversion?
 
I have several issues regarding a certain program I made for VRC\LRC calculation and I was hoping one of you can help me. (I need the program to be in C so plea...
[2 replies] Last: good, this is pretty close to what I am looking for :) is there a way ... (by gammarays)
Stuck on while loop
 
Output should be: Enter the miles used (-1 to quit): 287 Enter gallons: 13 MPG this tankful: 22.076923 Total MPG: 22.076923 Enter the miles used (-1 to...
[6 replies] Last: Curious, why cant gallons used or the counter be floats? Why must you ... (by ashley19)
GRAPHS
 
HELLO I'M NEW IN THIS SUBJECT BUT I HAVE A ADJACENCY MATRIX AND I NEED TO CREATE A GRAPH HOW DO I DO IT??
[2 replies] Last: lol (by Mythios)
Pancake glutton
 
I;m been trying the Beginner Exercise : http://www.cplusplus.com/forum/articles/12974/ Heres the code // pancake Glutton #include <iostream> using n...
[2 replies] Last: First of all, the first element of p is p and not p , and the last e... (by borekiller)
October 2009 Pages: 1... 1920212223... 25
  Archived months: [sep2009] [nov2009]

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