Beginners - November 2018 (Page 9)

by darego
redundant if statement in my function
 
Hi guys, I am currently creating a copy constructor and an overloaded = operator for my linkedList class. I was following a tutorial to help me with the overlo...
[2 replies] Last: Thanks buddy. (by darego)
Problem with overlapping of functions with same name
 
Ok, so this is the question I am trying to do, Write two functions having same name Add and takes two arguments. When called from main, they will print “...
[4 replies] Last: Hello redfury, now if user enters a number without decimal then the ... (by Handy Andy)
Pls help to write a code for dynamic array
 
Input a sequence of real numbers and create a dynamic array of numbers with absolute values outside the interval (20, 40]. Using the function, calculate the num...
[1 reply] : When they say dynamic array, do you have to create and manage this you... (by dhayden)
printing string array getline'd from a textfile in alph order
 
Hi, For a class assignment, I have to open a text file, grab the information in the file, put it into a string array, and print it out a couple of ways. I can...
[1 reply] : You need to sort the array. Then print it out. (by dhayden)
Question that is difficult for me.
 
Hello all, first time posting here so excuse me if my etiquette is a bit off. I'm in a C++ coding class at my university and due to me having to manage my ot...
[5 replies] Last: Like I kind of get the basics of them in regards to how the function ... (by mbozzi)
How Can I Code a Program Accepts a Pointer to a C-String as its Argument?
 
I have an assignment that I need help with setting up for an assignment. I need some help finish building the functions. As far as how could I count the number ...
[6 replies] Last: If you want to read in more than plain words into your strings, e.g. a... (by nuderobmonkey)
by yat89
Finding maximum and minimum values in array
 
Hi everyone, i got a problem in finding a minimum values in array. I had search throughout the forum about this and have try it, but still not got the right ans...
[2 replies] Last: Okay. I got it. Thanks for your help. (by yat89)
iterator end()
 
I wonder me how iterator end() is implemented, since I had concern with code which was at the core like this: #include <list> #include <iostream> int ...
[5 replies] Last: @JLBorges, thank you so much your for this great example, I'm always i... (by nuderobmonkey)
Storing names and displaying their scores
 
Hello, I''m stuck on a problem for my programming class. The question reads "Write a program that prompts the user to enter the number of students and each stud...
[5 replies] Last: @Thomas1965 I don't see a need for nested loops You're right. There... (by whitenite1)
by Bopaki
Problem Solving with C++ (Sixth Edition)
 
Can someone help me with finding the sample programs and projects from this textbook. The book was supposed to come with the disk, but at the back of the boo...
[5 replies] Last: Thank you very much. This was resolved (by Bopaki)
by Bopaki
Asking for help in writing the copylist, copy constructor & operator= for a doublyLinkedList
 
here is the output that I get when I run the program: Enter integers ending with -999 23 65 34 72 12 82 36 55 29 -999 List 1: 12 23 29 34 36 55 65 7...
[2 replies] Last: I will close this one. I have written another one which runs but then ... (by Bopaki)
by Bopaki
cannot overload the operator<< on a doublyLinkedList
 
The coding is exactly as it is in the book but I get the following error: mingw32-g++.exe -c listAgainToday.cpp -o listAgainToday.o listAgainToday.cpp:15:...
[6 replies] Last: I will close this one. I have written another one which runs but then... (by Bopaki)
by Bopaki
asking for help in overloading operator<< in a doublyLinked List
 
I am getting these errors in my program : mingw32-g++.exe -c listAgainToday.cpp -o listAgainToday.o listAgainToday.cpp:8:34: error: 'list' is not a template...
[5 replies] Last: Okay I have written another program. It runs but then BOMBS out. I am... (by Bopaki)
Changing array type in class
 
Hello everyone.I have a private member type int that i changed to another type. Vector.h using namespace std; #include<iostream> #include"Point.h" cl...
[3 replies] Last: Well, you could write a template class, which would allow you to "cont... (by lastchance)
How to set time_point to specific date and time?
 
Hello, I come from a language where encoding date and time into variable was as simple as: DateTime date_time = EncodeDateTime(2018, 1, 1, 23, 59, 59, ...
[1 reply] : You can use the struct tm. See: http://www.cplusplus.com/reference/ct... (by coder777)
USB passcode
 
I was wondering how to make a program that when I plug in my USB drive the console then spits out a specific passcode that is set in the USB itself.(i am on win...
[5 replies] Last: coder777 , I'll have to give it a look. I've used it for com port enu... (by closed account z05DSL3A)
Overloading [] operator
 
Hi everyone.I am trying to overload operator .This is the following problem. In class Vector.h i have class{ private:Point *vector; int dim;//for dime...
[5 replies] Last: Yes,I see it now.Thank you very much for your help, I appreciate it. (by Zivojin)
pytahgorean triples
 
Hello mates. i would like to see your recommendations and your quotes. i don't know if i understand the set out of the problem, can you verify it? please how ...
[2 replies] Last: Double nested loop. #include <iostream> #include <set> using namespa... (by lastchance)
reseting information on a do-while loop
 
//I will be writing a program that calculates the occupancy rate for a hotel. The program will start by asking user how many floors the hotel has. A for loop sh...
[3 replies] Last: I have corrected it and everything works fine. It may seem so. in... (by keskiverto)
by at216
TreeSort question
 
Hey guys, I am trying to accomplish my TreeSort task, but my output is not able to run successfully. Input: Ada Rodriguez Jeffery Mendez Rosa Jefferson L...
[1 reply] : Why don't you set a breakpoint in your insert function and step throug... (by Thomas1965)
November 2018 Pages: 1... 7891011... 24
  Archived months: [oct2018] [dec2018]

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