Beginners - June 2012 (Page 29)

by dee89
What is the answer to the C++ Program??
 
hi i need a solution on this programming question... An employee is paid at a rate of $16.78 per hour for regular hours worked in a week. Any hours over that...
[4 replies] Last: I really dislike that this is homework but I am a noob at C++ and I n... (by curscascis)
error C2513 ifstream declaration (1,2)
 
error C2513: 'std::basic_ifstream<_Elem,_Traits>' : no variable declared before '=' the first line 'ifstream in;' does not compile it seems like I am declarin...
[31 replies] Last: I used 'ontology' (by forestPeterson)
Beginner Programming Help
 
Hi there, I am new to the forums and new to the world of C++. I understand the basics and what everything does but like most newbies out there I am still trying...
[4 replies] Last: Hey, so I got most of it working and put it together, I added some thi... (by curscascis)
A little help\question
 
Hi everyone! i just had a second lesson in C++ and i need your help! I want to make this little thing that asks for the user name and i want that if my fri...
[4 replies] Last: Using cin will stop your input once a whitespace is found. A whitespac... (by S G H)
by mania
converting c program to c++ program
 
Hi , How can i convert C program to C++ program. Using Void pointers C program have done , so now i have to done in C++ program Please any one hel...
[1 reply] : C is very nearly a subset of C++. Do you actually want to rewrite the ... (by Moschops)
by mossad
C++ Competition!
 
Hello, I am not quite beginner. I program in C++ for long time and you could say I am good at it. I have school competition in few days and I don't know how...
[8 replies] Last: Oh... a competition on "fast" and "memory usage" and not on gut C++ st... (by qPCR4vir)
Creating and editing records
 
I've been working on a little project, but I can't seem to get around one problem. I want my program to replace the first pair of '0' in the record to a new pai...
[2 replies] Last: thank you for pointing that out. (by sinnerz92)
Segmentation fault in my Program. Please help me out.
 
I want to print out the binary search tree like a tree graph. After running my program, I got segmentation fault. Please help me check if or not the code has so...
[1 reply] : In BinarySearchTree::print_tree_graph(vector<Node*> &node, int heig... (by Moschops)
Encoding Decoding program
 
My assignment is to make a program that uses fstream functions to gather integers from one file, isolate the significant digits from each integer, cast them as ...
[1 reply] : Please use code tages: [co de] Your code [/co de] your code is hard... (by coder777)
Strange output
 
Hey all, I'm trying to write a simple short code that takes a few input characters and finds each character's number in the alphabet. My goal is that it retu...
[3 replies] Last: @LowestOne: Thanks! That explains a few things indeed! But if I want i... (by pbruusgaard)
by khal
Question on class
 
Which is the best way to write a class? Public function first or private function or does it even matter? Thank You
[5 replies] Last: The error is not cuz of declaring public first. The compiler reads the... (by Pter0dactyl)
Begginer C++ Problem
 
Hello! I recently started to study C++ but I'm stuck on this basic problem: You have the choice of buying two cars. One is more fuel efficient than the o...
[5 replies] Last: I am beginner too and I enjoyed coding this one :) to give you hints,... (by Dns)
by wmac
sprintf_s corrupt results
 
Hello, I have a problem with sprintf_s and I have not been able to solve. Why below sprintf_s buffer results come out corrupt? The alternative cout (which...
[2 replies] Last: Vlad, thanks for your time. char buf ; int retval=0; retval=sprintf_... (by wmac)
HELP PLEASE :) C++ im a novice at this ... so use simple terms ... :)
 
Im writing a multiple choice test and i have the questions down but i cant get the grading done. i need to use a switch and loop still. how will i incorporate t...
[3 replies] Last: Ya, arrays are useful look at this there may be an error or two #in... (by curscascis)
Need help with string output/<iomanip> questions
 
I have a pretty standard assignment to input students names/test scores into an array of structs. Then I need to output the names, scores, and letter grade. I...
[1 reply] : Hi there, I am new to c++ and I am not 100% sure if this might help bu... (by curscascis)
Basic Prime Function Tester
 
I'm trying to write a C program which prints "Yahoo!" if the variable testingnumber is prime, and "Google." otherwise. I know, I'm crazy. It's for something e...
[13 replies] Last: Your original version's function, as has been pointed out previously, ... (by Zhuge)
super noob with pointers
 
okay so i'm taking an online class and i cant understand my teachers directions for sh*t, probably because i havent worked with c++ in awhile, nonetheless. I go...
[no replies]
by gmby99
Very new at this
 
I am very new at this but want to learn more, currently im working on the following code that calculates mean, maximum, minimum, and range but im having a f...
[11 replies] Last: Ok, so far i've gotten this. Still have some errors but got rid of a ... (by gmby99)
CS106B.Lib exception.h C2872: 'exception' : ambiguous symbol
 
exception.h is from the CS106B class library - each time exception is used in the class it is tagged as C2872: 'exception' : ambiguous symbol the obvious sol...
[4 replies] Last: I am learning - and you are mentoring, I see the C reference now that ... (by forestPeterson)
Assignment operator overloading with class on right
 
I'm trying to overload an operator so I can assign my class to an int like so: MyClass a; int b = a; I know that I need to use the friend keyword to access...
[13 replies] Last: Note that the copy and swap idiom eliminates the need to check for sel... (by moorecm)
June 2012 Pages: 1... 2728293031... 51
  Archived months: [may2012] [jul2012]

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