C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 27th, 2012, 02:55 AM
ckking ckking is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 ckking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 45 sec
Reputation Power: 0
General - Give some suggestion

just now i writing a program to count person"lila"enter the gate ,other just simply print welcome.that the program is just count how many of time lila enter the gate that display it. this my code but i dun know how to break the loop,it able to display but the loop got problem .pls help! and can u suggest other method to write that this one .tq

Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main()
{
    int i,count;
    char name[500];
    printf("please enter you name:\n");
    scanf("%s",name);

    if(strcmp(name,"lila")==0)
    {
         for(i = 1; i <= count; i = i + 1){
         printf("number of enter=%d", i);
   
        }
        return;
       
    }
    else
    {
        printf("welcome\n");
        return 0;
    }
   
}

Reply With Quote
  #2  
Old December 30th, 2012, 01:25 PM
petervasilev petervasilev is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 10 petervasilev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 19 sec
Reputation Power: 0
First of all go and spend some time rewriting your post, your question is almost incomprehensible to me. go study some english if you have to. From what I've managed to decrypt from your post your problem seems very basic. So just type in Google "C++ programming" and click on the first link it will lead to a very good website with lots of info and tutorials about C++ and C study there for a couple of days and I am sure you will solve your problem. Otherwise I see that your talking about some loop but I can't see any loops in your code.

To improve your language skills you might want to use the following piece of software: RosettaStone

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > General - Give some suggestion


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap