Beginners - March 2014 (Page 13)

My Code Is Closing
 
#include<iostream> using namespace std; int main(void) { double dnumber1 = 0.0; double dnumber2 = 0.0; double dnumber3 = 0.0; ...
[1 reply] : I recommend taking a look at here: http://www.cplusplus.com/forum/beg... (by Ispil)
copmiler problem or an runtime error?
 
how can you know if the program has a runtime error or a compiler prob?
[1 reply] : If its a compiler problem, you'll know immediately. This is because a ... (by TwilightSpectre)
Not letting letters repeat in a 5 by 5 table
 
I'm having problems figuring out how I get letters not to repeat. My whole plan is to create a 5 by 5 matrix and have entry fill it with the word Happiness and...
[no replies]
by samop
Using two date arrays
 
Hi Like most people on this forum I'm teaching myself C++. This is my first post so hello everyone. I have two date/time structures which I'm populating, ...
[no replies]
command line isalpha check
 
how does one go about checking multiple segments of an argument, i can get it to work with the initial but anything after that i start getting false cout so ...
[1 reply] : I would write a "for" loop that placed each argument into a string. T... (by kooth)
by Mido14
Factorial Program
 
The Program doesn't work properly //factorial program which takes integer n and prints its factorial //and the operation repeats until n<=0 #include ...
[2 replies] Last: The Problem is :Write a c++ Program which takes an integer number n an... (by Mido14)
by ank011
error
 
Everytime I write even a basic C++ code and try to compile it, it gives me an error saying.. "No iostream directory found" and build is unsuccessful. Kindly h...
[2 replies] Last: And use int main() instead of just main() . And qualify cout and... (by booradley60)
pointer casting
 
I am trying to cast this but it gives me it is not a pointer int *j=new int; *j=i; my_Func (void *)j);// This is how i pass the argument to the ...
[3 replies] Last: It appears that I was made to look foolish by an edit. Look at his edi... (by Computergeek01)
by Eli26
3D matrix occurrences
 
Hello! I'm trying to use a 3D Matrix ( x x ), at the end I have to know the occurrences of this Matrix, I'm not experienced about 3D Matrix so I have difficulti...
[no replies]
Find index of max value of a 3-dimensional array (for each pixel)
 
I'm translating MATLAB code into C++ using OpenCV. I have an image for which I computed the gradient and then the magnitude like: if(size(I,3) == 3) [D...
[no replies]
by MrMoe
Design: How to manage output in a simulation
 
Hi, I'm writing a numerical simulation and I'm trying to keep the code as generic as possible in order to be able to adapt it and reuse parts of it later. I'm l...
[5 replies] Last: > Of course I could have an ostream that is passed as a reference to e... (by JLBorges)
How to Collect scores with Maps and Text files
 
This was the assignment i recieved. I tried giving a try but I'm stuck and need some guidance. I look everywhere trying to learn more about maps and f streams t...
[no replies]
string function in c
 
im confused in this program in turbo c, i would like to see the output of these program :) --> Question #1 Write a program using string functions that acc...
[2 replies] Last: im just a beginner in this program so i like to know the output of thi... (by newkind09)
by kei
array
 
Hello guys, This assignment ask for input the file, calculate sum, find the highest, sort, etc ., of array. I stuck on output function, which the professor re...
[no replies]
by sky3
Struct as a class
 
I keep getting an "error: no matching function for call to 'Vehicles::setYear()'" for each of my function calls Now that you've learned about classes, you've d...
[1 reply] : Sounds like you created a struct in lab2 and your teacher wants you to... (by giblit)
by Chubby
Class Array
 
Design a class that has an array of floating point numbers. The constructor * should accept an integer argument and dynamically allocate the array to hold that...
[9 replies] Last: oops i forget to delete it. (by Chubby)
Theater Seating Chart
 
I've been working on this theater seating chart here that can also sell tickets, but i'm at a bit of a loss in regards to the chart. I can't seem to figure out ...
[no replies]
Reaction Timer
 
Hey i am trying to create a reaction timer but having trouble with the code. It tests a reaction time of two opponents. so when the start button is puushed the ...
[1 reply] : We have no idea what software you're using with which libraries in wha... (by LB)
access violation when deleting pointer
 
I tried to delete the pointer i created but it shows "Access violation reading location 0x00000020." Did i put the delete in the wrong place? any help is app...
[4 replies] Last: You don't have a memory leak if you can still reference the data! (by LB)
Writting data to file
 
I am trying to read data from a file, test it, sort it, then write it to a file. I am able to sort the data but only the first lines that are sorted by the prog...
[3 replies] Last: I have re-posted the example code as a full code file to help make it ... (by Evan8632)
March 2014 Pages: 1... 1112131415... 79
  Archived months: [feb2014] [apr2014]

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