Forum: C++ Dec 19th, 2007 |
| Replies: 10 Views: 3,313 |
Forum: C++ Dec 19th, 2007 |
| Replies: 10 Views: 3,313 All I really changed is what you posted. Here is the full code:
#include <fstream>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string.h>
using namespace std;
const... |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 3,313 now I am getting
error C2664: 'view' : cannot convert parameter 1 from 'char *[100][4]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or... |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 3,313 Thank you. What do I put in the call to the function? I tried several variations, the one with the least amount of errors is this:
switch(input)
{
case 'V':
case 'v':... |
Forum: C++ Dec 18th, 2007 |
| Replies: 5 Views: 1,804 |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 3,313 I defined it in main(), do I have to define it in each function that uses the file? |
Forum: C++ Dec 18th, 2007 |
| Replies: 10 Views: 3,313 I've been working on a project for a few days now, and I am running out of time by trying to research everything I am doing. My task for this particular program is to create an inventory program that... |
Forum: C++ Dec 18th, 2007 |
| Replies: 5 Views: 1,804 |
Forum: C++ Dec 17th, 2007 |
| Replies: 5 Views: 1,804 Thank you. I am still having a problem though... I think I'm retarded :$
For some reason, the values in the array don't rearrange. Here's what I've got:
#include <iostream>
#include <iomanip>... |
Forum: C++ Dec 16th, 2007 |
| Replies: 5 Views: 1,804 So after putting together this program, I am trying to sort multiple words alphabetically using qsort (). I have been using examples of qsort () found on the web and trying to adapt them to my cause,... |
Forum: C++ Dec 16th, 2007 |
| Replies: 2 Views: 789 Thank you, I'll work with that. |
Forum: C++ Dec 16th, 2007 |
| Replies: 2 Views: 789 ok, so I have been working all day on this program and I am kinda stuck. The goal is to have a user input several words, then (ignoring case) alphabetize them (using qsort() only) and count how many... |
Forum: C++ Nov 28th, 2007 |
| Replies: 5 Views: 683 Aha! I figured it out on my own:
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std; |
Forum: C++ Nov 27th, 2007 |
| Replies: 5 Views: 683 So I started on the final section of my C++ project and got almost done until I re-read the requirements and saw this:
Do not use arrays.
*crap*
Is there any other way to store multiple... |
Forum: C++ Nov 26th, 2007 |
| Replies: 3 Views: 888 I figured it out, it is because I have while (!cin.oef |
Forum: C++ Nov 26th, 2007 |
| Replies: 3 Views: 888 here is the rest of the code, I just posted the relevant sections. That's why you got the errors.
Thanks
int randomGen (int *num1, int *num2)
{
*num1 = rand () % 10;
*num2 = rand () %... |
Forum: C++ Nov 26th, 2007 |
| Replies: 3 Views: 888 I am writing a program that generates 2 random #'s then asks the user to give the product of the 2. I have everything (close to) working except the input. I even added a "cheat" to display the answer... |
Forum: C++ Nov 26th, 2007 |
| Replies: 2 Views: 1,351 Here is minMax, it requests the min and max #'s from the user
int minMax (int *num1, int *min, int *max)
{
int a, b, c;
b = *min;
c = *max; |
Forum: C++ Nov 26th, 2007 |
| Replies: 2 Views: 1,351 I have a switch statement with 2 functions. I put 2 test cout statements, both of which get displayed, but only one function is actually performed. A third test cout statement is made in the second... |
Forum: C++ Nov 25th, 2007 |
| Replies: 3 Views: 2,256 thanks alot, I should be able to figure everything out from here. |
Forum: C++ Nov 25th, 2007 |
| Replies: 3 Views: 2,256 Hello, I am a new CS student and I am taking a C++ course. I am running into problems with a simple number generation program. Basically, I have to generate 2 single digit numbers and then request... |