Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,926 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,630 people online right now. Registration is fast and FREE... Join Now!




Does anyone have C++ code to count the occurance of each letter and al

 
Reply to this topicStart new topic

Does anyone have C++ code to count the occurance of each letter and al

Bananna
18 May, 2008 - 02:29 PM
Post #1

New D.I.C Head
*

Joined: 7 May, 2008
Posts: 5

It is my last program for this intro C++ class. I have way too much to study. Finals in Physics and Differential Equations and I would LOVE you FOREVER if you could save me the time it would take to write this pgrm.
Thanks soooooo much if you can share your code with me!!! smile.gif

Here is the paragraph I have to use.

All components of an array must be of the same data type; while not extreme this is a serious limitation since there are many situations in which this is not possible. Fortunately, most
programming languages provide another structured data type, structures, which allow heterogeneous information to be stored, accessed, and manipulated. A structure contains fields, which can be of different data types.

so punctuation is just (, . wink2.gif

User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Does Anyone Have C++ Code To Count The Occurance Of Each Letter And Al
18 May, 2008 - 02:39 PM
Post #2

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,514



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
*sigh*

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

If you really can't be bothered, try searching the forums. There's plenty of stuff out there.
User is offlineProfile CardPM
+Quote Post

KYA
RE: Does Anyone Have C++ Code To Count The Occurance Of Each Letter And Al
18 May, 2008 - 03:44 PM
Post #3

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,733



Thanked: 89 times
Dream Kudos: 1200
My Contributions
QUOTE(gabehabe @ 18 May, 2008 - 04:39 PM) *

*sigh*


Totally
User is online!Profile CardPM
+Quote Post

skater_00
RE: Does Anyone Have C++ Code To Count The Occurance Of Each Letter And Al
18 May, 2008 - 05:37 PM
Post #4

D.I.C Head
Group Icon

Joined: 30 Apr, 2008
Posts: 173



Thanked: 4 times
Dream Kudos: 50
My Contributions
cpp

#include <iostream>

using namespace std;

int main()
{
int number(0);

while (true) {
cout << "Enter a number from 0 - 100: ";

cin >> number;

if (number >= 0 && number <= 100)
cout << endl << "You should definitely stop being lazy, learn to do an effort first" <<
" and write code before asking someone else to do it." << endl << endl;
else
cout << endl << "You should definitely stop being lazy, learn to do an effort first" <<
" and write code before asking someone else to do it." << endl << endl;
}

return 0;
}


This post has been edited by skater_00: 18 May, 2008 - 05:38 PM
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Does Anyone Have C++ Code To Count The Occurance Of Each Letter And Al
19 May, 2008 - 02:02 AM
Post #5

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,514



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
For a minute, I thought you'd actually given him the code laugh.gif
User is offlineProfile CardPM
+Quote Post

KYA
RE: Does Anyone Have C++ Code To Count The Occurance Of Each Letter And Al
19 May, 2008 - 02:08 AM
Post #6

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,733



Thanked: 89 times
Dream Kudos: 1200
My Contributions
Awesome icon_up.gif
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:18AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month