Search Results

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: picklesandmayo
Forum: C++ Dec 19th, 2007
Replies: 10
Views: 3,313
Posted By picklesandmayo
Forum: C++ Dec 19th, 2007
Replies: 10
Views: 3,313
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Solved: qsort Confusion
Views: 1,804
Posted By picklesandmayo
Thanks! It works now!
Forum: C++ Dec 18th, 2007
Replies: 10
Views: 3,313
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Solved: qsort Confusion
Views: 1,804
Posted By picklesandmayo
Forum: C++ Dec 17th, 2007
Replies: 5
Solved: qsort Confusion
Views: 1,804
Posted By picklesandmayo
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
Solved: qsort Confusion
Views: 1,804
Posted By picklesandmayo
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
Posted By picklesandmayo
Thank you, I'll work with that.
Forum: C++ Dec 16th, 2007
Replies: 2
Views: 789
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
I figured it out, it is because I have while (!cin.oef
Forum: C++ Nov 26th, 2007
Replies: 3
Views: 888
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
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
Posted By picklesandmayo
thanks alot, I should be able to figure everything out from here.
Forum: C++ Nov 25th, 2007
Replies: 3
Views: 2,256
Posted By picklesandmayo
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...
Showing results 1 to 21 of 21

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC