Search Results

Showing results 1 to 26 of 26
Search took 0.01 seconds.
Search: Posts Made By: Freaky_Chris ; Forum: C and child forums
Forum: C Feb 16th, 2009
Replies: 12
Views: 1,713
Posted By Freaky_Chris
ArkM this is the C forum....really should be using printf() so yer lol, but still i thought it was iostream.h in C?

then again I think im just going crazy xD
Forum: C Feb 9th, 2009
Replies: 12
Views: 1,713
Posted By Freaky_Chris
Also it should be int main and return 0 :)

Chris
Forum: C Feb 8th, 2009
Replies: 12
Views: 1,713
Posted By Freaky_Chris
Should be iostream.h and you should be using std::cout

Chris
Forum: C Feb 4th, 2009
Replies: 3
Views: 305
Posted By Freaky_Chris
when wraped in double quotes it is taken that the header file may be located in the same directory as the source file
Forum: C Feb 4th, 2009
Replies: 3
Views: 305
Posted By Freaky_Chris
Be sure to make sure all of the files are in the same project, not indervidual just indervidual files, otherwise the compiler will not know to use myfile.c.

Chris
Forum: C Feb 4th, 2009
Replies: 4
Views: 1,145
Posted By Freaky_Chris
void *malloc ( size_t size );This is the function prototype, and as Agni stated it returns a void pointer. Since this is the function prototype you do not use this syntax when calling the function...
Forum: C Feb 4th, 2009
Replies: 3
Views: 346
Posted By Freaky_Chris
srand((unsigned)time(NULL)); is what most people use if I am correct, I know for sure I have always used it and always will, unless someone puts forward a good argument not to use it.

Just...
Forum: C Jan 30th, 2009
Replies: 12
Views: 1,621
Posted By Freaky_Chris
Please don't PM code solutions. I suggest re-reading the forums rules too. Just to make sure you understand how we work when it comes to handing out code.

Secondly, code solutions are best in the...
Forum: C Jan 28th, 2009
Replies: 12
Views: 1,621
Posted By Freaky_Chris
your desciption indicates that you will be given a list of random numbers that will be in no particualr order. thus you cannot just loop through the array backwards. You will need to perform some...
Forum: C Jan 19th, 2009
Replies: 13
Views: 12,525
Posted By Freaky_Chris
Forum: C Jan 18th, 2009
Replies: 13
Views: 12,525
Posted By Freaky_Chris
Please use code tags!

Amen to Salem being a bot ;P

You posted it everywhere...pretty lame lol. What amazes me is how you managed to come up with code for permutations, but cannot write what...
Forum: C Jan 18th, 2009
Replies: 7
Views: 442
Posted By Freaky_Chris
Forum: C Jan 18th, 2009
Replies: 7
Views: 442
Posted By Freaky_Chris
You can do it in one array char array[3] = {'a', 'C', 'b'};
char temp;
temp = array[2];
array[2] = array[1];
array[1] = temp;

Chris
Forum: C Jan 18th, 2009
Replies: 7
Views: 442
Posted By Freaky_Chris
For basic ASCII which I presume you will be using, then you can just check the character range. and swap accordingly. IE, 65-90 is capital etc

Chris
Forum: C Dec 6th, 2008
Replies: 4
Views: 6,194
Posted By Freaky_Chris
Either way very very old thread, don't drag anymore up SRaj

Chris
Forum: C Dec 4th, 2008
Replies: 7
Views: 907
Posted By Freaky_Chris
Indeed, I happen to know of a rather popular Open hacking forum...i use it from time to time for some more obscure code snippets to learn from, normally things that involving working with OS...
Forum: C Dec 1st, 2008
Replies: 5
Views: 491
Posted By Freaky_Chris
Before you do the above, migrate to the C forum

Chris
Forum: C Oct 16th, 2008
Replies: 8
Views: 1,547
Posted By Freaky_Chris
I would question what, i think he may have problems installing a compiler on his pc let alone managing to write a simple hello world application, since he seem's to struggle with clicking and read.
...
Forum: C Oct 11th, 2008
Replies: 7
Views: 767
Posted By Freaky_Chris
That is too true, i'm glad you pointed that out. strtol() may prove helpful to me thanks.

Chris
Forum: C Oct 10th, 2008
Replies: 7
Views: 767
Posted By Freaky_Chris
If you are looking to convert strings and into integers, you may want to check out the atoi() function.

Chris
Forum: C Oct 10th, 2008
Replies: 6
Views: 1,188
Posted By Freaky_Chris
strtok() would help. read some online documentation on it.

It splits a string based on a delimiantor
such as a pipe, this would allow you to retrieve all the different ssctions between the...
Forum: C Oct 5th, 2008
Replies: 9
Views: 891
Posted By Freaky_Chris
No he is wanting to print all the possible outcomes when a coin is flipped X times
Forum: C Oct 5th, 2008
Replies: 9
Views: 891
Posted By Freaky_Chris
Why would one need to generate a random number to display all the permutations?
Forum: C Oct 4th, 2008
Replies: 9
Views: 1,636
Posted By Freaky_Chris
Doing it a long hard way here is a brief explanation.

If you have a integer input then you first need to split it into indervidual numbers i.e

11010111

would become

1 1 0 1 0 1 1 1
Forum: C Oct 1st, 2008
Replies: 16
Views: 1,320
Posted By Freaky_Chris
You are still trying to print out the value of a before you have retrieved its value from the user via scanf()
Forum: C Sep 27th, 2008
Replies: 6
Views: 643
Posted By Freaky_Chris
Hmm lets try adding code tags, so it becomes a bit more readable. Also couldyou give us a little clue as to what problems you are actually having cause thats alot to look over when we don't know what...
Showing results 1 to 26 of 26

 


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

©2003 - 2009 DaniWeb® LLC