Beginners (Page 9)

by Arui
Problem with sorting struct
 
So my program is working until it get to sorting part and then it crash. #include <iostream>...
[7 replies] Last: Something like this will probably do: // sort by x, then by y bool so... (by dhayden)
Deduce output.
 
Can anyone explain to me how to get this output? :D #include <iostream> #include <iomanip> #incl...
[2 replies] Last: @integralfx Thank for the reply once again. okay I got it. Thanks a lo... (by DesmondLee)
accessing private variables
 
If I have 2 classes, person and hair for example, is it possible for person to access the protected ...
[3 replies] Last: Why Hair should only be a different class and not also an attribute of... (by gunnerfunner)
Input and output of files with calculation
 
Im trying to read a file, calculate some value in the file, and output in a new file. I couldn't get...
[3 replies] Last: But would also like to know why my getline would not work. This lin... (by Chervil)
Unhandled exception at 0x010B3FF0 ???
 
Whenever I run my code I get this error "Unhandled exception at 0x010B3FF0 in Assignment 2 of 2 ASCI...
[19 replies] Last: although I still haven't gotten my ball to work What does that mean?... (by coder777)
Palindrome with phrases
 
For some reason my program only works if enter phrases. when i put in a single word, it terminates ...
[3 replies] Last: (Deliberately) ignores upper/lower case and any blanks, punctuation et... (by lastchance)
by stat1c
Print concepts that have spaces in them
 
I have an assignment to read from a file and to print only the names that have spaces in them. This ...
[4 replies] Last: Thank you both so much! These worked perfectly I really appreciate the... (by stat1c)
Deduce output
 
#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { int num...
[2 replies] Last: @AbstractionAnon Thanks for the reply. Thanks a lot :D (by DesmondLee)
I am very new to C++
 
I believe this is totally different from C#, I was enjoying taking C# C++ is another animal entirely...
[2 replies] Last: > why text isn't a simple variable datatype. Text (a sequence of char... (by JLBorges)
by tatai
Joining data from two files
 
I am trying to join two files based on the DSL score. I am using the following code, but it si not w...
[2 replies] Last: the output is dumping some error data, sometime it is following only o... (by tatai)
3-dimensional arrays
 
can you help me with 3-dimensional arrays int i any help would be hot major ways ...
[3 replies] Last: for integer arrays of multiple dimensional arrays (by originator01)
by stat1c
Numbering concepts into a list
 
I've gotten my text file to read alphabetically in the output window and am now trying to list them ...
[2 replies] Last: I just changed it and it worked perfectly! Thank you so much for your... (by stat1c)
by stat1c
Grades calculator trouble
 
I have an assignment where I need to write a grades calculator for two tests, the tests average fo...
[4 replies] Last: I tried to work on it some more and it does build but now will not sta... (by stat1c)
by crb8v2
Allowing user to choose number of variables.
 
Trying to keep the brain active between semesters and am writing a program that rates girls. I am ha...
[10 replies] Last: Appreciate it guys. (by crb8v2)
Get pointers instead of numbers
 
I am writing a code for this http://www.programmr.com/challenges/matrix-multiplication-0 programmr c...
[6 replies] Last: There is no compiler error It doesn't give an error, since the code ... (by Chervil)
by alx119
Passing an array to a constructor
 
Hi, I have my code here: // #include "stdafx.h" #include <iostream> #include <string> using n...
[10 replies] Last: I don't know why I thought that on that site I had to use inheritance,... (by alx119)
Accessing my class from a queue
 
Hi guys the question I am attempting is The elements stored in a Queue object can be of any type, ...
[8 replies] Last: Cheers, (by imohamme5)
Structure required on left side of . or *
 
Structure required on left side of . or * #include<iostream.h> #include<conio.h> #include<...
[3 replies] Last: Please use indentation and think about the logic of the main while loo... (by lastchance)
help with dice program
 
need help with the total function. I get funny result when i have to put all the dice throw together...
[2 replies] Last: found the error. had to set the total to 0 int total = 0; (by kinglado)
return vector vs return iterator
 
hello, which one do you think is better? because im looping through each vector of an object from a...
[2 replies] Last: @Cubbi i didnt think of the reference XD thanks ! (by xenovia12)
Pages: 1... 7891011... 43
  Archived months: [nov2016]

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