Beginners - October 2015 (Page 6)

Calling 2d array in main
 
I am trying to call two 2d arrays of unknown size into the main but I keep getting a compiler error #include "stdafx.h" #include <iostream> using na...
[1 reply] : the Gauss function is expecting to receive an array with Nx100 size fo... (by xenovia12)
by Dkob1
Constructor C++
 
When does a constructor always run? Which constructor is called when a class array variable is defined, without an initialization list?
[1 reply] : A default constructor runs when you create an instance from a class. U... (by pearlyman)
Copying between two-dimensional dynamic memory
 
I need to write a program that will read in an unlimited number of names that are an unlimited number of characters long using dynamic memory. Things go smoothl...
[1 reply] : sizeof(temp2) is only the size of the pointer. If you want to copy t... (by coder777)
Newbie Working on a Numerical Conversion File
 
Hey there everyone! I'm a newbie here, just started coding with C++ a few weeks ago since we started learning about it in lecture. I've been doing a few side pr...
[3 replies] Last: If it works do it. It's a bit like the use of using namespace std; ... (by closed account 48T7M4Gy)
by Navu
Error in Circular Queue
 
I am not getting any error in the code below but the output is not as desired; that is, when I insert more than 1 values in the array, I only get the first valu...
[4 replies] Last: Hi, Can you please read the article about code tags, and edit your fi... (by TheIdeasMan)
by Dkob1
Arrays & constants
 
In good coding practice, how are named constants and arrays related? Why is this good?
[2 replies] Last: thanks (by Dkob1)
Error No matching function to call
 
I've been working on my first experiences with functions and from my textbook I believe that this void function should properly compile and I keep getting the e...
[5 replies] Last: [quote=Symphoneee]Is there a way I can give you a good rating or anyth... (by TwilightSpectre)
0hh1 puzzle game
 
I'm trying to create a puzzle-like, sudoku-style game called "0hh1", but i seem to keep getting stuck on this one fuction. The game doesn't allow the user to pu...
[no replies]
Function to return sizeof()
 
So I know how to get the size of a something. cout << sizeof(char); However, I need to write a function that finds the sizeof for these different value...
[2 replies] Last: Thank you, I forgot about using a void function, I was trying to use a... (by AmericanJeepR)
Generating Random Numbers..
 
I'm confused, I was under the impression that: rand() % (16+1) would generate random numbers between 1 to 16, yet for some reason it is generatin...
[1 reply] : Ahh, scratch that. Apparently you can't put the numbers in parenthesis... (by shamieh)
Multiplication isn't working correctly
 
Hi. Beginner (obviously) here with a problem that's got me stumped. I'm supposed to create a function that takes the total income entered by the user, takes 10 ...
[9 replies] Last: Yeah, chervil was right. I missed the point he/she was making in the f... (by closed account 48T7M4Gy)
Removing commas from an input file before rewriting them to an output file.
 
Hello, Working on a hw assignment due in a couple days, program must read in integers from a file that may or may not have embedded commas in them, i.e 10 or 1...
[2 replies] Last: http://www.cplusplus.com/reference/istream/istream/ignore/ (by closed account 48T7M4Gy)
Help Please! File read to and from issues and other stuff
 
Please Help!!! I am fairly certain my read to and from the file is wrong and because of that I have no doubt my averaging is wrong... however I'm pretty new to...
[1 reply] : The way to know if it's reading the file right and figure out the aver... (by SamuelAdams)
I NEED HELP QUICK! I do not know where to start or finish when fixing the errors in this code
 
Can someone please help me fix the errors of this code? Fix the following code and use it to find the two roots for the quadratic equation X2+ 10X- 11: // ...
[1 reply] : All you have to do is fill in the 3 parameters in the line: cout << A... (by closed account 48T7M4Gy)
error LNK1104 - can't run any code
 
Whenever run code by clicking 'Start Without Debugging' I receive an error that says: "error LNK1104: cannot open file 'C:\CS\Project1\Debug\Project1.exe'" ...
[4 replies] Last: If it's all fixed then that's great. If it's not maybe you have to run... (by closed account 48T7M4Gy)
Logical Error! Help Appreciated!!
 
These are member functions, where mm, dd, and yy are the only data members. For some reason when I run it, the first object is ok, but then on the second object...
[1 reply] : Valid indexes for an array with size n are 0 through n-1. How is line ... (by cire)
Array and input\output files
 
I am new to c++ and this website, so I will try to do this correctly. My problem is to take two input files from the user, not knowing how many integers exist o...
[no replies]
i dont understand
 
the program itself works well; however, only for works, the other does not execute. Yet i do not want the loop to showChoices(); during the for loop. What i r...
[2 replies] Last: When choice is 2, you don't give the user a chance to enter another ... (by cire)
Code for time?
 
Hello, I recently added a loading screen in my program, I just need to have a code like a time countdown or a percentage saying if its already %100 the game is ...
[1 reply] : Of course it's possible... http://www.cplusplus.com/reference/ctime/ ... (by pearlyman)
How to Restart a Program
 
I have made a calculator that, from the table of contents you can select a calc. However once you make a calc selection you cannot reselect another calculator w...
[2 replies] Last: Well i wanted it so that the user must only enter something if he/she ... (by ModcaFox)
October 2015 Pages: 1... 45678... 57
  Archived months: [sep2015] [nov2015]

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