Beginners - April 2015 (Page 2)

by enemy
Inline vs normal function declaration...???
Hello! Plese, inline function here is obviously out of scope, and non-inline (normal) functions well here. My question is if somone knows one trick that inl...
Apr 30, 2015 at 12:43pm
[3 replies] Last: THANKS!!! Did not see typo! (by enemy)
Complex Comma Operators
I need help understanding this. I get the simple example given in the tutorial, but im confused on the bit more complex examples, like the following: int a,b...
Apr 30, 2015 at 10:56am
[3 replies] Last: Correct. The earlier expressions are evaluated, but their values is di... (by dhayden)
Error C2679
I've searched google and tried a few things myself.. and I've found nothing and I know its a simple fix. Can someone please point out what I'm over looking? >< ...
Apr 30, 2015 at 9:20am
[4 replies] Last: iterators do provide operations similar to pointers, so the star oper... (by closed account SECMoG1T)
by Bocian
Console keeps crashing after input variable into pointer
Hey guys, for some reason my console crashes after i give user input for writing into a binary file. Header: #ifndef RECORDFILE_H #define RECORDFILE_H...
Apr 30, 2015 at 7:52am
[1 reply] : One problem is in load(...) and store(...) . You cannot read/write ... (by coder777)
Dynamic Array how do I change the size
I created this function to change the size of the dynamic array but i dont think it working properly void dynArray::doubleSize( ) { size = 4; ...
Apr 30, 2015 at 6:46am
[2 replies] Last: What exactly is line 4 accomplishing? sizeof applied to a pointer is ... (by cire)
Recursion: Towers of Hanoi
Hello everyone. So I'm required for my assignment to create a recursion function that can solve the towers of Hanoi puzzle along with creating command line argu...
Apr 30, 2015 at 6:29am
[3 replies] Last: Hello. I'm typing this out again after my page glitched out -_-. Anywa... (by TheCoolest2)
Trying to find biggest number in partially filled, parallel arrays
So I have a partially filled array and I'm trying to find the biggest number. All of the tools my teacher gave us only works with completely filled arrays, so I...
Apr 30, 2015 at 5:42am
[13 replies] Last: Added that and now my program just stops after I enter the filename (... (by catpokemon)
Program implementation(shipping charges) (1,2)
Hi all, It is my last assignment this semester and I am currently stuck. I had a previous one but this week's assignment needs the program to read in somethin...
Apr 30, 2015 at 5:10am
[22 replies] Last: I hope this helps you if you come up against similar problems: #incl... (by fg109)
by AT8795
Test Scores in an Array
Hello everyone. This is the project I am currently working on. "Given a file containing student names and test scores, you will write a program that will re...
Apr 30, 2015 at 4:24am
[5 replies] Last: For line 22, should I just take out line 21 all together? Would that m... (by AT8795)
Homework question help
I'm supposed to create a .h and a .cpp file called Package which should: 1. Package should include data members representing the name, address, city, state, ...
Apr 30, 2015 at 3:12am
[no replies]
by DOAFtW
Pausing briefly inbetween lines
i have tried doing something with my code where i have some text displayed to the user. Then there is a brief pause, say 2 seconds, then the next line should ap...
Apr 30, 2015 at 2:58am
[3 replies] Last: Thanks for that =) Cheers (by DOAFtW)
Please Help: Can't compile in terminal
Please help me, I've been banging my head against the wall trying to get this to work. I have the following files: main.cpp Sally.cpp Sally.h I made th...
Apr 30, 2015 at 2:43am
[2 replies] Last: Thank you so much ne555 (by CoobyBooby)
How to access a derived class' function from a base
I am trying to figure out how to pass a group of classes with the same base class to a vector. I figured out how to pass them through their BASE class, but I c...
Apr 30, 2015 at 2:29am
[2 replies] Last: Thank you so much for the help. It works as intended. And yes, I wil... (by HellfireXP)
by albee
Need help with my program that computes average with a letter grade.
I only have two questions about what I have so far. My first question is whenever I run my program it works well but the Letter grade given at the end is always...
Apr 30, 2015 at 2:29am
[9 replies] Last: Holy C**p thanks so much. You have no idea how much you just helped me... (by albee)
What am I doing wrong in my code?
Every time I run it, column sum and row sum are always equal to each other. Please help! #include <iostream> using namespace std; int magicSquare ; in...
Apr 30, 2015 at 2:04am
[3 replies] Last: Maybe this is what you wanted to do? #include <iostream> #include <... (by konstance)
by conRob
Help on homework problem
Hello everyone, my homework requires us to make a program for an exam grader. The program reads in two different text files and puts them into two separate arra...
Apr 30, 2015 at 12:56am
[5 replies] Last: OH BABY NEVERMIND I FIXED IT! Oh it feels so good! (by conRob)
by jstowe
Files
I'm writing a program that inputs information about a book (isbn, name, author, publisher, price, and page) and is put into a class that I have already written ...
Apr 30, 2015 at 12:33am
[no replies]
Is my code correct for what I want to do?
Does this look correct? I wanted it to keep looping until the sum of the columns are equal to that of the rows. It keeps printing random numbers in a 3x3 array ...
Apr 30, 2015 at 12:25am
[4 replies] Last: Thats the exact problem I'm having. How would I calculate them in the ... (by birdyrc)
Need help converting this to h files
Hey guys, I don't understand how to convert this rock paper scissors game to multiple files such as header file, cpp file, and main cpp file. I read all the ...
Apr 30, 2015 at 12:08am
[2 replies] Last: Like what AbstractionAnon suggested.. You should break it down into Fu... (by Sanction)
ostringstream
PLZ HELP !! I got an error saying "expected a ;" when I use ostringstream I really can't figure it out :( #include<iostream> #include<sstream> #incl...
Apr 29, 2015 at 11:24pm
[1 reply] : Try to delete the ';' at 'ostringstream ss;' and re-write it.when i di... (by konstance)
April 2015 Pages: 1234... 52
  Archived months: [mar2015] [may2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.