473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

programming-challenges

Me along with some of my friends have formed a programming group on
google to discuss programming
problem approaches....
Do join it will be helpful to all beginners and experts same.

Here is the link to it : http://groups.google.co.in/group/programming-challenges
Ciao,
Ajinkya.

Apr 29 '07 #1
9 1798

"Ajinkya" <ka*********@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
Me along with some of my friends have formed a programming group on
google to discuss programming
problem approaches....
Do join it will be helpful to all beginners and experts same.

Here is the link to it :
http://groups.google.co.in/group/programming-challenges
Ciao,
Ajinkya.
Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Apr 29 '07 #2
In article <13*************@corp.supernews.com>,
Barry <ba****@nullhighstream.netwrote:
>
"Ajinkya" <ka*********@gmail.comwrote in message
news:11**********************@u30g2000hsc.googleg roups.com...
>Me along with some of my friends have formed a programming group on
google to discuss programming
problem approaches....
Do join it will be helpful to all beginners and experts same.

Here is the link to it :
http://groups.google.co.in/group/programming-challenges
Ciao,
Ajinkya.

Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
It is probably not possible for him to shut down clc. Usenet being what
it is.

But I agree about it (clc) propogating (lots of) bad ideas. Not much
you can do about it, though.

Apr 29 '07 #3
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
"Ajinkya" <kaleajin...@gmail.comwrote in message

news:11**********************@u30g2000hsc.googlegr oups.com...
Me along with some of my friends have formed a programming group on
google to discuss programming
problem approaches....
Do join it will be helpful to all beginners and experts same.
Here is the link to it :
http://groups.google.co.in/group/programming-challenges
Ciao,
Ajinkya.

Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Please dont say that to me....there are ACM ICPC winners on the group
who post regularly.
I think they have not read clc(thats what you meant?) what say?

Ciao,
Ajinkya.

Apr 30 '07 #4
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
"Ajinkya" <kaleajin...@gmail.comwrote in message

news:11**********************@u30g2000hsc.googlegr oups.com...
Me along with some of my friends have formed a programming group on
google to discuss programming
problem approaches....
Do join it will be helpful to all beginners and experts same.
Here is the link to it :
http://groups.google.co.in/group/programming-challenges
Ciao,
Ajinkya.

Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Please specify what you found as a "bad idea".....

Ajinkya.

Apr 30 '07 #5
Ajinkya said:
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
>>
Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.

Please dont say that to me....there are ACM ICPC winners on the group
who post regularly.
If they're that good, why doesn't their code compile and work properly?

First example I found:

#include <stdio.h>
#include <conio.h>
int main()
{
int TotalSteps=0,NoOfTwoSteps,NoOfOneSteps,TotalWays=1 ;
int i;
printf ("\nPlease enter the number of steps: ");
scanf ("%d",&TotalSteps);
NoOfTwoSteps=TotalSteps/2;
for (i=1;i<=NoOfTwoSteps;i++)
{
int Factorial1,Factorial2,Factorial3;
int TotalStep,j;
NoOfOneSteps = TotalSteps - i * 2;
Factorial1=Factorial2=Factorial3=1;
for (j=2;j<=NoOfOneSteps+i;j++)
Factorial1*=j;
for (j=2;j<=NoOfOneSteps;j++)
Factorial2*=j;
for (j=2;j<=i;j++)
Factorial3*=j;
TotalStep = Factorial1/(Factorial2*Factorial3);
TotalWays+=TotalStep;
}
printf("\nTotal Ways are: %d",TotalWays);
getch();
return 0;

When we compile this, we get:

foo.c:2: conio.h: No such file or directory
make: *** [foo.o] Error 1

Removing that line, we get:

foo.c:4: warning: function declaration isn't a prototype
foo.c: In function `main':
foo.c:46: warning: implicit declaration of function `getch'
foo.c:49: parse error at end of input
make: *** [foo.o] Error 1

When we remove the getch and fix the missing brace, we get a program
which behaves thusly:

me@here./foo

Please enter the number of steps: ELEPHANT

Total Ways are: 1me@here>

Not good.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Apr 30 '07 #6
On Apr 30, 6:43 am, Richard Heathfield <r...@see.sig.invalidwrote:
Ajinkya said:
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Please dont say that to me....there are ACM ICPC winners on the group
who post regularly.

If they're that good, why doesn't their code compile and work properly?

First example I found:

#include <stdio.h>
#include <conio.h>

int main()
{
int TotalSteps=0,NoOfTwoSteps,NoOfOneSteps,TotalWays=1 ;
int i;

printf ("\nPlease enter the number of steps: ");
scanf ("%d",&TotalSteps);

NoOfTwoSteps=TotalSteps/2;

for (i=1;i<=NoOfTwoSteps;i++)
{
int Factorial1,Factorial2,Factorial3;
int TotalStep,j;
NoOfOneSteps = TotalSteps - i * 2;

Factorial1=Factorial2=Factorial3=1;

for (j=2;j<=NoOfOneSteps+i;j++)
Factorial1*=j;

for (j=2;j<=NoOfOneSteps;j++)
Factorial2*=j;

for (j=2;j<=i;j++)
Factorial3*=j;

TotalStep = Factorial1/(Factorial2*Factorial3);
TotalWays+=TotalStep;
}

printf("\nTotal Ways are: %d",TotalWays);

getch();
return 0;

When we compile this, we get:

foo.c:2: conio.h: No such file or directory
make: *** [foo.o] Error 1

Removing that line, we get:

foo.c:4: warning: function declaration isn't a prototype
foo.c: In function `main':
foo.c:46: warning: implicit declaration of function `getch'
foo.c:49: parse error at end of input
make: *** [foo.o] Error 1

When we remove the getch and fix the missing brace, we get a program
which behaves thusly:

me@here./foo

Please enter the number of steps: ELEPHANT

Total Ways are: 1me@here>

Not good.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999http://www.cpax.org.uk
email: rjh at the above domain, - www.
uh?....we dont discuss codes there....the code was just to support the
algorithm used. And i know "conio.h" is not in ANSI standards....but
as the program was compiled in turboC it worked out there....it will
definetely not work on unix systems as "conio.h" cannot be used in gcc
as gcc is accord to ANSI....thanks i will see to it that ppl will not
use that further(but i cant stop them from doing it....we can only
comment)

Ciao,
Ajinkya.

May 1 '07 #7
Ajinkya said:
On Apr 30, 6:43 am, Richard Heathfield <r...@see.sig.invalidwrote:
>Ajinkya said:
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
>Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Please dont say that to me....there are ACM ICPC winners on the
group who post regularly.

If they're that good, why doesn't their code compile and work
properly?
uh?....we dont discuss codes there....the code was just to support the
algorithm used. And i know "conio.h" is not in ANSI standards....but
as the program was compiled in turboC it worked out there....
Oh, I see - so your site is for Turbo C users only? Thank you - I'll
make a note.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
May 1 '07 #8
ak
On Apr 30, 9:56 pm, Richard Heathfield <r...@see.sig.invalidwrote:
Ajinkya said:


On Apr 30, 6:43 am, Richard Heathfield <r...@see.sig.invalidwrote:
Ajinkya said:
On Apr 29, 6:15 am, "Barry" <bar...@nullhighstream.netwrote:
Judging by the couple of discussions I looked at on your site,
you have never read c.l.c. Better to shut it down than to
propogate such bad ideas.
Please dont say that to me....there are ACM ICPC winners on the
group who post regularly.
If they're that good, why doesn't their code compile and work
properly?
uh?....we dont discuss codes there....the code was just to support the
algorithm used. And i know "conio.h" is not in ANSI standards....but
as the program was compiled in turboC it worked out there....

Oh, I see - so your site is for Turbo C users only? Thank you - I'll
make a note.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999http://www.cpax.org.uk
email: rjh at the above domain, - www.- Hide quoted text -

- Show quoted text -
Not at all.....but i cant stop people from using TurboC

May 5 '07 #9
ak wrote:
On Apr 30, 9:56 pm, Richard Heathfield <r...@see.sig.invalidwrote:
>Ajinkya said:
On Apr 30, 6:43 am, Richard Heathfield <r...@see.sig.invalid>
wrote:

Oh, I see - so your site is for Turbo C users only? Thank you - I'll
make a note.

Not at all.....but i cant stop people from using TurboC
That's true, but you can stop people from posting code that works *only*
on Turbo C.

In a group that is not specifically focussed on using one particular
compiler, the contributers should make an effort that the programs they
provide can be used on any compiler that the readers might use.
If you restrict yourself to the features provided by the ANSI/ISO C
standard, that will be automatically the case.

Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://www.eskimo.com/~scs/C-faq/top.html
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/
May 6 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented...
12
by: G. | last post by:
Hi all, During my degree, BEng (Hons) Electronics and Communications Engineering, we did C programming every year, but I never kept it up, as I had no interest and didn't see the point. But now...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
30
by: Jakle | last post by:
I have been googling, but can seem to find out about C GUI libraries. My main platform is Windows, but it would be nice to find a cross platform library. I've been programming with php, which...
47
by: Thierry Chappuis | last post by:
Hi, I'm interested in techniques used to program in an object-oriented way using the C ANSI language. I'm studying the GObject library and Laurent Deniau's OOPC framework published on his web...
111
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks...
14
by: deko | last post by:
For building Windows desktop apps, the clear favorite is C#. But my clients can't afford to buy Microsoft products. So I need to develop software for Linux users and web applications. In the...
17
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.