Beginners - December 2017 (Page 14)

by C O C
Sorting
 
Hello, I am having troubles using sort inside a void function. I am required to use void sortByAuthor(Book books , int count) and somehow apply it to showBooksB...
[2 replies] Last: I have not used std::sort before. I am looking at the Sorting User Mad... (by C O C)
by rmeade
Can't get my user input to print.
 
For some reason it runs just fine until I get to the print function where it prints the everything but the input from the cin I did. It needs to look like this....
[2 replies] Last: Thank you my man I can't believe I made such a simple error and couldn... (by rmeade)
Issues with templates
 
I have an assignment which is pretty basic in theory; I just have to receive some information for a person and then output it back out along with some other alr...
[2 replies] Last: That fixed most of the errors, thanks! I was able to fix the rest and... (by mairodia)
Garbage output
 
for some reason, count1 and count2 give me random numbers rather than the correct numbers. What am I doing wrong? #include <iostream> using namespa...
[1 reply] : you have a loop inside a loop and it's not counting correctly. So it's... (by SamuelAdams)
Dividing Numbers Question
 
Why does int hours divide into 2050 but int output divides into 1825? They're essentially the same right? int hours = 90 / 0.0439; cout << hours...
[2 replies] Last: Oh oops... Thanks! (by Djmax444)
Best way to code Round Robin algorithm?
 
I have to make a code for round robin scheduling algorithm but I'm not sure really on how to start. I would appreciate a sample pseudo code that can guide me or...
[no replies]
No errors - No results either
 
EDIT: SOLVED!! Disregard this post guys. I made a simple mistake. I will leave the post and add my solution to the bottom of the post, just in case any other no...
[1 reply] : By putting void in front of the call inside of main, I was telling it... (by cire)
C++ Structure Array Flight terminal program (1,2)
 
Hello All, I am a student new to C++ and I am being asked to write a lab displaying airline flight schedules. The problem is I dont know how to start and...
[20 replies] Last: Hello Collegestudent01, If I understand the instructions correctly I ... (by Handy Andy)
loading a dll
 
hi guys I'm trying to load a dll into my C program I got on the web, but it I seem to be getting an error I checked the file path and it's correct yet it doe...
[6 replies] Last: thanks JL I think I will do that =) (by adam2016)
What does cin.get(ch), cin.ignore(20, ' '), and getline(cin,name) mean in this program?
 
Write your question here. #include <iostream> using namespace std; int main() {char ch; string name; cout<<"Enter your first name and la...
[1 reply] : Hello iamyiyaj, This may not be a perfect explanation, but here goes.... (by Handy Andy)
What is meant by namespaces in a C library?
 
Hi! I searched for an answer about the difference between C and h http://www.cplusplus.com/reference/clibrary/. And it answered my question about the C li...
[1 reply] : Hello stonedviper, This may help. http://www.cplusplus.com/doc/tutor... (by Handy Andy)
lower key being pressed?
 
Hi guys I noticed when I type a on the console it keeps on printing an upper case 'A',this will be printed even if my caps lock is off,I wonder why? as the a...
[2 replies] Last: Ok found a way to check if caps lock is on #include <iostream> #in... (by adam2016)
by BJK
Bool array control
 
Hi guys, I need write a function to check element via bool. I have a random number array function. Return function if there is more than one in a number. Ar...
[9 replies] Last: Yes you are right @nick2361 . I need random and sorted array in output... (by BJK)
C++ homework - wrong result
 
We've got a string of n numbers. Each number should be replaced with its closest integer and the string must be shown from the last to the first. Example: for ...
[6 replies] Last: @nick2361, I see your point now. The "i" I was thinking of was int he... (by Handy Andy)
trouble with a project
 
Write your question here. I want for any user to put in only 9 digits and if its less than nine digits or more than nine digits, i want for my program to redir...
[6 replies] Last: @chervil, if we want to use the applied number in main(), yes we will ... (by nick2361)
Noise Reduction and Edge Definition?
 
Hello, all! I've dealt with these types of imaging terms before, yet I have no clue with how to implement them in a C++ program. In short, my supervisor assi...
[2 replies] Last: Well, here's a possible outline for one of those functions. You can ta... (by lastchance)
VS-15 does not compile C ++ projects, what should I do?
 
documents \ visual studio 2015 \ Projects \ sssssssss \ Debug \ sssssssss.exe "is not recognized as an internal or external command, an operating program or a ...
[9 replies] Last: 64 bit OS ,X64 Thanks for the tips, I tried everything and there is n... (by hamidie)
by bk1303
Having trouble designing a box
 
I am supposed to create a box based on user input. For example: Enter the number of rows (max 99): 10 Enter the number of cols (max 99): 20 Enter an interior c...
[4 replies] Last: I am also having a hard time with this same problem and cannot figure ... (by Lakeside)
l
 
lll
[5 replies] Last: but the assignment I have Asking about assignments is explicitely fo... (by Enoizat)
by chuvak
Helper functions and data member access
 
Hi forum, I want to override the << operator (Edit: override the '*' operator), and if I add, friend const Hero& operator*(const Hero& first, const Hero& sec...
[3 replies] Last: const SuperHero& operator*(const SuperHero& first, const SuperHero& ... (by Enoizat)
December 2017 Pages: 1... 1213141516... 23
  Archived months: [nov2017] [jan2018]

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