Beginners - October 2014 (Page 38)

by csharp
vector array related question
Hello, I am working with vector arrays for first time, and I encountered a vector returning function in one of my assignments. Find's job is to return a v...
Oct 15, 2014 at 9:04pm
[4 replies] Last: Thank you problem solved. (by csharp)
by rayb20
help please! stuck on a program
I am new to C++ programming and I am still trying to grasp the concept of vectors, but my current project requires me to use the vector<> function to create a h...
Oct 15, 2014 at 8:53pm
[9 replies] Last: You know that for 6000 rolls that each face should appear 1000 times s... (by closed account 48T7M4Gy)
find the first multiples of 5
i want a program that find the first 5 multiples of 5 i want to see on my command when i run the program this the first multiple of 5 is 5 the second multipl...
Oct 15, 2014 at 8:40pm
[3 replies] Last: Use a for loop. http://www.cplusplus.com/doc/tutorial/control/ (by AbstractionAnon)
[SOLVED] Passing 2D array to a function
I am trying to pass a 2D double array and a 1D string array to a function. int main() { const int NUM_COMPANIES = 6; const int NUM_QUARTERS = 4; ...
Oct 15, 2014 at 8:29pm
[2 replies] Last: Typically when dealing with fixed-size arrays it is a good idea to typ... (by Duthomhas)
[HELP] Unresolved external symbol
The error code reads: Lab7a.obj : error LNK2019: unresolved external symbol "void __cdecl writeData(double (* const) ,class std::basic_string<char,struct std:...
Oct 15, 2014 at 8:21pm
[2 replies] Last: Thank you. Dumb mistake on my part. (by gunman353)
help!
Write a program that contains a menu which allows a user to choose any of the following functions: • function that asks the user for a number n and prints ...
Oct 15, 2014 at 8:21pm
[3 replies] Last: #include <stdio.h> #include <conio.h> using namespace std; int main()... (by lgill30)
C++ Data Structure_mystack.pop() & myqueue.serve() infinite loop of eof()
C++ Data Structure_mystack.pop() & myqueue.serve() infinite loop of eof() data file is like append 20 push 50 push 20 pop serve #pragma once #include <io...
Oct 15, 2014 at 7:31pm
[no replies]
regarding copy constructor
why there is need of copy constructor..actually what was the problem before that raise to the solution like "copy constructors". dont mind please explain me ...
Oct 15, 2014 at 7:17pm
[3 replies] Last: We need to have both copy constructor and assigment operator. When obj... (by MiiNiPaa)
Recursive procedure Help please!
So I have do use recursive procedure "poolita ()" in my program where input is dynamic sequence of positive integers called "jarjend" and positive integer call...
Oct 15, 2014 at 7:10pm
[2 replies] Last: Not clear what is supposed to be recursive. If poolita is supposed to... (by AbstractionAnon)
Y/N continue option
#include <iostream> #include <iomanip> #include <cstdlib> using namespace std; const int SENTINEL = 'Q'; // Type this to close our loop int main(...
Oct 15, 2014 at 6:31pm
[2 replies] Last: Okay, going to try that Lendra. Okay, that worked, so now all I've g... (by Sublyminal)
cout output overlaps in console
Hi everyone, I have been learning C++ recently, and decided to write a small program to practice a bit. I want my program to: 1. Pick a word "randomly" in a t...
Oct 15, 2014 at 5:56pm
[5 replies] Last: Hi, I have finally found a solution to my problems. I decided to post... (by BobMorane)
Reading data from file
I have been given some code for an assignment and i am having a problem reading in data from a file. A class has been given to us that is supposed to read this...
Oct 15, 2014 at 5:34pm
[no replies]
C program about transfering character to number
The result of this program is show 6 of the character that i input and transfer it into number and finally sum of the numbers what should be show: Please inpu...
Oct 15, 2014 at 5:34pm
[2 replies] Last: sorry the switch was wrong version. (by thomson101)
by slovit
Thanks*** But could use some help with fine tuning
how do I remove the extra line on displa notice if you enter five id like it too look like this * ** *** **** ***** **** *** ** * #include<iostream> ...
Oct 15, 2014 at 5:30pm
[1 reply] : nevermind got it (by slovit)
by slovit
need *FAST* HELP
May have waited to long to ask for help but here goes nothing my program is suppose to display a * triangle where you enter in the middle and it get smaller by ...
Oct 15, 2014 at 5:18pm
[14 replies] Last: got it exept ideally it would only have one row with five but progress... (by slovit)
by plp384
How do I keep the y coordinate with the x coordinate when bubble sorting
I am trying to sort x, y coordinates and am able to sort x column but not without losing the original y coordinate. How do I sort the x column while leaving th...
Oct 15, 2014 at 5:14pm
[4 replies] Last: I think that is possible but I have not tried it. (by plp384)
Problem with Nan output
When I run this code, the result is nan. Sorry, I don't want to upload my bad and lengthy code into thread but I dont know this unexpected output related to wh...
Oct 15, 2014 at 4:09pm
[4 replies] Last: I must add that there is no reason to have both regular_price and f... (by MiiNiPaa)
Question about dynamically created object arrays
Hi, I've got the famous problem, that I like to create an instance of class "parent" which has lot's of members, e.g. other child classes, but to this point of...
Oct 15, 2014 at 3:48pm
[11 replies] Last: thanks a lot, that helped!! (by Binary91)
Constructor to Receive Any Primitive Type
I'm trying to create a constructor that can receive any primitive type of int, double, or float, and it will convert these to an int. I am not sure if there is ...
Oct 15, 2014 at 2:52pm
[16 replies] Last: Thanks for the help. (by DreamTime)
by ejcpp
HELPPP PLEASE! Quick!
This is my project: Assuming there are no deposits other than the original investment, the balance in a savings account after one year may be calculated as: ...
Oct 15, 2014 at 2:18pm
[19 replies] Last: No problem... and of course! (by coltehrman)
October 2014 Pages: 1... 3637383940... 70
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.