Beginners - October 2011 (Page 25)

Overloading a function
 
I'm stuck on a C++ assignment and would like a nudge in the right direction. The assignment: http://www.c-jump.com/CIS62/hw1.htm I'm stuck on number 3: Overl...
[2 replies] Last: Right under my nose... Thanks. One more problem. I'm not sure where t... (by ZGalhardo)
by Nexrus
Problem with else statement
 
I did read the guide on the website and used google in the hopes of finding a solution - no luck. I'm trying to use an else statement (as the my assignment ...
[4 replies] Last: That fixed my problem! Thanks. (by Nexrus)
by Gui
Triangle Pattern Side by Side
 
Good evening, I've been asked to write a program for my intro to C++ class using loops that displays a triangle pattern side by side. I was able to write a cod...
[no replies]
by sesch
Treating strings as hexadecimal numbers
 
Let's say we have a text file with x amount of strings in it(in seperated lines), we want to load them and treat as hexadecimal numbers .... the question is - ...
[1 reply] : first of all, all characters are actually numbers. The definition of c... (by WilliamW1979)
by sq1020
output is truncated and only works after building 3-4 times
 
I'm getting a really weird error when I run my client program. Invoking: GCC C++ Linker g++ -o"assignment2" ./src/MyString.o ./src/stringtest.o g++: ...
[no replies]
how to get the answer...anyone can help
 
Write a program that asks for a user first name and last name separately. The program must then store the users full name inside a single string and out put it...
[11 replies] Last: I guess maybe I'm too cynical. I just assume the worst =P (by Disch)
Code For Monoalphabetic Substitution Cipher And Double Transposition Cipher
 
http://www.blogger.com/blogger.g?blogID=4560958125613236961#allposts
[3 replies] Last: Write your post including your code. Select just the code. Click the... (by cnoeval)
Templated Struct and Class
 
I have a struct the represents a node in a linked list that I want to template: template <class T> struct ListNode { T comp; ListNode<T> *link; } ...
[1 reply] : Yes, ListNode will receive the same type that is passed to the templat... (by ModShop)
hmi passing messages
 
For starters im not a programmer. I have worked with c+ a little and am pretty good with PLC's but i dont have any formal training and i really dont know what i...
[7 replies] Last: awesome, sounds exactly like what i was thinking but dont have the voc... (by Edward Donahue)
Bubble Sorting Code
 
Hey Guys......Go to My Blog To Get Bubble Sorting Code in c++...The Code is Very Simple And i Wrote it Just For understanding How Bubble Sorting Works ...For An...
[13 replies] Last: [quote=ne555]Funny thing. "quicksort" has a worst case O(n^2), that ha... (by Mathhead200)
Classes/Objects. How do I make them attack? Please Help!!
 
Hi guys. So, I have this problem. Problem: I want to create two different classes. One class would represent the "Hero" object. The other class would repr...
[12 replies] Last: ¡They are not pointless! Look closely ¿ By the way, if you have a v... (by ne555)
Input the month, day, year?
 
I feel like this in an extremely stupid question, but since this website has proven the most expedient method of getting back on track, I guess I'll shoot: P...
[3 replies] Last: Thanks, I was not aware of the functionality of input worked that way ... (by jjmounes)
Code Accounting program
 
Hi guys, This is for a class im taking and this is my hmwrk. Which im practically lost on starting this one. You guys input is superbly appreciated. During t...
[1 reply] : As all I/O programs, split it in three steps: a) Ask & read input (... (by Gaminic)
Function calling and returning values
 
Hello, I'm fairly new to C++, and I'm having trouble getting my functions to work together! What I've written is a program with 2 functions, and a main. S...
[7 replies] Last: And sexy too! (by Gaminic)
Loop end unintentionally
 
.Write a program that merges the numbers in two files and writes all the numbers into a third file. Your program takes input from two different files and wri...
[5 replies] Last: Could sb help ? mergeFile only,the better techniques are needed...I di... (by hentaiw)
Issue with GCD recursive program
 
I've gotten an assignment about making a program that calculates the greatest common divisor (gcd) and its linear coefficients. I got the GCD part down but I ca...
[1 reply] : Line 14 tries to save an integer value (the return type of extended_gc... (by Gaminic)
Template copy contructors
 
Here is something I am attempting which does not seem to work. template <class T,int N> class A{ public: A(const A<T,N>&); ...
[9 replies] Last: OK, thanks that indeed works fine! 2) why M and N seems to swap? ... (by eypros)
problems getting guessing game to work
 
I got an assignment in my programming class, where I supposed to make a small game, which should include: rand(), loops, arrays, functions and pointers. So my...
[10 replies] Last: You don't need the last line. "Answer" is already defined (by my code ... (by Gaminic)
struggling with output to a file
 
void calcScore(ofstream& fout, string name, double score1, double score2, double score3, double score4, double score5) { double lowest, highest; highes...
[2 replies] Last: Thanks so much! That made it work perfectly (by smurf2576)
Scoring data from a text file, loops problem
 
(Sorry I posted this here and on the other forum, but I was not quite sure which one was best to use.) Hi, I'm new to the forums. I just started programming th...
[8 replies] Last: You need to rethink you project. There aren't always 10 grades to read... (by Mathhead200)
October 2011 Pages: 1... 2324252627... 59
  Archived months: [sep2011] [nov2011]

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