Beginners - February 2016 (Page 44)

by kinley
Object Oriented Design Question
 
Hi, I am having trouble designing this and looking to your thoughts on this scenario. A customer can place one or more orders. I am considering two class...
[6 replies] Last: Thanks to all of you. (by kinley)
by nj1995
Program keeps crashing
 
Every time I compile and execute my code it crashes, and I am unsure why this is. I think it may have something to do with my insert function but I can't figure...
[1 reply] : Do yourself a favor and learn how to debug, otherwise it gets ugly. ... (by TarikNeaj)
Searching for Keywords
 
Hey all, trying to write a tiny little script that can pick up on keywords, but I'm not having a lot of luck. Here's the code, I'll explain the problem after yo...
[3 replies] Last: Thanks a lot for the help guys! (by Rawkstar)
Need help repeating a message after user inputs an integer.
 
Write your question here. I need a program that can ask the user to enter a non-zero, positive integer N first. Then the program will allow the user to enter t...
[5 replies] Last: Yeah, and it only goes to the third statement after evaluating an inte... (by RUNNER PRO AGARIO)
cout command unrecognized
 
Doing a c++ introductory class and my cout command is unrecognized i try to run it. it says tipCalc.cpp:15:13: note: ‘std::ostream {aka std::basic_ostream<c...
[2 replies] Last: when using cout , always use it with << , not this >> . >> is the e... (by RUNNER PRO AGARIO)
solving a puzzle
 
S E N D + M O R E ----------- M O N E Y I want to start programming a solution for this puzzle, not only this specific words but other words like: ...
[7 replies] Last: @dhayden yes (by RUNNER PRO AGARIO)
by rain
Need help with class templates.
 
Hello. I an new to class templates. I am trying to define class Point. Right now Point only has member coords to store coordinates in list. I am trying to make...
[8 replies] Last: Ok. I did not know that. It came as a little surprise to me because it... (by rain)
Returning true vs returning 1, would this affect performance?
 
I'm grading someone's code. They are returning a bool but their code says return 1 rather than return true /******************************************* *...
[3 replies] Last: In any case, the compilers aren't that dumb: this function compiles i... (by keanedawg)
Not repeating random numbers
 
Hi. So this is my working code. Only problem is, random numbers are occasionally repeating themselves and obviously I need unique random numbers that don't repe...
[3 replies] Last: xismn, thanks for the reply. I will keep that in mind when programming... (by cpq2g1zw2)
by alitt
search by name problem
 
hey smart guys these are my codes and everything is work correctly just void search by name doesnt work anybody to tell me why? #include <iostream> #in...
[4 replies] Last: Actually you use strcmp() to compare two C-strings, not single charact... (by jlb)
by Omii
Array
 
Hi all, well am new in programming, so their is some confusion in Array, well I wanna to insert New element in array, at specific position, and I got the code, ...
[2 replies] Last: It stores original size of an array in the N variable (that is the fir... (by naaissus)
for loop help
 
CAN SOMEONE PLEASE EXPLAIN THIS CODE, STEP BY STEP FOR ME. I DONT UNDERSTAND HOW ITS PRINTING 6677 #include <iostream> using namespace std; int main() ...
[8 replies] Last: OKAY!! thanks man I finally understand it!!!! appreciate your time! t... (by johngillis)
How to keep answers from rounding?
 
This is my code, everything is working but my assignment wants for inputs 10, 56, and 33 to have a wait time of 1.99 before the balloon hits the ground. My outp...
[3 replies] Last: That did the trick! I'll keep that in mind in the future. Thanks. (by stealthboy)
by Cat32
sort an array of stings alphabetically
 
I need to sort an array of stings alphabetically. The trouble is I have no idea how to do that. I need it to be case insensitive. My professor reccomended using...
[2 replies] Last: You might start with a function to compare two strings and determine w... (by cire)
Equivalent Array's
 
My program is suppose to create a function that takes two array's and assigns them the same number of elements. Next it compares both arrays to decide if the ar...
[1 reply] : If I understood you correctly, these two arrays are shift equivalent: ... (by naaissus)
Multiple inherance
 
Hey, I want to give an instance of the class c the y value of an instance of the class b. Who can I do this if I want to do it with pointers? class a ...
[no replies]
somethi
 
Hello guys!I wonder if i could do something like if you press a key then make a sound with Beep() function included in <windows.h>.But i want that without need ...
[1 reply] : I don't think there's a standard way to do that without pressing enter... (by Chervil)
Linked Stack Using class
 
I have made this program to illustrate the concept of Linked Stack //Push & Pop in Linked Stack //class and typedef implementation #include <iostream> usi...
[no replies]
More Efficient Way?
 
Could use some help, I need the elements in the vector to be Unique(non repetitive) Im stuck for (int k = 1; k < letters.size(); ++k) { for (int i = 1...
[5 replies] Last: > More Efficient Way? More time efficient (with a good hash function)... (by JLBorges)
Large Negative number or zero output on multiplication
 
Im creating a hexadecimal calculator (only does addition of two numbers) for a class and am running into an issue on this program that otherwise works. I have i...
[1 reply] : #include <iostream> #include <limits> int main() { std::cout << ... (by cire)
February 2016 Pages: 1... 4243444546
  Archived months: [jan2016] [mar2016]

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