Beginners - March 2014 (Page 39)

by kiino
Cash Register Problem
 
Hey guys, I'm trying to create a cash register program that shows you a list of items you can pick from, then when you pick one it will ask you how many. I'm...
[5 replies] Last: thanks Peppercorn for the help but I wanted to create my own code and ... (by kiino)
problem
 
why this is not working ? #include<iostream> using namespace std; struct node { node *prev; int data; node *next; }; void add(node **head,...
[2 replies] Last: Thank you , i really don't notice that. (by max v max2)
Link List Help!
 
This code is designed to tokenize names from an Input File from command line, insert them into a node, insert them into the list (in order by Last Name, First N...
[1 reply] : Ok, I'm going to start out by saying, WTF? This program is much more o... (by Volatile Pulse)
Meaning of codes
 
Void convert(intT ; int Num) { int i,j, temp; for(i=Num;i>0;i-=1) { J=i-1; temp=p ; p =p ; p =temp; } } Please explain each code
[4 replies] Last: Well, the meaning of j=i-1 is that j is... well, equal to one less tha... (by Ispil)
adding matrix doubles
 
Write a function called matrixAdd1 that adds 1.0 to each element of a matrix of doubles . An initial function skeleton is provided --- your job is to write the...
[3 replies] Last: Indeed, that would do exactly what is required- it will add 1.0 to eac... (by Ispil)
Choosing The Right University
 
Is University Of Portland a good decision for computer science major?
[no replies]
Sorting Time Complexities
 
Don't really need help, already know how to do what I need to do..Was just wondering if anyone knew off the top of their head the average case time complexity o...
[6 replies] Last: Thank you. (by shamieh)
help..find the max value
 
how to make the number of passenger show the value from greatest the lowest like 300, 290, 280, 270, 260....200 in output, and keep the profit and ticket price...
[1 reply] : Arrays (by closed account iAk3T05o)
Allegro text rpg help
 
Ok so I made a text based rpg using the console. It is fairly complete. Was actually working on putting together a simple story to see if all the stuff actually...
[no replies]
Class Averages Problem help
 
Hello! I was given this problem for my programming class, and I can already tell it's very detailed. I'm new to C++, so I'm hoping that I can get some help st...
[12 replies] Last: If anyone can still help me with the problem above, I would appreciate... (by mymalibu8)
Problem with fraction class
 
My program is supposed to have a Fraction class that can add two fractions and be able to display an object's data values. I'm thinking that I should have a dif...
[3 replies] Last: Yes, and they will remain as such. The way I proposed simply initializ... (by Ispil)
by Legato
What are some basic programs ideas for noob?
 
Can you peoples give me some ideas for things i can aim for right now just to play around with? I've made a few different calculators, but just wondering ...
[2 replies] Last: the quiz is a really good suggestion also the guess a number, i think... (by Legato)
by leo255
Need to use StringStream to take user input, and pass it (as a string) into my function
 
Hello, I need to write a program that uses a stack to match parenthesis, brackets and curly braces. I think I got that mostly right, if I didn't miss anything....
[1 reply] : EDIT: Since my question is mainly concerning stringstream, I changed m... (by leo255)
ARRAYS
 
Suppose A, B, C, and D are two-dimensional arrays , all of the same size ,and all of type double . Write a code fragment that computes D = A + B + C, where ea...
[4 replies] Last: what was your final solution? (by imsoconfused)
by stdeez
Making a deep copy
 
Would this be considered a deep copy void Edge::operator =(Edge rhs){ theEdge.v1 = rhs.theEdge.v1; theEdge.v2 = rhs.theEdge.v2; theEdge.weight = r...
[1 reply] : > Would this be considered a deep copy you are taking the parameter by... (by ne555)
Help converting numbers to word format in a txt file
 
Hi, I am trying to read into a file that has something like I have 5 apples and 9 bananas. Sam has 8 apples and 6 bananas. and I need to replace the numb...
[2 replies] Last: Actually, you may try implementing an image converting tool within you... (by EisenhowerPDF)
Need help setting precision
 
I need to set the precision to show 2 decimal places, 1 decimal place, and also a whole number. I wrote it in the code but for some reason it only shows up as a...
[no replies]
Error in code, please help?
 
I am writing a code that will find the area of a circle, triangle, and volume of a cube. It should be displayed as a switch choice and the user can select an op...
[2 replies] Last: I fixed it, thank you! (by imbritt)
Postfix code
 
I am trying to execute a postfix code. for example, if a=6 and b=5, and you enter like ab+ it should result 11. #include <stack> #include <iostream> #...
[5 replies] Last: I don't know why you get 0. When you enter the string, the >> operator... (by maeriden)
function fails to run
 
Hello I am trying to run a program that allows a user to update a list of URL bookmarks in a data file. The bookmarks are to be sorted alphabetically by categor...
[no replies]
March 2014 Pages: 1... 3738394041... 79
  Archived months: [feb2014] [apr2014]

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