Beginners - December 2015 (Page 25)

by Andym
still struggling with the linked list
 
My assignment is due tonight and I can not get this code to write the text from a text file into struct nodes. It writes the first line but doesn't add after t...
[no replies]
by Redgar
Problem installing FLTK in Visual Studio
 
Hello guys, I am learning C++ on my own. I have done more or less the 1st 100 pages of a book called Jumping into C++ by Alex Allain using Codeblock as a com...
[no replies]
What does this mean? Explanation needed.
 
Hey guys! I'm studying for my c++ final and I need to know what this means. EXAMPLE: void display_flavor(string , int , double , double , int, string); ...
[5 replies] Last: Glad I could help. Feel free to drop any other questions you have our... (by JayhawkZombie)
by cspace
Are type information included in binaries?
 
My impression is that type information such as int, float, and int* are not included in binaries. Type information are only present in C++ to let the compiler k...
[4 replies] Last: Thank you so much for the example and the confirmation. (by cspace)
by Kevrok
Unresolved Externals, project not finding associated .cpp file
 
Fairly new to C++, but familiar with programming to a decent degree. According to the instructions, I've separated the declarations and definitions of my method...
[6 replies] Last: You are welcome. BTW, I figured out why the char array crashed the pr... (by closed account E0p9LyTq)
Reading to file and outputting to file with structs
 
Hello! I am having an issue with reading from a file and outputting to a file. We are to use a struct called employeeType where we will have string fname, strin...
[12 replies] Last: I figured out my issue. The final code is: #include <iostream> #inc... (by underoathed)
Help with battle sim.
 
Could someone show me what I've done wrong in my battle simulation game. The health of the skeletons and humans will not decrease. #include <iostream> #i...
[3 replies] Last: I had my signs backwards boys and girls. thank you for your help every... (by eskipre)
class based claculator confusion
 
Now i'm no pro at C++ and am pretty new and so I kinda ran into a wall with this design for a class based calculator. The idea was that I make a class that con...
[5 replies] Last: At a glance, I only notice one issue. You don't update "answer". It'll... (by JayhawkZombie)
by gradku
Class constructor assistance
 
Hi, so I have an assignment for a CS course that basically requires us to use a class to manage certain activities. We are required to have a dynamically alloca...
[13 replies] Last: It looks good to me, except for one thing: activity_pointer[i+1]; T... (by JayhawkZombie)
Unwanted repetition
 
Write your question here. so im doing a schoolwork, im currently trying to make a "who wants to be a millionaire" type of program and when i answer correctly t...
[2 replies] Last: A way to use a function to simplify the code: #include <stdlib.h> #in... (by Chervil)
Help with C++ homework
 
Hello I have a homework assignment that I need help with on how to start. The homework assignment reads It’s your first day of work at Minnesota Ore Mining, I...
[no replies]
When does an object's constructor get called when the object is declared as a global?
 
When does an object's constructor get called when the object is declared as a global? For example, if at the end of the .cpp file's class definition, an instan...
[5 replies] Last: And bam. I have been misinformed. I will correct my understanding, as ... (by JayhawkZombie)
cAN ABYONE HELP ME DRAWING SIMPLE GRAPHICS?
 
Hi... i am beginner in graphic. i use DevC++. i can post code here. only have to add simple lines of code. it is my assignment but i dont know how to do it. i w...
[no replies]
by GonlyG
Empty/wrong out put in program
 
I am writing a program that calculates the average of sums. First input in amount of lines in the program, each line will include numbers which I will have to f...
[2 replies] Last: An edit to this program proved that the first average would be correct... (by GonlyG)
Segmentation fault, and I cannot figure it out
 
When I run this program, I get segmentation fault, I've been spending time for a couple hours but I cannot figure it out.... I need your help!! This program is...
[9 replies] Last: None the less. Line 6 mMap.erase(it2++); looks problematic. Doesn't i... (by cire)
by fsfh60
Define an array of class to store students information
 
Hello friends, I am not sure what I am doing wrong here. I am new to C++ programing. Define an array or a vector of class to store studnets information. Th...
[3 replies] Last: Right. They haven't been defined anywhere. You need to define these. ... (by JayhawkZombie)
Average/Standard Deviation Problem
 
Hello everyone, first post here. I am trying to write a program to calculate the average and standard deviation and I am having a little bit of trouble. I had t...
[5 replies] Last: Now I am getting an error: displayVals: function does not take 2 argu... (by Chervil)
by brad97
Program Outputs Abnormally Large Incorrect Value?
 
I am writing a program that asks the user to input 5 judge scores 1-10, drops the lowest and highest scores, finds the average of the three remaining scores, an...
[4 replies] Last: score(judgesScore); This does nothing. You are throwing away the re... (by Moschops)
what is the alternative of (player=(player%2)?1:2;) and( mark=(player == 1) ? 'X' : 'O';) in this programme
 
i want to improve this code, first of all on execution of this code it produce a beep like sound,how to get rid of this and secondly how to replace these two{...
[5 replies] Last: Yes you can simplify the code. The key thing to realize is this: the ... (by dhayden)
Vectors slow down threads
 
Hi, for some reasons, the vectors are slowing down the threads. When i use 1 thread to use threadmethod1(int z), it takes about 8 secs for the program to finish...
[5 replies] Last: > When i use 1 thread to use threadmethod1(int z), it takes about 8 s... (by JLBorges)
December 2015 Pages: 1... 2324252627... 43
  Archived months: [nov2015] [jan2016]

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