Beginners - June 2015 (Page 15)

Deleting a Node Using Recursion
 
I have been struggling with this problem for about 4 hours. And this is not a school assignment or anything. Can anyone help me have a logical understanding of ...
[17 replies] Last: The index is the position where the node is inserted. Like an index of... (by coder777)
Problem when trying to sort struct members
 
There seems to be no problem in sorting the ISBN, I'm assuming because its just numbers. The other struct members are all char strings and don't want to be ...
[1 reply] : You cannot assign arrays around like that. In your case you need to ei... (by MiiNiPaa)
by mm1990
File IO code not outputing my text file! Help!
 
My coding isn't outputing first part the text file. This is what I have. /* June 15th */ #include <stdio.h> int main(){ FILE *weigh; int num, sum = 0; we...
[6 replies] Last: I have this so far, but I am having a hard time figuring out the avera... (by mm1990)
Beginning programming solving problems
 
I just started learning programming and whenever im solving a problem, i like to draw out what each line of code does. By draw out, i mean that i go through eac...
[1 reply] : If that hleps you then it's ok. There are other approaches like this:... (by coder777)
linked lists
 
Hello everyone. I've got a little time to prepare for my exam. It turned out I will need to solve problems connected with linked lists. Please can someone pr...
[2 replies] Last: thanks (by The suffocated)
Recursion and Finding the Index of an Element
 
I know I have been posting so often and I apologize. I am learning so much and I have so many questions! I am trying to write a program that takes a sorted ...
[19 replies] Last: error: #error This file requires compiler and library support for the... (by andywestken)
need help about to scream lol
 
idk why this wont work. it keeps telling me." invalid use of 'Rat::Rat'" main file #include <iostream> #include "Rat.h" using namespace std; int main (...
[6 replies] Last: It's okay to scream. (I recommend you go do it and come back.) The wa... (by Duthomhas)
Coding design question
 
I was interviewed recently & asked this question. Design MS Paint using Object Oriented Design. I answered by starting with different classes for Canvas, Pa...
[3 replies] Last: Zoom should inherit from Canvas. (Zoom is a view of the canvas.) Canv... (by Duthomhas)
by jth90
How can I pass the value of these variables between functions of the same class?
 
Write your question here. I'm working on an assignment for a programming class that I have, which comes with explicit instructions which are as follows : ...
[3 replies] Last: First of all `i' is a terrible name for a variable important enough to... (by ne555)
getline Problem
 
I had to change from using cin >> to using getline(cin,s) because it would only take the first word as input if there were spaces. Now the application is ju...
[4 replies] Last: The columns in the table are: - N (length of sentence) - N! - time to ... (by andywestken)
by stav
my first integers adress is higher than second?
 
hi, I made this little program to see where my two integer addresses would be located. but then I noticed something strange.. (the code) int main() ...
[1 reply] : You don't indicate what platform you ran this on. On some platforms,... (by AbstractionAnon)
A question about ISS use
 
I need to split up a data file that is a database of names, job title and the like into separate lines,and the problem is that the job titles have spaces in the...
[7 replies] Last: I did use bheadmaster's suggestion, but due to bad formatting of the o... (by Feymanismyhero)
Iterating through an array, removing an element, then shifting the array
 
I am trying to iterate through this array, and remove the number 2. Once I remove the number 2, I want to shift 3 and 4 to the left, changing the array size as ...
[3 replies] Last: OP's problem is a common introductory homework. The trick is to under... (by Duthomhas)
() syntax when passing as argument to function
 
Hello, What is the syntax '()' e.g in 'ZeroFunction<2>()' when it is passed as argument to a function. ZeroFunction is a class. Is it a call of constructor? ...
[2 replies] Last: Thank you! (by stridder)
Confusion with sum-of-divisors algorithm (code)
 
Hey guys. I have recently stumbled upon somebody else's code which used a function for calculating sum of divisors of a certain number. The function is pretty f...
[2 replies] Last: Well, the method indeed is hard to explain. But I get it now. Thanks ... (by bheadmaster)
Letting a string = an int
 
Hi guys, this might be some fundamental stuff but I just could not get around it and would appreciate some help. int number = 0 char *string = "30.56"; ...
[4 replies] Last: I see how it is now. Thanks for the help guys. Appreciate it! (by fishnsimon)
What's wrong with my loop?
 
What's wrong with my loop? When i enter 0 for length, i want it to exit the program. #include <iostream> using namespace std; double getLength(); ...
[4 replies] Last: int length; int width; int perimeter; int area; Uninitialised... (by mutexe)
text file too big (EDIT: fail)
 
I wanted to make a "word of the day" program. I found a public domain version of webster's at gutenberg.org, and it was arranged in a simple-to-manage format. E...
[8 replies] Last: Thank you everyone. I am writing the program for a raspberry pi2 whi... (by newbieg)
Rectangle Program with Functions
 
What is wrong with my program? Why won't it run? #include <iostream> using namespace std; double getLength(); double getWidth(); double getArea(...
[3 replies] Last: There's nothing wrong with my version. It works. (by closed account 48T7M4Gy)
by grillo
Segmentation Fault Problem
 
I've tried many different variations of code for this function and I was wondering if someone could help me understand why I am getting a segmentation fault err...
[10 replies] Last: It prints out a Contact Which Contact? Where it miraculously sprout i... (by MiiNiPaa)
June 2015 Pages: 1... 1314151617... 32
  Archived months: [may2015] [jul2015]

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