Beginners - November 2015 (Page 14)

How to initialize a struct, which you need for a function as parameter, in the function signatur
 
Hi everyone, im wondering if there is something similar to java in c++ to create/initialize an object within a method signatur //in java im used to things l...
[4 replies] Last: Thanks, that was exactly what i'm looking for ! : D (by newnoob)
Store/Print Linked list
 
Am I not storing my linked list correctly? Or am I just not printing correctly? Can any direct me to what I am doing incorrectly? The only value that I get prin...
[1 reply] : Looks like I got it figured out. For some reason I had head = nullpt... (by EdWar82)
Help with basic recursive function? [C++]
 
Hello, I have a quick question, I just learned about recursive functions today and wrote this small program that gets the user to input a distance in meters the...
[3 replies] Last: You are welcome. By the way, I'm not sure exactly what you're trying ... (by mgoetschius)
File operations and structured data
 
Here's the software I wrote: https://gist.github.com/anonymous/b2e0bf58a4d8ceeb0ca6 Here's the output: https://gist.github.com/anonymous/dc1b1afa70c92f...
[2 replies] Last: There are a number of errors, I pretty much found all of them, but I w... (by Chervil)
Reads in strings from a file
 
I have to modify a program that I wrote for my last code. I need to modify it so it reads in 20 strings from a file. The data can be found in the names.txt file...
[1 reply] : Please put your code in Code tags. http://www.cplusplus.com/articles/j... (by SamuelAdams)
by dgadk
Reading a matrix into 2d array
 
Hi all. First off, this is for homework and I want to learn it on my own, but I could use some pointers/direction. I need to read a series of matrices from a...
[2 replies] Last: Here's what I have now: Not getting it to: a) read only one matrice ... (by dgadk)
Print to Console from *.csv file
 
I was able to correctly parse an *.xml to *.csv. Now, I am attempting to print the contents of the *.csv in tabular format to console screen. Having problems ac...
[1 reply] : You could use a stringstream to extract each value from the line. ... (by Chervil)
by rabzzh
BubbleSort 2D array keeping rows together
 
hi, im having trouble sorting this array by Y from the highest to the lowest but i need to keep all the data in the same row together, help pls #include <...
[no replies]
Score Board Bubble sort issue
 
Write your question here. Hi, i have been given a task for my course to produce a leaderboard using arrays, the below code is where im at so far, however i don...
[no replies]
Use of comma operator
 
Reading up on the tutorial about the comma operator, what does it mean: When the set of expressions has to be evaluated for a value only the right most expre...
[no replies]
by dep0
String Display
 
hello, i am a beginner in C++ and i am currently working with strings. My question is why when compiling the script i'm providing below, i can get the string's ...
[1 reply] : altered is an empty string. Printing an empty string will output not... (by Peter87)
How can I correct my code to successfully reverse the array?
 
Hi all, I'm having a bit of trouble understanding what I'm doing wrong. I need to create a function to reverse the array and then the function has to return a p...
[no replies]
Need help with C++ Code, getting errors
 
The purpose of this assignment is to overload the constructor, is equal to operator, and the equal to operator for an abstract data type. Program Requiremen...
[1 reply] : Line 49: Where in the instructions does it says to overload the + ope... (by AbstractionAnon)
Program that reads a list
 
The practice prompt is as follows: Write a program that reads the list /users/calendow/assignments/shortest-word and prints out the single shortest word in it...
[3 replies] Last: Yes I am afraid there is no other way - unless the list is sorted what... (by Thomas1965)
by ottob
Classes that work together
 
I am having to create a program and design a set of classes that work together to simulate a car’s fuel gauge and odometer. These are the requirements: The...
[2 replies] Last: Line 56: missing ; line 80: public should not be capitalized. Th... (by AbstractionAnon)
Problem with imputing anything that's not an int
 
So, I'm new to programing (this is my first year, just started college a few months ago) and I've been asked to do this program that runs a game called "Los chi...
[1 reply] : You may need to use cin.ignore() (by SamuelAdams)
by sami M
passing struct to the function
 
Hey, this program suppose to calculate B.M.I and says if you are fit or not.But it only returns one answer I don't know exactly which part is the problem.But I ...
[2 replies] Last: so what should I change here to make that fix?could you exactly say wh... (by sami M)
Passing Functions issue in HW
 
Hello I'm trying to build a program that takes scores from judges, drops the highest and lowest and averages the remaining three scores. Problem is, the progra...
[10 replies] Last: Yes, score is deleted when you exit getJudgesData(). cire's point a... (by clueless007)
Need help writing this code with arrays!
 
I am a beginning computer science major and coming up on my final lab exam which is unknown exactly what it will be covering. I know that I really do not unders...
[no replies]
by Ganado
Brainfarts with #include/typedef problem
 
I've probably just been coding way too much at once, but I can't seem to figure out the best solution to this. I have a file, Paint_View_GUI.hpp. In it, I defi...
[7 replies] Last: Yeah that looks like it'll work, similar to that compile-time polymorp... (by Ganado)
November 2015 Pages: 1... 1213141516... 53
  Archived months: [oct2015] [dec2015]

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