Hello,
I know almost nothing about pascal, but I found some reference online.
How difficult is it to convert "Algorithms + Data structures = Programs
by N. Wirth"'s examples to C?
Do you...
Type: Posts; User: fsx
Hello,
I know almost nothing about pascal, but I found some reference online.
How difficult is it to convert "Algorithms + Data structures = Programs
by N. Wirth"'s examples to C?
Do you...
Thank you very much, I will use that solution as soon as I will understand what it does, because still I didn't get in pointers... I would like to be sure on steady terrain before adventuring myself,...
The compiler (VC++ express) tells me this message:
\visual studio 2008\projects\guessgame\guessgame.c(15) : warning C4244: 'function' : conversion from 'time_t' to 'unsigned int', possible loss of...
Hello,
I am experimenting with random numbers and guessing games, this is my attempt.
It works for me, can someone give some better solution to the program?
Thanks in advance.
FSX
unsigned, perhaps?
Hello,
I have been told that this is a portable random function (and it is, it works perfectly!) but I would like to understand its inner mechanisms.
Since I would like to focus on clean and...
Final run:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
I have added
if(score1 >= 50 || score2 >= 50)
break;
after the while, but it stills won't work. Probably I should rework it completely. Is there a way to reuse my code?
so I should use that construct called DO ... WHILE which I haven't studied yet! =P
I tried with && and it still continues over the limit. There's something I can't understand. =P
Hello,
I have made this little game using the random function.
But there's a problem because the score1 and score2 exceeds the value of 50 contained in the while cycle.
I would like to...
Well this is great, now it works! =) Thanks so much Matsp! =)
Using random() it gives error. Using rand() only gives 41. I am eternally confused you're right! This is what I have done later, following a C++ program found on cprogramming:
#include...
I have VC++ and the help only tells about classes. Otherwise I would have looked on it myself.
hello,
I would like to generate a random number. I have looked on google but the way I found (using rand and srand from stdlib.h) doesn't works.
I would like to generate a random number with...
Hey great thanks! =) to AA poster too ;)
Hello everyone,
I would like to convert some Common LISP into C language. Is there a
consolidated way to do that?
I am not an experienced programmer in both languages, but I know more C
than...
Hello,
searching in google I found nothing.
Does someone know where and if it is possible to download the source of a 3D engine written in ANSI C? I don't need raytracing or advanced features,...
You just need Visual C++ 2008 Express Visual Studio 2008 Express Editions and when you create new projects, do an EMPTY project from GENERAL projects, then when you add files, right click on SOURCE...
Hello everyone, here's the listing:
#include <stdio.h>
/* count digits, white space, others */
int main(void)
{
Mats got exactly what I was looking for, a simple explanation. I'm new to C and all those pointers, includes and so on are totally alien to my current knowledge. But thanks also for the other...
Thanks a lot! What I would like to understand is why if I use the && it doesn't works... shouldn't it be similar to another IF statement?
I am still stumbling...
#include <stdio.h>
int main(void)
{
int c, pc;
Hello everyone,
I would like to develop my logic skills because I feel they are quite on the lower average level.
I believe I need some low-level thinking skill with few instruments to solve the...
Hey that's exactly what it happens sometimes... why does it ignores every other character? Shouldn't it print everything with getchar()? Sorry if the question seems silly but still I don't understand...