تبلیغات
دانلود سورس پروژه های مختلف برنامه نویسی، آموزش برنامه نویسی - سورس برنامه ی شمارنده ی حروف و ارقام
دانلود سورس پروژه های مختلف برنامه نویسی، آموزش برنامه نویسی
دانلود رایگان سورس پروژه
سایت برنامه نویسی تک کدر takcoder.ir


آموزش برنامه نویسی با استفاده از نوین ترین روش و ارائه پروژه های نمونه و مجموعه عظیم سورس کدهای آماده برای شما دوستان

مدیر سایت : Yahya Taherzadeh
نویسندگان
نظرسنجی
زبان برنامه نویسی مورد علاقه شما؟






این برنامه در سی پلاس پلاس که یک رشته از ورودی گرفته و تعداد حروف بزرگ، حروف کوچک، اعداد، کاراکتر های ویژه و تعداد کلمات را شمرده و نمایش می دهد.
نکته: در ابتدای شروع برنامه شما باید یک پارگراف( هر چی که دلتون میخواد) بنویسید، بعد از زدن اینتر، در خروجیمشخصات کاراکترهای موجود در پاراگراف را میدهد.
#include <iostream.h>
#include <conio.h>
int main()
{
    int word_counter=0,small_chars=0,large_chars=0,number_counter=0,special_chars=0;
    char ch=0;

    while((ch=getche())!='\r')
    {
if(ch>='a'&&ch<='z')
small_chars++;
else if(ch>='A'&&ch<='Z')
large_chars++;
else if(ch>='0'&&ch<='9')
number_counter++;
else if(ch==' '||ch==',' || ch=='.')
word_counter++;
else
special_chars++;
    }
    word_counter++;

    cout<<"\n\n >Word Count= "<<word_counter<<"\n\n >Small Characters Count= "<<small_chars
    <<"\n\n >Large Characters Count= "<<large_chars<<"\n\n >Number Count= "<<number_counter
    <<"\n\n >Special Characters Count= "<<special_chars;


cout<<"\n\n";
    getch();
    return 0;
}





نوع مطلب : آموزش، سی| سی پلاس پلاس، پروژه های رایگان، پروژه های تکمیل شده، 
برچسب ها : شمارنده، برنامه ی شمارنده، شمارنده حروف، شمارنده کلمات، برنامه ی شمارنده C++، تعداد حروف، رشته،
لینک های مرتبط :
Yahya Taherzadeh
چهارشنبه 20 آذر 1392
دوشنبه 10 اردیبهشت 1397 03:04 ب.ظ
I am not sure where you're getting your information, but good topic.
I needs to spend some time learning much more or understanding more.
Thanks for wonderful information I was looking for this information for my mission.
دوشنبه 10 اردیبهشت 1397 02:00 ب.ظ
That is very fascinating, You are an overly skilled
blogger. I have joined your rss feed and stay up
for in search of extra of your fantastic post.
Also, I have shared your website in my social networks
شنبه 18 شهریور 1396 03:54 ق.ظ
I'm really inspired along with your writing skills as well as with the structure on your weblog.
Is that this a paid subject matter or did you customize it your
self? Either way keep up the nice quality writing, it is uncommon to peer a
great weblog like this one these days..
شنبه 14 مرداد 1396 07:09 ب.ظ
Pretty nice post. I simply stumbled upon your blog and wanted to mention that I've truly
loved browsing your blog posts. After all I will be subscribing
on your rss feed and I hope you write again soon!
شنبه 14 مرداد 1396 12:38 ب.ظ
WOW just what I was searching for. Came here by searching for سورس
شنبه 14 مرداد 1396 08:28 ق.ظ
I love your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to do it for you?
Plz reply as I'm looking to design my own blog and would like
to find out where u got this from. appreciate it
یکشنبه 11 تیر 1396 09:55 ق.ظ
Loving the info on this internet site, you have done great job on the content.
چهارشنبه 13 اردیبهشت 1396 05:56 ب.ظ
My developer is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the costs. But he's tryiong none the less.
I've been using Movable-type on several websites for about a year and am
nervous about switching to another platform.
I have heard very good things about blogengine.net. Is there a way I can import all my wordpress posts into it?
Any help would be greatly appreciated!
یکشنبه 27 فروردین 1396 11:50 ب.ظ
Howdy! This blog post could not be written much better!
Looking at this post reminds me of my previous
roommate! He continually kept talking about this.
I am going to forward this article to him.

Pretty sure he's going to have a great read.
I appreciate you for sharing!
جمعه 25 فروردین 1396 07:34 ب.ظ
This website was... how do I say it? Relevant!! Finally I
have found something which helped me. Kudos!
یکشنبه 20 فروردین 1396 11:34 ق.ظ
I'm no longer certain where you are getting your
info, but great topic. I needs to spend some time learning more or working out more.
Thanks for excellent information I was in search of this information for
my mission.
چهارشنبه 9 دی 1394 05:13 ب.ظ
برنامه خطا داره
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر




صفحات جانبی
آمار وبلاگ
تاییدیه پرداخت
تبلیغات
به سایت تک کدر خوش آمدید