Beginners - November 2015 (Page 12)

by Dmytro
Please good example code to classes, it shows the classes and their interaction!
 
Please good example code to classes, it shows the classes and their interaction! Good day!! Today I ask you again. This is my example that I did earlier, I...
[2 replies] Last: Thank you!! It is a good reference, very good. Really wonderful. For t... (by Dmytro)
int or double??
 
Why double: int linemen_weight = 0; int other_weight = 0; int total_weight = 0; ... Instead of what I have int? (yes this is a broken code, I don't want clas...
[1 reply] : With double you will have a more accurate number. double: 1 / 2 = 0.... (by coder777)
Comparing Strings and Substrings
 
Copy the following data and paste them in a file named Payroll.txt (code#salary). 1#23400 4#17000 5#21000 6#12600 9#26700 10#18900 11#18500 13#12000 ...
[1 reply] : > But I dont know how to compare strings in a way and loop it how the ... (by JLBorges)
Sorting Array then place each step in 2D HELP PLS!
 
Ive been stuggling with this question for a week now, I'd really appreciate if someone helped me figure out the mistake in my code:( Thanks in advance! Write...
[2 replies] Last: Thanks alot! It worked! Thanks again! (by KimPossible)
Shortest distance
 
I am writing a program to find the shortest distance from two separate points on a graph. After a bit of online research I think I might be trying to implement ...
[1 reply] : I'm not sure what you are trying to do in your algorithm. Nowhere in y... (by Gaminic)
What should i read next?
 
I started learning C++ a couple weeks ago so I'm still starting out. I got Deitel & Deitel's C++ How to program late objects edition. i know it's early on but a...
[5 replies] Last: Thanks all of you :D (by GruntBassel)
by osur
error: "Node" has not been declared
 
Good evening, I've been trying to write a linked list code for a while today, where I have two structs, one calling another. I also have a function, but attemp...
[2 replies] Last: And to think I've been struggling for the past few hours for that :)..... (by osur)
print_out
 
Thanks for the help.
[17 replies] Last: @espionage1 You wrote: why does your code ask for a number and lat... (by whitenite1)
Issue with else part of the statement
 
What the program is supposed to do is upload barcode, name and price of information from the txt file and ask for a barcode to be entered. Once the barcode is ...
[10 replies] Last: You did not put the code I gave you into your code correctly. whi... (by mgoetschius)
About "auto"
 
Is there any reason to use the storage class auto ??
[2 replies] Last: Thanks man.. Thanks (by abtahi tajwar)
Pseudo-code algorithm
 
i need help writing a Pseudo-code algorithm for this basic function code #include <iostream> #include <cstdlib> #include <iomanip> using namespace std;...
[1 reply] : > writing a Pseudo-code algorithm for this basic function code that's ... (by ne555)
by ottob
Incorrect output
 
I am creating a car simulator program and the output for the the fuel level is correct. But the mileage is incorrect. It is displaying mileage: 1 -- Fuel Level:...
[1 reply] : > It should decrease the FuelGauge object’s current amount of fuel b... (by ne555)
trouble finding the minimum value in a array
 
Hello I am having a issue with finding the lowest value in a array. For some reason it keep comes up with what the average is. my input values are 3.1, 4....
[3 replies] Last: thanks guys i appreciate the help . (by ryanmac75)
How can a char be used as a boolean?
 
I've seen code like this to convert all chars in a string to uppercase: for (int i=0; str ; i++) str = toupper(str ); I get it works to tu...
[2 replies] Last: Ahh! I had forgotten about the null value at the end of the string. Th... (by anarelle)
Program crashing upon variable input
 
I'm trying to make a program that enables you to input an indeterminate amount of numbers, then, when you hit 0, it displays the amount of numbers you've entere...
[2 replies] Last: After fixing my very foolish grammar errors, it works! Thanks so much... (by Zephyre)
question: regarding gdb
 
hello programmers, i am new to programming, and i have this problem regarding using the (gdb). so i have this code which is completely correct: #incl...
[1 reply] : ¿can you post your session? I mean how you run gdb, what parameters y... (by ne555)
Help with recursive function?
 
...
[1 reply] : In your original code there is no return value on the else condition. ... (by ne555)
How do we seperate digits by adding space between them?
 
Were supposed to type in a number and the program should output the numbers separately and display their sum. For example; if I type in 256, the computer should...
[10 replies] Last: That seems to work. Here's how I did it, using one rather than two lo... (by Chervil)
Some questions
 
Hello, I'm quite confused by pointers and references being passed/returned to a function . I think I understand passing values as a pointer or as a ref...
[2 replies] Last: Thanks btw abstractanon, for the answer to my other question :) it he... (by closed account N8RzwA7f)
Array Assignment
 
Hey Guys! I'm new to writing programs, and I'm having trouble with writing this function and getting it to execute properly. Any help that can be given will be ...
[1 reply] : Lines 10-17: You need a loop here to iterate through the id array. (by AbstractionAnon)
November 2015 Pages: 1... 1011121314... 53
  Archived months: [oct2015] [dec2015]

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