Hey, How would I search the whole line of text.
Hey, Wibit's ! I am newbie / begginer.
I just looked at the variables and control structures videos from our best men's: Brian and Kevin.
I kind of came up with my own idea from that, which is more like grammer correction.
My program wants to do: Get line of text from the user, when user enter the line. It needs to go through a checking where it checks for words that should have been capitals. Ie, Names: kevin should be Kevin much like the word correction.
Here is my current code:
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int MAXNAMES = 5;
int main()
{
string names[MAXNAMES] = {"Vrutin","Charlie","Johnson","Vicky"};
char text[100];
gets(text);
for(int i=0; i<MAXNAMES[i]; i++)
{
Yes, its a blank loop as I cant seem to understand how I would go around this.
}
printf("You Typed The Following: %s", text);
cin.get();
return 0;
}
Forum Rules/Features
Welcome to the WiBit.net forums! Check out our terms and features:
Hot Topic(s)
Annoy your friends
Is this something you think someone else would enjoy? Is it not for you, but do you know someone who is down with this type of content? Well share away:
Tweet
The Blog
Don't Let XML Make You a Cheater
This blog is a reminder that cheating in software development can get you into big trouble. Sometimes developers get really really lazy, OR are pressured to write something using overly simplified data structures. Almost every time this happens you are bitten in the butt! Sometimes the problems show up immediately and other times it may take months or years (especially in integrated systems).
- 1 of 78
- ››







