Search the web
Sign In
New User? Sign Up
c4swimmers · India's First C/C++ Programming Portal
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 9083 - 9112 of 9112   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#9112 From: c4swimmers@yahoogroups.com
Date: Sun Nov 15, 2009 9:23 am
Subject: File - MustRead-Important-C4Swimmers.txt
c4swimmers@yahoogroups.com
Send Email Send Email
 
(MUST READ: IMPORTANT) Group Rules


*********************************
* Subscription & Unsubscription *
*********************************

How to Subscribe to the group "C4SWIMMERS" ?
--------------------------------------------

To Subscribe directly through mail, just send a blank e-mail to :
C4SWIMMERS-subscribe@yahoogroups.com

Please note that you need NOT send mails to any other mail ID including Owner
and Moderator, except the above mail ID. Please Wait for 2 or 3 days for
approval, after sending blank mail ONLY to the above mail ID.


How to UnSubscribe from the group "C4SWIMMERS" ?
------------------------------------------------

Whenever you want to Unsubscribe, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com

You will be automatically unsubscribed. It's as simple as that. Sometimes, it
takes time for processing your unsubscription request. It is automated
processing and I will not be able to help you if you face any problems in
unsubscription.

Do NOT send mails to any other mail ID, asking for Unsubscription. There won't
be any use.


Where to visit the Group HomePage ?
-----------------------------------

If u want to visit HomePage of the Group, you can visit :
http://groups.yahoo.com/group/C4SWIMMERS
If you are a member of the group, You can login with your Yahoo Id and Password
to access all the information of group.

Also you can visit [ http://www.c4swimmers.esmartguy.com ] to Test Your C
Programming Strengths.


How to Change your current group mail id to another ?
-----------------------------------------------------

Unsubscribe from the 1st mail id, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com
You will be automatically unsubscribed. It's as simple as that.

Then send a blank mail from the 2nd mail id (to which you want to receive mails)
to : C4SWIMMERS-subscribe@yahoogroups.com
Just wait for 2 or 3 days after sending the mail, as it takes time for
processing. Do NOT send mails to anyone, asking for change of your mail-id.


How to send mails to entire group ?
-----------------------------------

In order to send a mail to entire group, send it to : C4SWIMMERS@yahoogroups.com

Remember that the mail sent to the above mail ID reaches around thousands of
members in this group. So, please be sensible in sending messages. Don't send
any unnecessary messages.

When you reply to a mail that came to you through group, it will NOT go to
entire group. So, before pressing SEND button, observe the mail ID to which you
are sending the mail. If you want your reply mail to reach all the group
members, you must send it to above group mail ID: C4SWIMMERS@yahoogroups.com


Important Suggestions in Subscription :
---------------------------------------

I suggest you to create a separate mail ID and then subscribe to this yahoogroup
through that mail ID so that your personal mails won't get affected. Be prepared
to get around dozens of mails per day. Keep that in mind before subscription.
NEVER USE YOUR PERSONAL MAIL ID FOR GROUP MESSAGES.

This group is formed to mainly focus on C/C++ professionals to meet the needs of
"Software" Industry. Here the job postings don't have much importance in this
group.


Various problems with the Subscription :
----------------------------------------

If the member is not getting any mails even after subscribing or if suddenly
he/she is not able to receive any mails...

I can understand your concerns about Memberships in "C4SWIMMERS" YahooGroup. I
have approved most of your requests for memberships, unsubscriptions etc. I
haven't blocked anyone's id, unless they misbehaved in group. But please
understand that problem is not with this group or you, but it's with YahooGroups
server and Database. It seems Yahoo is encountering some technical problems. So
I will not be able to help you unless they solve the problems.

If you face any severe problems, JUST CREATE ANOTHER MAIL ID AND SUBSCRIBE
THROUGH THAT NEW MAIL ID.


YahooGroups Website is not accessible:
--------------------------------------

Sometimes, the WebSite may be down for maintenance by yahoo. So, try after 1 or
2 days.


Receving mails even after Unsubscribing :
-----------------------------------------

It is also due to the problem with Yahoo. The unsubscription process is
completely automatic. I will not be able to help you for unsubscription. So, no
use in sending mails to me. Sometimes, it takes lot of time for processing your
unsubscription request. Till then, you will be receiving mails even if you sent
an unsubscription request.

I suggest you to set your Mail delivery option (at the YahooGroups website) as :
"No Mails" so that you won't receive any mails to your mail id. Later, when
Yahoo solves these problems, you can unsubscribe.


Getting (Un)subscription mail even though you haven't tried to (Un)subscribe :
------------------------------------------------------------------------------

It happens mainly b'cos of Virus mails sent from your mail id (without your
notice). If you don't receive group mails continuosly for 3 or 4 days or if you
suspect that you are unsubscribed from the group, try to subscribe again. If it
doesn't work, try to create another mail id and subscribe through that.

Please note that I don't remove any member from the group unless they misbehave
in the group.


I AM NOT ANSWERABLE TO ANYONE :
-------------------------------

This group is established by me (NANDA KISHOR K N) and I have every right in
deciding how to run the group and which message to approve and which one to
delete. I can BAN a member or DENY a membership or REMOVE a member at any point
of time. I have the right to withdraw the group at any time, if I think the
group members are not behaving properly.

NO ONE IN THE GROUP HAS THE RIGHT TO QUESTION ME. I AM NOT ANSWERABLE TO ANYONE.


Thanks & Regards,
Nanda Kishor
Webmaster of www.c4swimmers.esmartguy.com
Owner, c4swimmers@yahoogroups.com ( nandakishorkn@... )
Owner, www.phpbbserver.com/phpbb/index.php?mforum=c4swimmers ( Interactive
C4Swimmers MessageBoard)

#9111 From: c4swimmers@yahoogroups.com
Date: Sun Nov 15, 2009 9:23 am
Subject: File - c4s_net.html
c4swimmers@yahoogroups.com
Send Email Send Email
 

Hi C/C++ enthusiasts

Who am I: C For Swimmers - India's First C/C++ Programming Portal

Where am I: www.c4swimmers.net

What we do: Discover the depth of C

Who can join: All C/C++ enthusiasts are welcome

Why should I join: To learn C/C++ by discussing and sharing the knowledge with other C/C++ enthusiasts

Where can I discuss:
www.c4swimmers.net/forum [An interactive message board]
C4Swimmers@YahooGroups.Com [One of the biggest C/C++ community in the yahoogroup with nearly 3000 members]

What you want: Would you like to see the portal / group talk about ??

Comments, Suggestions,...
Reach me @:
c4swimmers.net@...

Finally, last but not the least
Are you a C/C++ enthusiast ?? Yes,
Join us to discover the depth of C by discussing and sharing substantial information with the other C/C++ folks. If you're already a member of the group then please encourage others to join us! by referring your friends and colleagues.

Many Thanks,
www.C4Swimmers.net Team
[Old website: www.c4swimmers.esmartguy.com]
C4Swimmers@YahooGroups.Com

To subscribe to the C4Swimmers Group send a blank email and subject line to C4Swimmers-Subscribe@YahooGroups.Com

Please subscribe to the mailing list. Future emails will only be sent to the list.

To unsubscribe, send a blank email and subject line to C4Swimmers-Unsubscribe@YahooGroups.Com

Please join us! Please encourage others to join us!

#9110 From: hanumanth poluri <hanumanth.nitjsr@...>
Date: Sun Nov 8, 2009 4:18 pm
Subject: Re: [c4swimmers.net] File - C++CodingStandard.pdf
pointstohanu
Offline Offline
Send Email Send Email
 
plz illustrate with example the meaning of command line arguments are for
compiling different programs at different time


On Sun, Nov 1, 2009 at 3:21 AM, <c4swimmers@yahoogroups.com> wrote:

>
>
>
>
> File : C++CodingStandard.pdf
> Description : Learn C++ Coding Standard to write readable, portable,
> maintainable, consistent C++ code.
>
>
>


[Non-text portions of this message have been removed]

#9109 From: Sunil goyal <engineer.sunil@...>
Date: Fri Oct 30, 2009 8:41 am
Subject: Re: [c4swimmers.net] Random number Generation
thaparian_436
Offline Offline
Send Email Send Email
 
Hi asad,

I think the random number generator function takes its input as the system
time... and you know that system time changes continously.. so accordingly
it generates the different number every time.. I may be wrong also .. but
this is what I think of.

Regards,
Sunil

On Thu, Oct 29, 2009 at 8:50 AM, Asad Abbas <cyberstudent99@...>wrote:

>
>
>
> Hi All,
>
> Manny languages like C++ provides a way to generate random numbers.
> Like C++ provides a rand(); function to do this.
>
> But (it might be silly to ask) the code written behind these functions
> always
> ramains the same in all cases and obviously it is coded by humanbeings,
> then how
> the output is different all the time (a random number)?
>
> And if it is a random number then with respect to whom it is generated?
> And how can we say that a series of number generated are actually random
> numbers?
>
> I dont know how the experts take this question, but it was in mind and i
> ask it.
> Treat it as beginner's question.
>
> Regards,
> Asad Abbas
> UET Taxila
> Islamabad
> Pakistan
>
> ----------------------------------------------------------
>
> Why do programmers get Halloween and Christmas mixed up?
> Because OCT(31) = DEC(25)
> Programmers don't die, they just GOSUB without RETURN.
> ----------------------------------------------------------
> Who is General Failure and why is he reading my hard disk ?!?
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#9108 From: srinivas g <gsrini52@...>
Date: Sat Oct 31, 2009 3:35 pm
Subject: Re: [c4swimmers.net] Random number Generation
srini_g2003
Offline Offline
Send Email Send Email
 
I don't know how rand() is implemented, but I have heard somewhere that the
hardware interrupts like, keyboard, network interrupts are used to generate
true random numbers. These interrupts cannot be predicted when they come, so
these are used to generate the random numbers.

On Fri, Oct 30, 2009 at 12:58 AM, Ashish Patil <aadipa@...> wrote:

>
>
> A little google search would have saved.
>
> http://en.wikipedia.org/wiki/Random_number_generation#Computational_methods
>
> The numbers will be generated in same sequence if the initial seed is same.
> By default, in many cases the current time is taken as initial seed. Any
> subsequent number are actually function of previous.
>
> Try setting same seed (don't call randomize()) before calling rand(). The
> output sequence will always be same.
>
> ---
> Ashish Patil
>
> On Thu, Oct 29, 2009 at 8:50 AM, Asad Abbas
<cyberstudent99@...<cyberstudent99%40yahoo.com>
> >wrote:
>
>
> >
> > Hi All,
> >
> > Manny languages like C++ provides a way to generate random numbers.
> > Like C++ provides a rand(); function to do this.
> >
> > But (it might be silly to ask) the code written behind these functions
> > always
> > ramains the same in all cases and obviously it is coded by humanbeings,
> > then how
> > the output is different all the time (a random number)?
> >
> > And if it is a random number then with respect to whom it is generated?
> > And how can we say that a series of number generated are actually random
> > numbers?
> >
> > I dont know how the experts take this question, but it was in mind and i
> > ask it.
> > Treat it as beginner's question.
> >
> > Regards,
> > Asad Abbas
> > UET Taxila
> > Islamabad
> > Pakistan
> >
> >
> > ----------------------------------------------------------
> >
> > Why do programmers get Halloween and Christmas mixed up?
> > Because OCT(31) = DEC(25)
> > Programmers don't die, they just GOSUB without RETURN.
> >
> > ----------------------------------------------------------
> > Who is General Failure and why is he reading my hard disk ?!?
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> > ------------------------------------
>
> >
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#9107 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - c4s.zip
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : c4s.zip
Description : Animated(Graphical) C Tutorial

#9106 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - c4s_net.html
c4swimmers@yahoogroups.com
Send Email Send Email
 

Hi C/C++ enthusiasts

Who am I: C For Swimmers - India's First C/C++ Programming Portal

Where am I: www.c4swimmers.net

What we do: Discover the depth of C

Who can join: All C/C++ enthusiasts are welcome

Why should I join: To learn C/C++ by discussing and sharing the knowledge with other C/C++ enthusiasts

Where can I discuss:
www.c4swimmers.net/forum [An interactive message board]
C4Swimmers@YahooGroups.Com [One of the biggest C/C++ community in the yahoogroup with nearly 3000 members]

What you want: Would you like to see the portal / group talk about ??

Comments, Suggestions,...
Reach me @:
c4swimmers.net@...

Finally, last but not the least
Are you a C/C++ enthusiast ?? Yes,
Join us to discover the depth of C by discussing and sharing substantial information with the other C/C++ folks. If you're already a member of the group then please encourage others to join us! by referring your friends and colleagues.

Many Thanks,
www.C4Swimmers.net Team
[Old website: www.c4swimmers.esmartguy.com]
C4Swimmers@YahooGroups.Com

To subscribe to the C4Swimmers Group send a blank email and subject line to C4Swimmers-Subscribe@YahooGroups.Com

Please subscribe to the mailing list. Future emails will only be sent to the list.

To unsubscribe, send a blank email and subject line to C4Swimmers-Unsubscribe@YahooGroups.Com

Please join us! Please encourage others to join us!

#9105 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - Types of Pointers.txt
c4swimmers@yahoogroups.com
Send Email Send Email
 
Pointers Varieties
********************************************************************************\
*****************

(1) int *p;
     // p is a pointer to an integer quantity

(2) int *p[10];
     // p is a 10-element array of pointers to integer quantities

(3) int (*p)[10];
     // p is a pointer to a 10-element integer array

(4) int *p(void);
     // p is a function that returns a pointer to an integer quantity

(5) int p(char *a);
     // p is a function that accepts an argument which is a pointer to a
character returns an
     // integer quantity

(6) int *p(char *a);
     // p is a function that accepts an argument which is a pointer to a
character returns a
     // pointer to an integer quantity

(7) int (*p)(char *a);
     // p is pointer to a function that accepts an argument which is a pointer to
a character
     // returns an integer quantity

(8) int (*p(char *a))[10];
     // p is a function that accepts an argument which is a pointer to a
character returns a
     // pointer to a 10-element integer array

(9) int p(char (*a)[]);
     // p is a function that accepts an argument which is a pointer to a
character array returns
     // an integer quantity

(10) int p(char *a[]);
     // p is a function that accepts an argument which is a array of pointers to
characters
     // returns an integer quantity

(11) int *p(char a[]);
     // p is a function that accepts an argument which is a character array
returns a pointer to
     // to an integer quantity

(12) int *p(char (*a)[]);
     // p is a function that accepts an argument which is a pointer to a
character array returns a
     // pointer to an integer quantity

(13) int *p(char *a[]);
     // p is a function that accepts an argument which is an array of pointers to
characters
     // returns a pointer to an integer quantity

(14) int (*p)(char (*a)[]);
     // p is pointer to a function that accepts an argument which is a pointer to
a character array
     // returns an integer quantity

(15) int *(*p)(char (*a)[]);
     // p is pointer to a function that accepts an argument which is a pointer to
a character array
     // returns a pointer to an integer quantity

(16) int *(*p)(char *a[]);
     // p is pointer to a function that accepts an argument which is a array of
pointers to
     // characters returns a pointer to an integer quantity

(17) int (*p[10])(void);
     // p is 10-element array of pointers to functions; each function returns an
integer quantity

(18) int (*p[10])(char a);
     // p is 10-element array of pointers to functions; each function accepts an
argument which is
     // a character and returns an integer quantity

(19) int *(*p[10])(char a);
     // p is 10-element array of pointers to functions; each function accepts an
argument which is
     // a character and returns a pointer to an integer quantity

(20) int *(*p[10])(char *a);
     // p is 10-element array of pointers to functions; each function accepts an
argument which is
     // a pointer to a character and returns a pointer to an integer quantity

#9104 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - MustRead-Important-C4Swimmers.txt
c4swimmers@yahoogroups.com
Send Email Send Email
 
(MUST READ: IMPORTANT) Group Rules


*********************************
* Subscription & Unsubscription *
*********************************

How to Subscribe to the group "C4SWIMMERS" ?
--------------------------------------------

To Subscribe directly through mail, just send a blank e-mail to :
C4SWIMMERS-subscribe@yahoogroups.com

Please note that you need NOT send mails to any other mail ID including Owner
and Moderator, except the above mail ID. Please Wait for 2 or 3 days for
approval, after sending blank mail ONLY to the above mail ID.


How to UnSubscribe from the group "C4SWIMMERS" ?
------------------------------------------------

Whenever you want to Unsubscribe, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com

You will be automatically unsubscribed. It's as simple as that. Sometimes, it
takes time for processing your unsubscription request. It is automated
processing and I will not be able to help you if you face any problems in
unsubscription.

Do NOT send mails to any other mail ID, asking for Unsubscription. There won't
be any use.


Where to visit the Group HomePage ?
-----------------------------------

If u want to visit HomePage of the Group, you can visit :
http://groups.yahoo.com/group/C4SWIMMERS
If you are a member of the group, You can login with your Yahoo Id and Password
to access all the information of group.

Also you can visit [ http://www.c4swimmers.esmartguy.com ] to Test Your C
Programming Strengths.


How to Change your current group mail id to another ?
-----------------------------------------------------

Unsubscribe from the 1st mail id, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com
You will be automatically unsubscribed. It's as simple as that.

Then send a blank mail from the 2nd mail id (to which you want to receive mails)
to : C4SWIMMERS-subscribe@yahoogroups.com
Just wait for 2 or 3 days after sending the mail, as it takes time for
processing. Do NOT send mails to anyone, asking for change of your mail-id.


How to send mails to entire group ?
-----------------------------------

In order to send a mail to entire group, send it to : C4SWIMMERS@yahoogroups.com

Remember that the mail sent to the above mail ID reaches around thousands of
members in this group. So, please be sensible in sending messages. Don't send
any unnecessary messages.

When you reply to a mail that came to you through group, it will NOT go to
entire group. So, before pressing SEND button, observe the mail ID to which you
are sending the mail. If you want your reply mail to reach all the group
members, you must send it to above group mail ID: C4SWIMMERS@yahoogroups.com


Important Suggestions in Subscription :
---------------------------------------

I suggest you to create a separate mail ID and then subscribe to this yahoogroup
through that mail ID so that your personal mails won't get affected. Be prepared
to get around dozens of mails per day. Keep that in mind before subscription.
NEVER USE YOUR PERSONAL MAIL ID FOR GROUP MESSAGES.

This group is formed to mainly focus on C/C++ professionals to meet the needs of
"Software" Industry. Here the job postings don't have much importance in this
group.


Various problems with the Subscription :
----------------------------------------

If the member is not getting any mails even after subscribing or if suddenly
he/she is not able to receive any mails...

I can understand your concerns about Memberships in "C4SWIMMERS" YahooGroup. I
have approved most of your requests for memberships, unsubscriptions etc. I
haven't blocked anyone's id, unless they misbehaved in group. But please
understand that problem is not with this group or you, but it's with YahooGroups
server and Database. It seems Yahoo is encountering some technical problems. So
I will not be able to help you unless they solve the problems.

If you face any severe problems, JUST CREATE ANOTHER MAIL ID AND SUBSCRIBE
THROUGH THAT NEW MAIL ID.


YahooGroups Website is not accessible:
--------------------------------------

Sometimes, the WebSite may be down for maintenance by yahoo. So, try after 1 or
2 days.


Receving mails even after Unsubscribing :
-----------------------------------------

It is also due to the problem with Yahoo. The unsubscription process is
completely automatic. I will not be able to help you for unsubscription. So, no
use in sending mails to me. Sometimes, it takes lot of time for processing your
unsubscription request. Till then, you will be receiving mails even if you sent
an unsubscription request.

I suggest you to set your Mail delivery option (at the YahooGroups website) as :
"No Mails" so that you won't receive any mails to your mail id. Later, when
Yahoo solves these problems, you can unsubscribe.


Getting (Un)subscription mail even though you haven't tried to (Un)subscribe :
------------------------------------------------------------------------------

It happens mainly b'cos of Virus mails sent from your mail id (without your
notice). If you don't receive group mails continuosly for 3 or 4 days or if you
suspect that you are unsubscribed from the group, try to subscribe again. If it
doesn't work, try to create another mail id and subscribe through that.

Please note that I don't remove any member from the group unless they misbehave
in the group.


I AM NOT ANSWERABLE TO ANYONE :
-------------------------------

This group is established by me (NANDA KISHOR K N) and I have every right in
deciding how to run the group and which message to approve and which one to
delete. I can BAN a member or DENY a membership or REMOVE a member at any point
of time. I have the right to withdraw the group at any time, if I think the
group members are not behaving properly.

NO ONE IN THE GROUP HAS THE RIGHT TO QUESTION ME. I AM NOT ANSWERABLE TO ANYONE.


Thanks & Regards,
Nanda Kishor
Webmaster of www.c4swimmers.esmartguy.com
Owner, c4swimmers@yahoogroups.com ( nandakishorkn@... )
Owner, www.phpbbserver.com/phpbb/index.php?mforum=c4swimmers ( Interactive
C4Swimmers MessageBoard)

#9103 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - IndustryCodingStandardCC++.pdf
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : IndustryCodingStandardCC++.pdf
Description : Learn how to write C/C++ code according to the industry
requirements (MISRA rules)

#9102 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - C_Aptitude.doc
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : C_Aptitude.doc
Description : Know C Better

#9101 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - CLinks+TSRs+GDTips+101InterviewTips.zip
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : CLinks+TSRs+GDTips+101InterviewTips.zip
Description : 101 Interview Questions,C Links,GD Tips,TSR

#9100 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - C++CodingStandard.pdf
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : C++CodingStandard.pdf
Description : Learn C++ Coding Standard to write readable, portable,
maintainable, consistent C++ code.

#9099 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - MustRead-Important-C4Swimmers.txt
c4swimmers@yahoogroups.com
Send Email Send Email
 
(MUST READ: IMPORTANT) Group Rules


*********************************
* Subscription & Unsubscription *
*********************************

How to Subscribe to the group "C4SWIMMERS" ?
--------------------------------------------

To Subscribe directly through mail, just send a blank e-mail to :
C4SWIMMERS-subscribe@yahoogroups.com

Please note that you need NOT send mails to any other mail ID including Owner
and Moderator, except the above mail ID. Please Wait for 2 or 3 days for
approval, after sending blank mail ONLY to the above mail ID.


How to UnSubscribe from the group "C4SWIMMERS" ?
------------------------------------------------

Whenever you want to Unsubscribe, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com

You will be automatically unsubscribed. It's as simple as that. Sometimes, it
takes time for processing your unsubscription request. It is automated
processing and I will not be able to help you if you face any problems in
unsubscription.

Do NOT send mails to any other mail ID, asking for Unsubscription. There won't
be any use.


Where to visit the Group HomePage ?
-----------------------------------

If u want to visit HomePage of the Group, you can visit :
http://groups.yahoo.com/group/C4SWIMMERS
If you are a member of the group, You can login with your Yahoo Id and Password
to access all the information of group.

Also you can visit [ http://www.c4swimmers.esmartguy.com ] to Test Your C
Programming Strengths.


How to Change your current group mail id to another ?
-----------------------------------------------------

Unsubscribe from the 1st mail id, just send a blank e-mail to :
C4SWIMMERS-unsubscribe@yahoogroups.com
You will be automatically unsubscribed. It's as simple as that.

Then send a blank mail from the 2nd mail id (to which you want to receive mails)
to : C4SWIMMERS-subscribe@yahoogroups.com
Just wait for 2 or 3 days after sending the mail, as it takes time for
processing. Do NOT send mails to anyone, asking for change of your mail-id.


How to send mails to entire group ?
-----------------------------------

In order to send a mail to entire group, send it to : C4SWIMMERS@yahoogroups.com

Remember that the mail sent to the above mail ID reaches around thousands of
members in this group. So, please be sensible in sending messages. Don't send
any unnecessary messages.

When you reply to a mail that came to you through group, it will NOT go to
entire group. So, before pressing SEND button, observe the mail ID to which you
are sending the mail. If you want your reply mail to reach all the group
members, you must send it to above group mail ID: C4SWIMMERS@yahoogroups.com


Important Suggestions in Subscription :
---------------------------------------

I suggest you to create a separate mail ID and then subscribe to this yahoogroup
through that mail ID so that your personal mails won't get affected. Be prepared
to get around dozens of mails per day. Keep that in mind before subscription.
NEVER USE YOUR PERSONAL MAIL ID FOR GROUP MESSAGES.

This group is formed to mainly focus on C/C++ professionals to meet the needs of
"Software" Industry. Here the job postings don't have much importance in this
group.


Various problems with the Subscription :
----------------------------------------

If the member is not getting any mails even after subscribing or if suddenly
he/she is not able to receive any mails...

I can understand your concerns about Memberships in "C4SWIMMERS" YahooGroup. I
have approved most of your requests for memberships, unsubscriptions etc. I
haven't blocked anyone's id, unless they misbehaved in group. But please
understand that problem is not with this group or you, but it's with YahooGroups
server and Database. It seems Yahoo is encountering some technical problems. So
I will not be able to help you unless they solve the problems.

If you face any severe problems, JUST CREATE ANOTHER MAIL ID AND SUBSCRIBE
THROUGH THAT NEW MAIL ID.


YahooGroups Website is not accessible:
--------------------------------------

Sometimes, the WebSite may be down for maintenance by yahoo. So, try after 1 or
2 days.


Receving mails even after Unsubscribing :
-----------------------------------------

It is also due to the problem with Yahoo. The unsubscription process is
completely automatic. I will not be able to help you for unsubscription. So, no
use in sending mails to me. Sometimes, it takes lot of time for processing your
unsubscription request. Till then, you will be receiving mails even if you sent
an unsubscription request.

I suggest you to set your Mail delivery option (at the YahooGroups website) as :
"No Mails" so that you won't receive any mails to your mail id. Later, when
Yahoo solves these problems, you can unsubscribe.


Getting (Un)subscription mail even though you haven't tried to (Un)subscribe :
------------------------------------------------------------------------------

It happens mainly b'cos of Virus mails sent from your mail id (without your
notice). If you don't receive group mails continuosly for 3 or 4 days or if you
suspect that you are unsubscribed from the group, try to subscribe again. If it
doesn't work, try to create another mail id and subscribe through that.

Please note that I don't remove any member from the group unless they misbehave
in the group.


I AM NOT ANSWERABLE TO ANYONE :
-------------------------------

This group is established by me (NANDA KISHOR K N) and I have every right in
deciding how to run the group and which message to approve and which one to
delete. I can BAN a member or DENY a membership or REMOVE a member at any point
of time. I have the right to withdraw the group at any time, if I think the
group members are not behaving properly.

NO ONE IN THE GROUP HAS THE RIGHT TO QUESTION ME. I AM NOT ANSWERABLE TO ANYONE.


Thanks & Regards,
Nanda Kishor
Webmaster of www.c4swimmers.esmartguy.com
Owner, c4swimmers@yahoogroups.com ( nandakishorkn@... )
Owner, www.phpbbserver.com/phpbb/index.php?mforum=c4swimmers ( Interactive
C4Swimmers MessageBoard)

#9098 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - C Tutorials(advanced).zip
c4swimmers@yahoogroups.com
Send Email Send Email
 
File        : C Tutorials(advanced).zip
Description : C tutorial(advanced)

#9097 From: c4swimmers@yahoogroups.com
Date: Sun Nov 1, 2009 8:21 am
Subject: File - c4s_net.html
c4swimmers@yahoogroups.com
Send Email Send Email
 

Hi C/C++ enthusiasts

Who am I: C For Swimmers - India's First C/C++ Programming Portal

Where am I: www.c4swimmers.net

What we do: Discover the depth of C

Who can join: All C/C++ enthusiasts are welcome

Why should I join: To learn C/C++ by discussing and sharing the knowledge with other C/C++ enthusiasts

Where can I discuss:
www.c4swimmers.net/forum [An interactive message board]
C4Swimmers@YahooGroups.Com [One of the biggest C/C++ community in the yahoogroup with nearly 3000 members]

What you want: Would you like to see the portal / group talk about ??

Comments, Suggestions,...
Reach me @:
c4swimmers.net@...

Finally, last but not the least
Are you a C/C++ enthusiast ?? Yes,
Join us to discover the depth of C by discussing and sharing substantial information with the other C/C++ folks. If you're already a member of the group then please encourage others to join us! by referring your friends and colleagues.

Many Thanks,
www.C4Swimmers.net Team
[Old website: www.c4swimmers.esmartguy.com]
C4Swimmers@YahooGroups.Com

To subscribe to the C4Swimmers Group send a blank email and subject line to C4Swimmers-Subscribe@YahooGroups.Com

Please subscribe to the mailing list. Future emails will only be sent to the list.

To unsubscribe, send a blank email and subject line to C4Swimmers-Unsubscribe@YahooGroups.Com

Please join us! Please encourage others to join us!

#9096 From: Ashish Patil <aadipa@...>
Date: Thu Oct 29, 2009 7:28 pm
Subject: Re: [c4swimmers.net] Random number Generation
aadipa
Offline Offline
Send Email Send Email
 
A little google search would have saved.

http://en.wikipedia.org/wiki/Random_number_generation#Computational_methods

The numbers will be generated in same sequence if the initial seed is same.
By default, in many cases the current time is taken as initial seed. Any
subsequent number are actually function of previous.

Try setting same seed (don't call randomize()) before calling rand(). The
output sequence will always be same.

---
Ashish Patil


On Thu, Oct 29, 2009 at 8:50 AM, Asad Abbas <cyberstudent99@...>wrote:

>
> Hi All,
>
> Manny languages like C++ provides a way to generate random numbers.
> Like C++ provides a rand(); function to do this.
>
> But (it might be silly to ask) the code written behind these functions
> always
> ramains the same in all cases and obviously it is coded by humanbeings,
> then how
> the output is different all the time (a random number)?
>
> And if it is a random number then with respect to whom it is generated?
> And how can we say that a series of number generated are actually random
> numbers?
>
> I dont know how the experts take this question, but it was in mind and i
> ask it.
> Treat it as beginner's question.
>
> Regards,
> Asad Abbas
> UET Taxila
> Islamabad
> Pakistan
>
>
>
--------------------------------------------------------------------------------
>
> Why do programmers get Halloween and Christmas mixed up?
> Because OCT(31) = DEC(25)
> Programmers don't die, they just GOSUB without RETURN.
>
>
--------------------------------------------------------------------------------
> Who is General Failure and why is he reading my hard disk ?!?
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
>
>
>


[Non-text portions of this message have been removed]

#9095 From: Asad Abbas <cyberstudent99@...>
Date: Thu Oct 29, 2009 3:27 am
Subject: Functions and Arrays
cyberstudent99
Offline Offline
Send Email Send Email
 
Hi All,

While dealing with functions in C++ .
Generally, the C++ convention is the call-by-value. An exception is where arrays
are passed as arguments,
Arrays are called by reference by default.

Is ther any way to pass the arrays  to the functions by value rather than
reference?




Regards,
Asad Abbas
Pakistan,


 -------------------------------------------------------------------------------\
-

Why do programmers get Halloween and Christmas mixed up?
Because OCT(31) = DEC(25)
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------------
Who is General Failure and why is he reading my hard disk ?!?




[Non-text portions of this message have been removed]

#9094 From: Asad Abbas <cyberstudent99@...>
Date: Thu Oct 29, 2009 3:20 am
Subject: Random number Generation
cyberstudent99
Offline Offline
Send Email Send Email
 
Hi All,

Manny languages like C++ provides a way to generate random numbers.
Like C++ provides a rand(); function to do this.

But (it might be silly to ask) the code written behind these functions always
ramains the same in all cases and obviously it is coded by humanbeings, then how
the output is different all the time (a random number)?

And if it is a random number then with respect to whom it is generated?
And how can we say that a series of number generated are actually random
numbers?

I dont know how the experts take this question, but it was in mind and i ask it.
Treat it as beginner's question.

Regards,
Asad Abbas
UET Taxila
Islamabad
Pakistan
 
--------------------------------------------------------------------------------

Why do programmers get Halloween and Christmas mixed up?
Because OCT(31) = DEC(25)
Programmers don't die, they just GOSUB without RETURN.
--------------------------------------------------------------------------------
Who is General Failure and why is he reading my hard disk ?!?




[Non-text portions of this message have been removed]

#9093 From: ravi sundriyal <ravisundriyal@...>
Date: Wed Oct 21, 2009 6:38 am
Subject: Re: [c4swimmers.net] Tic tac toe!
ravisundriyal@...
Send Email Send Email
 
you can modify this code to suit your requirement..... like adding return
value to the function  find_win_func(int row,int col)

// put this in ur function

for(i = 0,i < 3 ; i++)
     for(j = 0,j < 3 ; j++)
     {
         if(i == 0 || j == 0)
             find_win_func(i,j);
         else continue;
     }




// add this function
find_win_func(int row,int col)
{
     for(i = 0,i < 3 ; i++)
     {
         switch(i)
         case 0: // horizontal (00)(10)(20) will be processed here
             if(row < col)
                 //do nothing
             else if (tictac[row][0]==tictac[row][1] &&
tictac[row][1]==tictac[row][2])
                     flag=tictac[row][0];
                     return;
             break;
         case 1: // vertical (00)(01)(02) will be processed here
             if(row > col)
                 //do nothing
             else if (tictac[0][col]==tictac[1][col] &&
tictac[1][col]==tictac[2][col])
                     flag=tictac[0][col];
                     return;
             break;
         case 2: // diagonal (00)(20) will be processed here
             if(i!=j && (mod(i-j) < 2))
                 continue;
             else if(tictac[row][col]==tictac[row + 1][col + 1] && tictac[row
+ 1][col + 1]==tictac[row + 2][col + 2])
                 flag=tictac[row][col];
                 return;
             else if(tictac[row][col]==tictac[row + 1][col + 1] && tictac[row
- 1][col + 1]==tictac[col][row])
                 flag=tictac[row][col];
                 return;
             break;
     }
}





On Sun, Oct 18, 2009 at 4:07 PM, Asad Abbas <cyberstudent99@...>wrote:

>
>
>
>  Hi All,
> i was making "tictac toe" a famous game.
>
> i made it but the following portion of the prog although it works but it
> does not seems good to me.
> i wonder if i can do it with some loops or something else...
>
> // checking if any player has entered a winning combination
> // this code cheks all 8 winning combinations!
> //but i wud like to know if i can do it with some alternative way
> //2D array name "tictac[][]"
>
>   if (tictac[0][0]==tictac[0][1] && tictac[0][1]==tictac[0][2])
>       flag=tictac[0][0];
>       else if (tictac[1][0]==tictac[1][1] && tictac[1][1]==tictac[1][2])
>       flag=tictac[1][0];
>       else if (tictac[2][0]==tictac[2][1] && tictac[2][1]==tictac[2][2])
>       flag=tictac[2][0];
>       else if (tictac[0][0]==tictac[1][0] && tictac[1][0]==tictac[2][0])
>       flag=tictac[0][0];
>       else if (tictac[0][1]==tictac[1][1] && tictac[1][1]==tictac[2][1])
>       flag=tictac[0][1];
>       else if (tictac[0][2]==tictac[1][2] && tictac[1][2]==tictac[2][2])
>       flag=tictac[0][0];
>       else if (tictac[0][0]==tictac[1][1] && tictac[1][1]==tictac[2][2])
>       flag=tictac[0][0];
>       else if(tictac[2][0]==tictac[1][1] && tictac[1][1]==tictac[0][2])
>       flag=tictac[2][0];
>
>
>
>
> Thanx in Advance!!
> Asad Abbas
> UET Taxila
> Pakistan
> ----------------------------------------------------------
>
> One of the main causes of the fall of the Roman Empire was that, lacking
> zero, they had no way to indicate successful termination of their C
> programs.
>
> Robert Firth
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#9092 From: riyaz <riyaz_ina@...>
Date: Wed Oct 21, 2009 2:21 pm
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
riyaz_ina
Offline Offline
Send Email Send Email
 
hi abbas iam riyaz wasalm alaikum "i++" and"++i" is same and equal .when using
individually.it will different when using in staements and expressions check
operators and expressions title in books
--- On Sun, 18/10/09, Asad Abbas <cyberstudent99@...> wrote:

From: Asad Abbas <cyberstudent99@...>
Subject: [c4swimmers.net] for loop i++ and ++i ?
To: "c prog" <c-prog@yahoogroups.com>, "c4swimmers ygroup"
<C4Swimmers@YahooGroups.Com>
Date: Sunday, 18 October, 2009, 11:26 AM













 





                   Why these both statements have same output??

why i++ and ++i works alike in for loop?? 



 

for(int i=0;i<5;i++)

or

for(int i=0;i<5;++i) ;

   cout << i << endl;



//output:

/*

0

1

2

3

4

*/



Thanx in Advance

Asad Abbas

UET Taxila

Pakistan---- --------- --------- --------- --------- --------- ---------



One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.

Robert Firth



[Non-text portions of this message have been removed]


































       Keep up with people you care about with Yahoo! India Mail. Learn how.
http://in.overview.mail.yahoo.com/connectmore

[Non-text portions of this message have been removed]

#9091 From: farrukh ansari <farrukh_ansari30@...>
Date: Wed Oct 21, 2009 3:47 pm
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
farrukh_ansa...
Offline Offline
Send Email Send Email
 
because the for loop evaluate the first two statement and when the for loop body
ends it  evaluate the third statement.
 
 
the working of unary operator++ can be explained as
 
 
suppose,
 
int i=5,j,k;
j=i++;//value of j=5 it will first put the value of i in variable j and then
increament it by 1. 
k=++i;//value of k = 7 here it will first increament the value of i by 1 and
then put it to the variable k. at the end the value of i will be 7 obviously.
 
 
 
run this!!
 
 
int a=5,b,c;
b=a++;
c=++a;
cout<<a;
cout<<b;
cout<<c;
 
 
i hope this would help.


 


    
 
 
           regards,
Muhammad farrukh.

--- On Tue, 10/20/09, abhishek kumar <piyush_tdh@...> wrote:


From: abhishek kumar <piyush_tdh@...>
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
To: c4swimmers@yahoogroups.com
Date: Tuesday, October 20, 2009, 11:02 PM


 



The format of for loop is as follows..
for(stmt1;stmt2; stmt4)
{
stmt3;
}

where stmt=> statement

and the execution sequence is as : pass1(stmt1> stm2>stmt3> stmt4) > stmt2 >
stmt3 > stmt4 ... and so on. .

i think this explanation will clear your doubt.

Thanks & Regards
Abhishek

--- On Sun, 18/10/09, Asad Abbas <cyberstudent99@ yahoo.com> wrote:

From: Asad Abbas <cyberstudent99@ yahoo.com>
Subject: [c4swimmers. net] for loop i++ and ++i ?
To: "c prog" <c-prog@yahoogroups. com>, "c4swimmers ygroup" <C4Swimmers@YahooGro
ups.Com>
Date: Sunday, 18 October, 2009, 4:56 PM

 

Why these both statements have same output??

why i++ and ++i works alike in for loop?? 

 

for(int i=0;i<5;i++)

or

for(int i=0;i<5;++i) ;

   cout << i << endl;

//output:

/*

0

1

2

3

4

*/

Thanx in Advance

Asad Abbas

UET Taxila

Pakistan---- --------- --------- --------- --------- --------- ---------

One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.

Robert Firth

[Non-text portions of this message have been removed]











Keep up with people you care about with Yahoo! India Mail. Learn how.
http://in.overview. mail.yahoo. com/connectmore

[Non-text portions of this message have been removed]



















[Non-text portions of this message have been removed]

#9090 From: epili patro <patrosir@...>
Date: Thu Oct 22, 2009 4:06 am
Subject: Floating point Normalization
patrosir
Offline Offline
Send Email Send Email
 
How floating point data are normalized
if anybody knows
kindly help me
 
 
patro




[Non-text portions of this message have been removed]

#9089 From: "Asad Abbas" <cyberstudent99@...>
Date: Wed Oct 21, 2009 10:55 am
Subject: Re: for loop i++ and ++i ?
cyberstudent99
Offline Offline
Send Email Send Email
 
Thanks all of you for ur suggestions, comments and help!

Thanx again!!

--- In c4swimmers@yahoogroups.com, abhishek kumar <piyush_tdh@...> wrote:
>
> The format of for loop is as follows..
> for(stmt1;stmt2;stmt4)
> {
> stmt3;
> }
>
> where stmt=> statement
>
> and the execution sequence is as : pass1(stmt1>stm2>stmt3>stmt4) > stmt2 >
stmt3 > stmt4 ... and so on. .
>
> i think this explanation will clear your doubt.
>
> Thanks & Regards
> Abhishek
>
>
> --- On Sun, 18/10/09, Asad Abbas <cyberstudent99@...> wrote:
>
> From: Asad Abbas <cyberstudent99@...>
> Subject: [c4swimmers.net] for loop i++ and ++i ?
> To: "c prog" <c-prog@yahoogroups.com>, "c4swimmers ygroup" <C4Swimmers@...>
> Date: Sunday, 18 October, 2009, 4:56 PM
>
>
>
>
>
>
>  
>
>
>
>
>
>                   Why these both statements have same output??
>
> why i++ and ++i works alike in for loop?? 
>
>
>
>  
>
> for(int i=0;i<5;i++)
>
> or
>
> for(int i=0;i<5;++i) ;
>
>    cout << i << endl;
>
>
>
> //output:
>
> /*
>
> 0
>
> 1
>
> 2
>
> 3
>
> 4
>
> */
>
>
>
> Thanx in Advance
>
> Asad Abbas
>
> UET Taxila
>
> Pakistan---- --------- --------- --------- --------- --------- ---------
>
>
>
> One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
>
> Robert Firth
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>       Keep up with people you care about with Yahoo! India Mail. Learn how.
http://in.overview.mail.yahoo.com/connectmore
>
> [Non-text portions of this message have been removed]
>

#9088 From: abhishek kumar <piyush_tdh@...>
Date: Wed Oct 21, 2009 6:02 am
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
piyush_tdh
Offline Offline
Send Email Send Email
 
The format of for loop is as follows..
for(stmt1;stmt2;stmt4)
{
stmt3;
}

where stmt=> statement

and the execution sequence is as : pass1(stmt1>stm2>stmt3>stmt4) > stmt2 > stmt3
> stmt4 ... and so on. .

i think this explanation will clear your doubt.

Thanks & Regards
Abhishek


--- On Sun, 18/10/09, Asad Abbas <cyberstudent99@...> wrote:

From: Asad Abbas <cyberstudent99@...>
Subject: [c4swimmers.net] for loop i++ and ++i ?
To: "c prog" <c-prog@yahoogroups.com>, "c4swimmers ygroup"
<C4Swimmers@YahooGroups.Com>
Date: Sunday, 18 October, 2009, 4:56 PM






 





                   Why these both statements have same output??

why i++ and ++i works alike in for loop?? 



 

for(int i=0;i<5;i++)

or

for(int i=0;i<5;++i) ;

   cout << i << endl;



//output:

/*

0

1

2

3

4

*/



Thanx in Advance

Asad Abbas

UET Taxila

Pakistan---- --------- --------- --------- --------- --------- ---------



One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.

Robert Firth



[Non-text portions of this message have been removed]





























       Keep up with people you care about with Yahoo! India Mail. Learn how.
http://in.overview.mail.yahoo.com/connectmore

[Non-text portions of this message have been removed]

#9087 From: abhishek kumar <piyush_tdh@...>
Date: Wed Oct 21, 2009 5:56 am
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
piyush_tdh
Offline Offline
Send Email Send Email
 
for(stmt.1;stmt2;stmt4)
    {
          stmt4;

--- On Sun, 18/10/09, Asad Abbas <cyberstudent99@...> wrote:

From: Asad Abbas <cyberstudent99@...>
Subject: [c4swimmers.net] for loop i++ and ++i ?
To: "c prog" <c-prog@yahoogroups.com>, "c4swimmers ygroup"
<C4Swimmers@YahooGroups.Com>
Date: Sunday, 18 October, 2009, 4:56 PM






 





                   Why these both statements have same output??

why i++ and ++i works alike in for loop?? 



 

for(int i=0;i<5;i++)

or

for(int i=0;i<5;++i) ;

   cout << i << endl;



//output:

/*

0

1

2

3

4

*/



Thanx in Advance

Asad Abbas

UET Taxila

Pakistan---- --------- --------- --------- --------- --------- ---------



One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.

Robert Firth



[Non-text portions of this message have been removed]





























       Keep up with people you care about with Yahoo! India Mail. Learn how.
http://in.overview.mail.yahoo.com/connectmore

[Non-text portions of this message have been removed]

#9086 From: ravi sundriyal <ravisundriyal@...>
Date: Wed Oct 21, 2009 5:43 am
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
ravisundriyal@...
Send Email Send Email
 
for(int i=0;i<5;i++)    &    for(int i=0;i<5;++i)   are both same.

Here i++ or ++i is being used to increment the value of i by 1, which they
both do that means here they are serving the same purpose.

the value of some expressions change with the use of these two unary
operators, that is because in those expressions some other operators are
also used along with pre and post increment operators, and in that situation
these two operators are evaluated differently... and give different results.

Hope I am clear ;)

R


On Sun, Oct 18, 2009 at 4:56 PM, Asad Abbas <cyberstudent99@...>wrote:

>
>
> Why these both statements have same output??
> why i++ and ++i works alike in for loop??
>
>
> for(int i=0;i<5;i++)
> or
> for(int i=0;i<5;++i);
>    cout << i << endl;
>
> //output:
> /*
> 0
> 1
> 2
> 3
> 4
> */
>
> Thanx in Advance
> Asad Abbas
> UET Taxila
> Pakistan----------------------------------------------------------
>
> One of the main causes of the fall of the Roman Empire was that, lacking
> zero, they had no way to indicate successful termination of their C
> programs.
> Robert Firth
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#9085 From: Venkatesan pachamuthu <pvenkatesan83@...>
Date: Wed Oct 21, 2009 4:14 am
Subject: Re: [c4swimmers.net] for loop i++ and ++i ?
pvenkatesan83
Offline Offline
Send Email Send Email
 
Hi,  ++i; This statement first increment the value and store the variable  i++;
This statement is first store the variable and increment the value,so increment
value doesn't store the variable
below the coding is see the differents b/w pre increment and post increment(it
differents seems the single line operation)  int i=5;  printf("%d %d",++i,i++);

Thanks and RegardsVenkatesan.P

--- On Sun, 18/10/09, Asad Abbas <cyberstudent99@...> wrote:

From: Asad Abbas <cyberstudent99@...>
Subject: [c4swimmers.net] for loop i++ and ++i ?
To: "c prog" <c-prog@yahoogroups.com>, "c4swimmers ygroup"
<C4Swimmers@YahooGroups.Com>
Date: Sunday, 18 October, 2009, 4:56 PM













 





                   Why these both statements have same output??

why i++ and ++i works alike in for loop?? 



 

for(int i=0;i<5;i++)

or

for(int i=0;i<5;++i) ;

   cout << i << endl;



//output:

/*

0

1

2

3

4

*/



Thanx in Advance

Asad Abbas

UET Taxila

Pakistan---- --------- --------- --------- --------- --------- ---------



One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.

Robert Firth



[Non-text portions of this message have been removed]


































       Add whatever you love to the Yahoo! India homepage. Try now!
http://in.yahoo.com/trynew

[Non-text portions of this message have been removed]

#9084 From: Asad Abbas <cyberstudent99@...>
Date: Mon Oct 19, 2009 11:33 am
Subject: Think Like a Beginner to Become an Expert!
cyberstudent99
Offline Offline
Send Email Send Email
 
Hi all,

I am new to c++, and i want to expand my knowledge on c++. i want to ask that
any
respectable member have beginner level programming problems, then please post
it.
Beacause that problems will help the beginners like me to enhance their
programming
vison and to do better in future.
Thanks in advance.

Asad Abbas
UET Taxila
Islamabad
Pakistan
 -------------------------------------------------------------------------------\
-

One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.


Robert Firth




[Non-text portions of this message have been removed]

#9083 From: Asad Abbas <cyberstudent99@...>
Date: Sun Oct 18, 2009 10:37 am
Subject: Tic tac toe!
cyberstudent99
Offline Offline
Send Email Send Email
 
 Hi All,
i was making "tictac toe" a famous game.

i made it but the following portion of the prog although it works but it does
not seems good to me.
i wonder if i can do it with some loops or something else...

// checking if any player has entered a winning combination
// this code cheks all 8 winning combinations!
//but i wud like to know if i can do it with some alternative way
//2D array name "tictac[][]"


  if (tictac[0][0]==tictac[0][1] && tictac[0][1]==tictac[0][2])
      flag=tictac[0][0];
      else if (tictac[1][0]==tictac[1][1] && tictac[1][1]==tictac[1][2])
      flag=tictac[1][0];
      else if (tictac[2][0]==tictac[2][1] && tictac[2][1]==tictac[2][2])
      flag=tictac[2][0];
      else if (tictac[0][0]==tictac[1][0] && tictac[1][0]==tictac[2][0])
      flag=tictac[0][0];
      else if (tictac[0][1]==tictac[1][1] && tictac[1][1]==tictac[2][1])
      flag=tictac[0][1];
      else if (tictac[0][2]==tictac[1][2] && tictac[1][2]==tictac[2][2])
      flag=tictac[0][0];
      else if (tictac[0][0]==tictac[1][1] && tictac[1][1]==tictac[2][2])
      flag=tictac[0][0];
      else if(tictac[2][0]==tictac[1][1] && tictac[1][1]==tictac[0][2])
      flag=tictac[2][0];
     
 
 
 
Thanx in Advance!!
Asad Abbas
UET Taxila
Pakistan
--------------------------------------------------------------------------------


One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.


Robert Firth




[Non-text portions of this message have been removed]

Messages 9083 - 9112 of 9112   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help