Beginners - January 2017 (Page 18)

My Wildcard Anagram Finder Has a Few Bugs
 
There is an error with my code, but I am not sure how to fix it. I am suppose to create a program that will check if the inputs given are anagrams, meaning that...
[3 replies] Last: #include <iostream> #include <string> #include <cstring> #include <al... (by lastchance)
by stat1c
Print concepts that have no spaces in them
 
I have an assignment to read from a file and to print only the names that have no spaces in them. This is my text file: Arkansas California Colorado Connect...
[4 replies] Last: The difference between "with" and "without" could be just a single cha... (by Chervil)
by Arui
Problem with sorting struct
 
So my program is working until it get to sorting part and then it crash. #include <iostream> #include <algorithm> #include <string> #include <c...
[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> #include <cmath> using namespace std; int main() { int p,q,r; f...
[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 pointer variable color_ ? and what would that code syntax lo...
[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 it to show the first line(Miller Andrew). Need some guidanc...
[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 ASCII.exe: 0xC0000005: Access violation writing location 0x00000...
[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 #include <iostream> #include<string> using namesp...
[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 is my text file: Arkansas California Colorado Connecticu...
[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=8; while(num>=0) { if(num % 5 ==0) { num++; continue;...
[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, but I want to learn it so can someone help me answer / und...
[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 working int DSL_1 , sl , NCT , state , RU ; int DSL...
[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 to use them
[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 into a numbered list. Like so: 1.Alabama 2.Alaska I have lo...
[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 for each student, as well as the letter grade. What should I a...
[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 having trouble finding a way for the user to choose how many g...
[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 challange and can't find the error in my code. I soppose the ...
[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 namespace std; class Author { private: string aut_name; s...
[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, including other objects. Write an application to simulate a ...
[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<stdlib.h> class box { float length,breadth,height; pub...
[3 replies] Last: Please use indentation and think about the logic of the main while loo... (by lastchance)
January 2017 Pages: 1... 1617181920... 24
  Archived months: [dec2016] [feb2017]

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