Beginners - April 2012 (Page 9)

by Jkipod
Favorite number help
 
i came up with this and it works but i would like it not to close when the user enters the wrong number but i dont know how to get it to restart i made it in C...
[1 reply] : Please, use code tags. Press the button that looks like [<>] on the ri... (by closed account zb0S216C)
by PRW56
organizing class files
 
This is the continuing problem I have been having in C++, I use the CodeBlocks IDE, I am trying to get class files seperated into header files, the only example...
[16 replies] Last: so the entirety of the #include files has to be in the same file? I a... (by kbw)
Something wrong with fstream
 
I wrote a program which reads a file containing roman numerals and translates it into integers. I am sure that my coding is done well but the only thing that se...
[2 replies] Last: Thank you very much coder777. And yes, I will be sure to do that in th... (by needhelp2345)
by moot1
doesnt work
 
Why doesn't this program do what its supposed to do in c but it works in c++? #include <iostream> // declare all of the libraries #include <cstdlib> #incl...
[7 replies] Last: on the c one? the answer for me is always 0 or -0 (by moot1)
pointers to derived and base classes
 
I'm doing some ongoing work on a project, the card game "War," and I've run into a strange situation that I hope to get some clarification on. class Player i...
[5 replies] Last: operator new - allocates memory but does not call constructor placem... (by LB)
by Macki
passed by reference but not getting it(vectors and sorting)
 
I was assisted by Peter87, about passing by reference regarding vectors and sorting.. I attempted another try at introducing mode of array by way of vectors, I...
[2 replies] Last: Ok .. will let you know if it works.. later at night have to go to cal... (by Macki)
by I3lue
Help with 2d array
 
Hi, I'm trying to sort a 2d array in increasing order and stores them in a one dimensional array (from low to high). 16 22 99 4 18 -258 4 ...
[10 replies] Last: I know that but in my language we use vector for both array and std::v... (by uhraurhua)
Directory
 
I was trying to get to a directory and I know that you cd "directory" but instead I vi "directory". How can I change it back to a directory? If you need more in...
[no replies]
Need help finishing the ARRAY program.
 
Objective: The purpose of this project is to expose you to: One Dimensional arrays, input/output of arrays and manipulating arrays. Problem Specification: ...
[1 reply] : #include <iostream> #include <iomanip> #include <string> using namesp... (by jenny22)
by iwr22
not passing resiststring correctly
 
The program works great except for passing the Resiststring to the Convertcolor function. The first three band colors are returned as the default (gold). I've l...
[2 replies] Last: Thanks for the tip on proper posting. I thought the error had to be in... (by iwr22)
Help Transposing arrays.
 
Hi everyone I'm pretty new to C++ and I'm still getting my head round a lot of the logic behind it all. I need a bit of help with this task: 1. Create an ar...
[11 replies] Last: Yeah benny. Think about your code logically. What is the point of temp... (by Vlykarye)
how to pass complex number array to a function
 
Hi guys, I am a beginner and have a problem now, I have defined a complex number class which defined the complex numbers and operations (+,-,*,/), now I want...
[2 replies] Last: Hi webJose, Thanks a lot anyway. I did test a lot, and the error in... (by flyinglu)
Number to Date forumla help
 
I need help creating a formula that will return a number 1-12 when the user enters 1-365. The point is to figure out what month a user entered day with fall in....
[4 replies] Last: Nevermind, I just got it. Thanks for the idea!! (by Grant22)
Need help on the arrays project =[
 
Can anyone please help me out on this program.. Objective: The purpose of this project is to expose you to: One Dimensional arrays, input/output of arrays a...
[7 replies] Last: Check my previous post, I edited it. You need to pass in an array, no... (by Ashishduh)
moving characters
 
hello everyone..i just want to know how to move a character in c++. if you press arrow down key it will move down if you press arrow up key it will go up and so...
[4 replies] Last: tnx for your help..xD (by lawliet06)
Hey compiling problems.
 
So I am working with arrays for the first time and I am extremely confused. I'm getting a ton of compiling errors. Any help? Thanks #include <iostream> #inc...
[2 replies] Last: Okay I made a few adjustments however, I don't know how to indicate th... (by student1991)
by bugdad
How to fill a 2D array with numbers from file ?
 
Hey guys, I am new to the c++ world. Since today i've done all my work with simple shell scripting using gawk and sed. But the work i have to do takes way to lo...
[3 replies] Last: Your problem is that you are using the getline() function instead of g... (by Ashishduh)
Read chars from a text file
 
I have a text file that contains a list of names seperated by a space and ends with a dash: Like this: Pete Vince Jam March June October - I need to explode...
[2 replies] Last: Ah, I knew it was something incredibly simple and stupid I did. Refere... (by false74)
how to use "max_element"
 
hello everybody, can anyone tell me how to use "max_element" of the STL algorithm for finding the maximum in each line of a matrix (2D array) of doubles? ...
[3 replies] Last: Thanks ;) (by nadir CoCo)
Array Help :/
 
My assignment is as follows: 4. (Program) Write, compile, and run a C++ program that stores the following numbers in an array named prices: 9.92, 6.32, 12.63,...
[6 replies] Last: #include <iostream> using namespace std; int main() { double pric... (by jenny22)
April 2012 Pages: 1... 7891011... 66
  Archived months: [mar2012] [may2012]

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