Search Results

Showing results 1 to 40 of 67
Search took 0.02 seconds.
Search: Posts Made By: riahc3 ; Forum: C and child forums
Forum: C Oct 29th, 2009
Replies: 5
Views: 352
Posted By riahc3
Maybe I didnt understand someone correctly...
Forum: C Oct 28th, 2009
Replies: 5
Views: 352
Posted By riahc3
I think both of you just limit in another array the amount of chars in a char array when I want it to read/write the first letters then when it detects the first space (" ") and when it detects a...
Forum: C Oct 27th, 2009
Replies: 5
Views: 352
Posted By riahc3
Hey

I have a file named filetext.txt with the text:

One word
Two words
Three words
Four words

and the program should read this filetext.txt and output to another file called...
Forum: C Oct 23rd, 2009
Replies: 7
Views: 248
Posted By riahc3
Gaiety I did not understand what you mean/said so here is the code translated:


#include <assert.h>
#include <complex.h>
#include <ctype.h>
#include <errno.h>
#include <fenv.h>
#include...
Forum: C Oct 22nd, 2009
Replies: 7
Views: 248
Posted By riahc3
Thanks but now its just weird lol....

It copies in the file only the forth line and the seventh line...
Forum: C Oct 22nd, 2009
Replies: 7
Views: 248
Posted By riahc3
Hey

I have a text file (1.txt) with the lines:

This is line 1
This is line 2
This is line 3
This is line 4
This is line 5
Forum: C Oct 20th, 2009
Replies: 17
Views: 761
Posted By riahc3
I rather use the VS 2008 complier myself but AFAIK it is NOT standard (eg. it will comply exactly in another IDE/complier/etc).

I dont give a shit about gcc. Also, I rather use gcc, besides the...
Forum: C Oct 19th, 2009
Replies: 17
Views: 761
Posted By riahc3
Yet VS 2008's C compiler is different than a standard C compiler.


Please forgive me for hurting your feelings. I did not know you get so emotional over the truth.
Forum: C Oct 19th, 2009
Replies: 17
Views: 761
Posted By riahc3
OK....



Exactly. I want the best complier that is compatible with C89. I have no intrest in C99.


Well if im "picky picky", then I invite you to go ahead and buy the complier for me and...
Forum: C Oct 19th, 2009
Replies: 17
Views: 761
Posted By riahc3
Really? Then how can I set in VS 2008 to use gcc and gdb as the debugger (including the rest of the minigw compilation which is the port of gcc to windows)


Simply because it conforms to the...
Forum: C Oct 19th, 2009
Replies: 17
Views: 761
Posted By riahc3
Eclipse simply sucks for C. Period. Configuring it is difficult.
Forum: C Oct 19th, 2009
Replies: 17
Views: 761
Posted By riahc3
Hey

I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it...
Forum: C May 19th, 2009
Replies: 8
Views: 782
Posted By riahc3
Im using wxDev-C++ 6.10.2 using the default GCC compiler
Forum: C May 18th, 2009
Replies: 8
Views: 782
Posted By riahc3
Hmm MessageBox(0,"Message body", "Message title", MB_OK ); doesnt work. Ive included windows.h but nothing. It complies with no errors and no warnings but just (blank program) tells me press any key...
Forum: C May 18th, 2009
Replies: 8
Views: 782
Posted By riahc3
Damn it is a shame that there is no standard function for it and it is only avaliable in Windows. Thanks anyhow :)
Forum: C May 13th, 2009
Replies: 8
Views: 782
Posted By riahc3
Hey

I was wondering how to generate a Windows popup in C. I mean by "Windows popup" as in (for example) when you do a net send message to a PC, a simple Windows popup comes up on the PC you sent...
Forum: C Mar 9th, 2009
Replies: 3
Views: 494
Posted By riahc3
It is enabled and it doesnt seem to work. Could you write a quick code example which works for you so I can test it out? I thought my example worked but maybe it doesnt.
Forum: C Mar 9th, 2009
Replies: 3
Views: 494
Posted By riahc3
Hey

In VS, you can in a struct do:


struct test{
int tes;
}tt;
Forum: C Feb 17th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
Forum: C Jan 29th, 2009
Replies: 8
Views: 457
Posted By riahc3
Can't be a card because you know there are only 1-12 cards. This number can be infinite.

And yes I already thought of the array but I wanted to check if there was a easier/better way. I guess I'll...
Forum: C Jan 28th, 2009
Replies: 8
Views: 457
Posted By riahc3
Obviously, this is the solution the problem is how to implant it.
Do I make another array storing all the numbers?
And/or how?
lets say we have player[n]
player[1] says 1 (because he typed it in)...
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
n=((int) ((1+(3*numberofplayers)) * (rand() / (1.0 + RAND_MAX))) + 0) ;

Works pretty well :) numberofplayers is a global variable so I dont need to pass it.


Thank you very much to everyone...
Forum: C Jan 28th, 2009
Replies: 8
Views: 457
Posted By riahc3
Forum: C Jan 28th, 2009
Replies: 13
Views: 748
Posted By riahc3
Even if you have no idea about programming like this guy does?

Obviously, he doesnt like programming either so a course with indivdual (sp?) help will help him.
Forum: C Jan 28th, 2009
Replies: 11
Views: 560
Posted By riahc3
BTW use wvDev-C++; Much better IDE.
Forum: C Jan 28th, 2009
Replies: 11
Views: 560
Posted By riahc3
How can you put p=o?

P is a integer. Do you even know what a integer is?
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
Hmm I think what Im looking for is:


n=((int) ((1+(3*numberofplayers)) * (rand() / (1.0 + RAND_MAX))) + 0) ;
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
Hmm Im not sure if I should start another topic since this is a different topic but:

Right now I was using:


n=rand()%(3*numberofplayers+1);


How can I adapt that to
Forum: C Jan 28th, 2009
Replies: 8
Views: 1,091
Posted By riahc3
Well I learnt something from this thread


printf(
"CHECKBOOK\n"
"=========\n"
" ^\n"
);

Had no idea you could do that in C.
Forum: C Jan 28th, 2009
Replies: 13
Views: 748
Posted By riahc3
My suggestion:

Take a C course in some center in your city. WILL help you out...
Forum: C Jan 28th, 2009
Replies: 11
Views: 560
Posted By riahc3
This complys:


#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
#include<math.h>

void fnlogincheck();
Forum: C Jan 28th, 2009
Replies: 11
Views: 560
Posted By riahc3
WOW....

I have no idea what you are trying to do but you are WAY over your head.
1: Learn to use "tab"
2: password[c]= password[6] with no ; at the end? (Thatll problably solve 99% of the...
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
From tests, it seems range just tells you how many numbers it generates.

If I put range 5, it generates 5 numbers which are 0,1,2,3 and 4.

Is this correct?
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
Thanks WaltP but I dont get your function too well. Sorry.

I understand that "Start" is the number (including itself) I want to start from. But I fail to see range as in the first example the...
Forum: C Jan 28th, 2009
Replies: 8
Views: 457
Posted By riahc3
Hey

The title is a bit confusing so Ill explain.

I have a function that returns random values from 0-4 for the computer (which has numberofplayers). Lets say number of players is 2. One is me...
Forum: C Jan 26th, 2009
Replies: 12
Views: 1,982
Posted By riahc3
Hey

Im already generating numbers correctly from 0 to MAX_INT. But Id like to know how can I change that range (including negetive numbers)

And while already on the subject, why does this code...
Forum: C Jan 21st, 2009
Replies: 13
Views: 843
Posted By riahc3
I thought you ment to ask you guys nicely.
Forum: C Jan 21st, 2009
Replies: 4
Views: 555
Posted By riahc3
The correct answer is a variable....

It can be changed to 5, 10, 100000000000....depends.
Forum: C Jan 21st, 2009
Replies: 4
Views: 555
Posted By riahc3
Lets say people say

1,3,4,6,9,10,44

And the correct answer is 5. How do I calculate the closest number to 5? Thanks.
Forum: C Jan 21st, 2009
Replies: 13
Views: 843
Posted By riahc3
I already asked nicely.


And about learning the language instead of the compiler, I dont care much as programming is not something I want to dominate and dont see it as my possible future career.
Showing results 1 to 40 of 67

 


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

©2003 - 2009 DaniWeb® LLC