Beginners - March 2012 (Page 30)

Functions, twoDarrays and char's
 
void loadSeats(char ) { const int ARRAYROWS = 15; const int ARRAYCOLUM = 30; char twoDArray ; fstream seatingFile; seatingFile.open("seat...
[2 replies] Last: thanks bud (by Hasnain Attarwala)
I'l need some help with my quick sort program
 
Please can someone help me out with my quick sort program in C (I wish to sort in both ascending and descending order)...and tell me where i have gone wrong. ...
[no replies]
Finding the area of a rectangle using pass by reference?
 
I got a homework assignment a couple of days ago. We received the code below, and were asked to complete each function. #include <iostream> using nam...
[1 reply] : you pass by reference by doing data_type& variable_name this in a way ... (by ui uiho)
trouble with ASCII
 
I am having trouble with this assignment. I am not sure how to exactly convert a number into the ASCII equivalent. Ask the user to enter a number between 65...
[1 reply] : http://stackoverflow.com/questions/4629050/convert-an-int-to-ascii-cha... (by ResidentBiscuit)
insertion sort in descending order c++
 
I really need some help writing an insertion sort program in descending order in C (one that generates random numbers of range o to 1000)
[3 replies] Last: I already have this program below(It sorts in ascending order) but i ... (by cire)
New Guy Here :)
 
I'll give a little background. I'm a decent Excel/VBA programmer developer, although not for pay, but I hold my own. I'm looking for a new endeavour, so her...
[1 reply] : There's tons of tutorials out there. This site has a pretty good serie... (by ResidentBiscuit)
Array within an array of structs?
 
Okay, so my last program calculated a preventive maintenance schedule for 6 machines based on input from a file. There were to be 6 reports - one per machine- ...
[6 replies] Last: Yes. I have done that, and I think I set it up to sort it after that,... (by ErinCorona)
a function that computes the alternating sum of all elements in an array (1,2)
 
I'm working on a homework require me to write a function that print out alternating sum of all elements enter in an array. Followin is what I got so far. #i...
[20 replies] Last: umm, i'm pretty sure this works. I did it for 10 random numbers betwe... (by Fumbles)
Computing Loans
 
#include <iostream> #include <cmath> #include <iomanip> using namespace std; double firstfunction (double Ray, double Loan, double interest, double m...
[3 replies] Last: 1: look here Ray = firstfunction (Loan, interest, ments, tym, rate, R... (by Shinigami)
Can I use an array within an array of structs?
 
My last program calculated a preventive maintenance schedule for 6 machines based on input from a file. There were to be 6 reports - one per machine- generated....
[3 replies] Last: http://www.cplusplus.com/forum/beginner/64912/ (by ErinCorona)
error 2062: type 'void' unexpected.
 
this is supposed to draw a random 50x50 square on the screen the have the user guess the center point of the square and draw a circle with the radius of 25, if ...
[15 replies] Last: i removed the int centerX, centerY from line 56 and it compiled with n... (by ironreaper)
Program doesn't just close?
 
Okay, so, I haven't worked with C++ in a very long time, so I figured I'd make a simple(Well, medium difficulty for me, since I don't know much about making fun...
[6 replies] Last: In the while loop, at the end of each " if " statement, you can write ... (by djalexandrei)
Question about debugging arrays
 
I am debugging big project in netbeans ide but I am facing some problem like this in main(int argc, char *argv ) I want to see values of *argv array but I...
[no replies]
Character Classification
 
,,,
[1 reply] : vvv (by baranankara06)
passing a two-dimensional array through a function?
 
If my explanation isn't clear enough read #9 http://books.google.com/books?id=LUJbzQR7KnoC&pg=PA322&lpg=PA322&dq=0.3*grade1%09%2B%090.2%09*grade2%09%2B%090.2...
[1 reply] : If you have s after your array, you are either declaring it, or acces... (by hamsterman)
Function Overloading - Automatic Type Conversion
 
#include <iostream> // handles input and ouput statements using namespace std; void f(int x); void f(double x); // function prototypes int main() { ...
[1 reply] : What am I looking at? What's your question? Wazzak (by closed account zb0S216C)
When using strings in Classes..
 
I have a question concerning using strings in classes. First, what's the difference between #include <string> and #include <cstring> . Second, when using st...
[12 replies] Last: the compiler is saying somethign about the 'string' in the class or ... (by ne555)
stupid me or stupid Euler method?
 
Hi all, One more question about my Euler method problem. The usual Euler method is not energy conserving (it diverges with time), so it has to be modified. If ...
[10 replies] Last: Oh, yes that's cool, exchanging the lines works and I am getting a per... (by HomesickAlien)
by Nj3355
output which variable number is stored in?
 
Hi I'm new here and I just have a quick question. I was solving a problem which asks you to input three numbers and find the smallest, middle and largest of the...
[1 reply] : If you have something like this in your code: cout << n1 /*or n2 or n... (by LB)
Convert simple char to int ? (read from binary)
 
I have data.txt it contains 73167176 #include <fstream> using namespace std; int main() { fstream fin; fin.open("data.txt",fstream::in); ...
[5 replies] Last: Sure this very simple i think this will work. int atoi(const cha... (by naqib)
March 2012 Pages: 1... 2829303132... 71
  Archived months: [feb2012] [apr2012]

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