Beginners - October 2017 (Page 13)

by chuvak
Overloading >>
 
Im trying to overload the >> operator, so that if someone enters "2018/8/18" as the input, my overlo...
[7 replies] Last: if (date.inRangeYear(y) && date.inRangeMonth(m) && date.inRangeDay... (by ne555)
Weight Conversion Program
 
My assignment is to write a program that will convert from pounds and ounces to kilograms and grams....
[4 replies] Last: Hello Cplusplusnubblub, Sorry I lost track of this post for awhile. ... (by Handy Andy)
operator overloadin
 
A quick question, I've moved onto operator overlaoding, and I have noticed that sometimes the overla...
[4 replies] Last: Hi thanks for your answers - Integer is a basic class that I have writ... (by jamesfarrow)
Differences between Structs and Classes
 
Hey there! As the title states, what's the difference, and if there is any, is it of any use?
[2 replies] Last: Thanks alot. (by goldenchicken)
by SasuKe
Print Tree
 
This is my tree(without the underscores): _________5 ________/ \ _______4___8 ______/____/ \ _...
[2 replies] Last: then zero must always be the return value from bt->getData() lets s... (by Jaybob66)
i merged files But...
 
the mreged file gives the output in one line but i use w1<<line<<"\n". #include<iostream>...
[12 replies] Last: i understand what you are saying. This method would mess up my searc... (by closed account 1vf9z8AR)
Can a function return more than one value?
 
Hi, Just a quick simple question: Can you make a function return more than one value? Thanks in a...
[5 replies] Last: yes, but you need to isolate the struct definition so you can use it e... (by Jaybob66)
by Mallet
Assignment #2, Payroll Summary
 
Hey guys, I am trying to have a program pull information from a data file and utilize it for...
[1 reply] : Sounds like the problem you have is that a line could be in one of two... (by Repeater)
by Horki
Cmake with Lua lib
 
I'm trying to add Lua library in Cmake, and don't know how to do it properly. Sample is taken fro...
[no replies]
help with a gross pay question
 
Im really confused with how to do the gross pay with the void function and how to calculate more the...
[2 replies] Last: Hello BTheMan, An easy way is to do what "Handy Andy" said about refer... (by Xenophobe)
(stringstream)mystr vs. stringstream(mystr)
 
Hi, I'm new to coding and just finished the Compound data types -> Data structures tutorial. In t...
[3 replies] Last: std::stringstream is a class that inherits std::iostream and uses an i... (by helios)
Trying To Match 2 Arrays With Different Elements & Assigned String Literals
 
I have a binary search and am comparing an array called keyword with 84 elements and a second array ...
[7 replies] Last: @ne555 Thank you for pointing that out. I have the feeling my brain w... (by Handy Andy)
by pavank
Problem with codeblocks in MacBook(High Sierra)
 
this is my code:- pavans-MacBook-Pro:~ pavank$ /Users/pavank/Desktop/CPP Codeblocks/kusy/bin/Debug...
[2 replies] Last: To expand on Helios' answer, the problem here seemed to be that you ha... (by Repeater)
Calculation of polygon border width
 
Hi people, does anyone know how to calculate the inner border coordinates of a polygon in cpp, if y...
[4 replies] Last: Here is an extended version which calls a separate border() function a... (by lastchance)
istream public function eof() works not as expected!
 
Write your question here. why did the the string "lichao!" be showed twice? 1 #include<fst...
[5 replies] Last: > the public function eof() of istream may have a problem in analyzing... (by JLBorges)
Read a file with numbers and letters and total as well as AVG
 
Hello all, I have little experience with C++ code, i have this program that i am not sure how to...
[6 replies] Last: Well, I tested, exactly as posted, the latest code posted above, and g... (by Chervil)
palindrome using stack
 
Write your question here. in this code, before the push error made it. code can operate but there i...
[4 replies] Last: really appreciate it ! after i asked this problem, i edited code in ot... (by closed account ENhfGNh0)
Getter and Setter functions outside the class
 
edit: I was able to find the answer I was looking for, no need to reply. I'm currently working on...
[no replies]
how simulated this roulette
 
which is ? the best language for simulate this roulette and thus get more accurate data of the numb...
[1 reply] : now says that we must obtain the seeds of the previous draws, of a sp... (by mbozzi)
by Rodev
How/Where can I optimize me code?
 
Hello, I am trying to code a class named longestConsec for an exercise at coding website. So f...
[3 replies] Last: Hope this alternative version could be of any inspiration. Remove all ... (by Enoizat)
October 2017 Pages: 1... 1112131415... 33
  Archived months: [sep2017] [nov2017]

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