kindly can you point me to the FAQ? because the FAQ of this board only mentions that C File I/O feof() is bad. it says nothing about C++ eof().
Type: Posts; User: Jackie Chan
kindly can you point me to the FAQ? because the FAQ of this board only mentions that C File I/O feof() is bad. it says nothing about C++ eof().
here it should be enough testing as:
while (studfile)
{
//...
}
but why studfile.eof() is bad ?
and is my suggestion better ?
i am not in houston, but i would like to try.
int const * const cpi;
in above line both the pointer and the values are const so how to initialize it?
Open Source Software are also attacked by hackers see this latest example.
This is an assembly language board for fasm assembler written in phpBB.
Hacked
Oops I almost overlooked it.
Very Happy Birthday wishes for indigo0086!!! :)
1) Jackie Chan April 7
2) Prelude Nov 11
3) Neo1 October 11
4) brewbuck February 7
5) ahluka June 7
6) ping December 15
7) anon October 25
8) indigo0086 June 13
9) Mario F....
We do not have enough samples to really benefit from the paradox. Only persons visiting this board as members should be taken in our experiment.
I am back because of an interesting thing called Birthday Paradox
Let's see how many of us share a common birthday.
I will edit this post to add to the list, just post your replies in this...
Thank you zacs7.
I am not the real Jackie Chan (I know you are kidding). I love him and the movies also.
Right tool for right job is something that I will always try to remember.
Thank you Magos.
I am also getting a little overwhelmed by the choice and availability and usability of so many programing languages. I will take a break now. Will try to pursue my martial art...
Thank you for a detailed well explained answer. But I am unable to see the point here. I see no flexibility loss when doing Perl. I want list of file names. Easy. I want them sorted. Easy. I want...
I think I was just being a little ignorant and a little over enthusiastic about simplicity of C language.
:)
:) GTK is ugly. GTK+ is for C++. I can try with WinAPI. But it is very scary as for now.
:) I can only write CGI using C. may be I will try that too for Web.
:) I will try to write games using...
That said I never noticed speed difference between C and Perl either. :)
Well no such thing as resource lacking though I have 1.5GHz, 512MB,20GB configuration. After huge language base of Perl...
I think C is faster since it is very low level and that is why it is taking longer to develope something. But may be it will help me learn more. My only worry is people may not be using it any more...
Hi all,
I am using C on purpose but it is slower than say java to develop code in C. However i think that if I write my code in C it will be the fastest. May be only assembly can beat C in speed. I...
I fixed that myself.
:)
#include <stdio.h>
unsigned int gcd(unsigned int a, unsigned int b) {
unsigned int t;
while (b) {
t = b;
b = a%b;
a = t;
}
return a;
Thank you 39ster, abh!shek, IceDane, laserlight, manav, matsp and others also who asked more questions to make it more clear.
:)
Linux system has no concept of file name extensions so just naming it .txt means nothing. Plus you are also writing a NULL character to file. Which makes it look binary to the OS.
#include <stdio.h>
void swap(void *a, void *b) {
void *t;
t = a;
a = b;
b = t;
}
int main() {
This small change in your code should help you:
if (scanf("%i", &iUserGuess) == 0)
/*if (isdigit(iUserGuess) == 0) */
{
printf("Invalid Entry, Not a number!\n");
}
:)