Search Results

Showing results 1 to 40 of 49
Search took 0.01 seconds.
Search: Posts Made By: nicz888
Forum: C++ Dec 19th, 2007
Replies: 4
Views: 1,085
Posted By nicz888
no, how should i fix it, i want the code to create a dat file so i can see what is being store after i use it. i check the folder where the cpp file is store and there is not a dat file?



you...
Forum: C++ Dec 18th, 2007
Replies: 4
Views: 1,085
Posted By nicz888
Forum: C++ Dec 18th, 2007
Replies: 4
Views: 1,085
Posted By nicz888
Sorry, this is going to be a very long post :$

first of all, here is my codes:

Header File

struct hardware
{
int record;
char name[100];
Forum: C++ Dec 17th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
here is the qsort function and it takes no argument


void sort_cstrings_example()/* sorting C-strings array using qsort() example */
{
char *strings[] = { "Zorro", "Alex", "Celine", "Bill",...
Forum: C++ Dec 17th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
how can i break down my STRING into this format?

char *stringsB[] = { "This","is","a","test"}?

so i can use the qsort function.
Forum: C++ Dec 17th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
1)so, my final string looks like this
bill loves to eat
2)and now i need to qsort them
i have been giving a set of qsort codes
but their initial declaration for the needed to pass argument is...
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
can i post a different question on the same thread?
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
thanks. i got this part of my code working.
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
i notice that i can change both line 20 and 21 to
strcat_s(string, " ");
and
strcat_s(string, temp);
that will get rid of all the warnings.

and the result is the same.
but my "bill" is still...
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
sorry about changing my original post

i think i fix the first problem i have and now this weird character that is showing up, how do i fix that?
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
i notice that when i change the value in line 10.
string[x]

the output will change.
i input bill loves to eat
my output is @ loves to eat ??
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
Forum: C++ Dec 16th, 2007
Replies: 15
Views: 1,900
Posted By nicz888
// Stopping input with an empty string
#include <iostream>
using namespace std;
#include <cstring>

int main()
{
int i = 1;
char temp[80];
char string[80]; // room for 255 strings
Forum: C++ Dec 12th, 2007
Replies: 5
Views: 865
Posted By nicz888
To A.D.:

One more question.

How do i use qsort to sort the tokenized string into alpha order??

thanks.
Forum: C++ Dec 10th, 2007
Replies: 5
Views: 865
Posted By nicz888
TO A.D.


How do i compare the strings to check if any words are the same?

also how should put the tokenized string into a array, a loop?
Forum: C++ Dec 10th, 2007
Replies: 5
Views: 865
Posted By nicz888
#include <iostream>
using namespace std;

void main ()
{
char *tokenString, *c, string[80];

cout << "Input a string: ";
cin.getline(string, 80);
cout << "The entered string...
Forum: C++ Nov 28th, 2007
Replies: 9
Views: 1,023
Posted By nicz888
again
here is what i want it to do
1)choose a function and then enter two number for interval boundary.
2)unless user enter two 0, it will keep asking for two "new number" to as the interval and...
Forum: C++ Nov 28th, 2007
Replies: 9
Views: 1,023
Posted By nicz888
i am posting my new code here, because i dont have the option to edit my original code.



#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>

using namespace std;...
Forum: C++ Nov 28th, 2007
Replies: 9
Views: 1,023
Posted By nicz888
ok i fixed the loop part. now can you help me with this question.
Forum: C++ Nov 27th, 2007
Replies: 9
Views: 1,023
Posted By nicz888
will, when i enter s or S my loop should said ok you picked function square, now move on and chose two numbers.

but what really happen here is when i enter s or S, my loop said sorry wrong choice...
Forum: C++ Nov 27th, 2007
Replies: 9
Views: 1,023
Posted By nicz888
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>

using namespace std; // prototype and name space declaration
int sqr(int);
int cube(int);
int fourthPower(int);...
Forum: C++ Nov 27th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
yes q means q, but when the prompt is brought up the second time after i enter 0 and 0. when i enter q it doesn't end the program, which is not right.
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
2) if i take line 77-92 away.
if i enter q the program will end
if i enter s it will prompt me to enter low and upper bound
if i enter s, 1, 2, 0 and 0
it will brings me back to the original...
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
1) line77-92
i want to validate the user input. so i set up a loop that only s,S,c,C.....q,Q can be accepted.
but when i inputs s it is also giving me a wrong option output. which is not suppose to...
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>

using namespace std; // prototype and name space declaration
int sqr(int);
int cube(int);
int fourthPower(int);...
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>

using namespace std; // prototype and name space declaration
int sqr(int);
int cube(int);
int fourthPower(int);...
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
one more quick help this

while ( input < 0 || !cin.good() ) // validation
{
cout << "Positive Numbers Only.\n";
cout << "Enter Again: ";
cin.clear();
cin >> input;...
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
if ((qNum % 10) == 0)
{
cout<<"RN " << rightNum<<endl;
cout<<"WN " << wrongNum<<endl;
cout<<"QN " << qNum<<endl;
}


any good suggestion of where i should place these at??
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
Oh i see i think i need to place the return at the last line of the if ()
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
1) i think i will not need to end this because i need to display the % right and wrong after every 10 question.
2) why is my 33-39 not working, i try to tested it by placeing a cout<<"A" and it...
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
int main()
{
srand((unsigned)time(0)); // random number generator

while(mathTest())
;

}

bool mathTest() //main function
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
1) i change the code with all the suggestion provided.
2) my only concern left for this program is how do i end i want to use E or e.
like this if(input == int(e) does it work?
3) also it seems...
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
#include <cstdlib>
#include <ctime>
#include <iostream>

using namespace std; // prototype and name space declaration
bool testAnswer(int, int, int);
void correctOutput();
void...
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
how do you add lines to my code?? it is very neat.
Forum: C++ Nov 25th, 2007
Replies: 24
Views: 1,870
Posted By nicz888
#include <cstdlib>
#include <ctime>
#include <iostream>

using namespace std; // prototype and name space declaration
bool testAnswer(int, int, int);
void correctOutput();
void...
Forum: C++ Nov 24th, 2007
Replies: 5
Views: 693
Posted By nicz888
what is dvector,
is there any other way of doing this function beside vector, i don't think we have covered that in my course yet??
Forum: C++ Nov 24th, 2007
Replies: 5
Views: 693
Posted By nicz888
how would i write a maximum number test function that will take any number of arguments and returns the greatest of them???

i know i need to used recursion function, but how should i declare the...
Forum: Storage Nov 10th, 2007
Replies: 19
Views: 96,760
Posted By nicz888
my dell laptop just got this error message tonight, i run the diagnosis test and an error message pointed to the Harddrive, it said DST short test something like that.
i am running window vista...
Forum: C++ Nov 5th, 2007
Replies: 1
Views: 653
Posted By nicz888
never mind i got it. thanks
Showing results 1 to 40 of 49

 


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

©2003 - 2009 DaniWeb® LLC