Beginners - April 2016 (Page 16)

Stuck in infinite loop
 
I am stuck in an infinite loop. How do I get the second and third line of this file to output? BusInput file 111 100.00 200.00 50.00 222 200.00 300.00 100.00...
[2 replies] Last: Thank you. This fix worked for the most part. I had to take out the i... (by travina8)
Having question with class!
 
I have just learn class, and I did this problem. I do not know that can I get a value return from a function of a type class which is publicized. #include <...
[2 replies] Last: Thanks @coder777! That is explained a lot for me. (by LDbunny)
trouble creating small program
 
hey im trying to write code im a beginner and need some help I want to create 3/4 classes the first class would be class 1 At start …enter 12345 ...
[1 reply] : Please don't spam the forum with multiple identical threads and posts.... (by MikeyBoy)
Need help creating a random generating graph
 
So i understand that a graph is N x N matrix so the code i produce below produces a graph, but how do i generate the edges and assign the edges with random weig...
[no replies]
Replacing Characters in a String (still need help as of 20th)
 
Relatively new to C++. I posted a previous question related to this before, and have since continued to work on the problem, to no avail. Basically, I need a...
[11 replies] Last: @keskiverto: I missed the fact that ALPHABET was a string. The OP can ... (by fredk)
by Apsyc
Project program works differently on different systems.
 
I'm doing my final project for my Intro C++ course in which I have A's and extra credit up until now. The project was due last Friday, but I was given an extens...
[1 reply] : Sounds like undefined behaviour . Look out for out of bound array ind... (by Peter87)
Lottery Tickets
 
1. Read in the 6 numbers that were announced in the order that they were announced. You will have 6 different numbers ranging from 1 to 54 which can be entered...
[no replies]
find a minimum value digit in a number using a loop.
 
Hi there ! I have a problem. I need to find the minimum value digit from the entered number. I've made a program that inputs a three digit number from the user ...
[9 replies] Last: Thanks all ! (by sabbag learner)
MidiScaleMenu
 
Hi, I have an assignment to do. I do not really understand programming. The Task is to create a program that uses a Menu's to play a Major, Minor, and Chromati...
[4 replies] Last: This is what I have so far. Basically, I'm looking to link the menu op... (by UselessAtProg)
by Deny
Inheritance error
 
So i have two classes, one is an abstract "Servicio.h", and the class "Aparato.h" which inherits from it, but I'm getting an error which does not let me create ...
[6 replies] Last: Yeah, he was right, I messed up and was including Servicio.h, when I s... (by Deny)
by Alleks
Create a static library
 
Write your question here. I want to create a static library. Can you tell what's wrong in my code. #pragma once namespace MyFuncs { class MyClass ...
[2 replies] Last: Thank you very much, you helped me a lot. I have used your other tip:M... (by Alleks)
External DLL
 
I have dabbled in most languages in the past but not a lot of C++ then in writing an adobe plugin I discover I need to write some C++. Forunatly the code I nee...
[1 reply] : It could be a problem of name mangling. Have a look inside the dll wha... (by Thomas1965)
Sort function causing crash.
 
EDIT:: Need some help with the sort function causing the program to crash. Updated code is below. All other problems have been solved, just trying to get t...
[7 replies] Last: Alright, so I've got the importable and showTable to work correctly, b... (by Hatches)
Postal Barcode Assignment
 
Hello! I would like assistance with the code below. My issue is that I do not know how to output the equivalent barcode for each digit of the zipcode. My code i...
[4 replies] Last: @AbstractionAnon thank you for pointing that out. (by cpunkymonkey)
Compiling issues due to if and else if statements
 
Have a hw issue. my code is not compiling and visual studio is giving me errors all around the if and else if statements saying "expected declaration" or "expec...
[2 replies] Last: Line 24,52,77,110,125: Your boolean condition is wrong. Those statem... (by AbstractionAnon)
Clearing only somepart of the console.
 
Hi I am currently developing a game (to hone my C++ skills) where two spaceship shoot each other, but I have a problem. my program flickers so fast and it is un...
[no replies]
by evy
need help with cin.getnum?
 
how do i get.line() for integers ? sorry iam very new with c++ and with this website. if my quastin is idiotic delete it. tnx for helpers. //code include <...
[2 replies] Last: any idea where is my problem in this code? #include <iostream> usin... (by evy)
Manipulator how it works ?
 
Hello, I am beginner in C++ and I am trying to understand some features. 1 At first, I do not really understand how to use manipulators... For example,...
[3 replies] Last: Hello, Okie got it for those points. Thank you @integralfx and @tip... (by Planet86)
by thenub
Program on reading writing data to file not working
 
I wrote a simple program that accepts data and stores in a file and then displays it, but it is not producing correct output. The while(fin) loop seems to run m...
[1 reply] : You have two problems. First: mixing operator>> and getline() is a pr... (by coder777)
by thenub
Program of data files not working
 
The question of the program is written in program comments. First, the program is creating weird output. Second, getch() is not holding the console screen. ...
[1 reply] : What weird output are you getting? Your C++ version is way old, pre-s... (by tipaye)
April 2016 Pages: 1... 1415161718... 43
  Archived months: [mar2016] [may2016]

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