You are here:

C++/String Function

Advertisement


Question
Hi
I was asked to do this program using functions from the string.h file.  Any suggestions?  
Make a small program that first displays a line that displays only vowels, then displays a line that displays only consonants from a pre-assigned string.  You may use strlen(), and strchr().  Your program should contain three strings.  

Str1 = "a sentence with vowels"
Str2 = "aeiou"
str3 = "sntnc wth vwls"

Thank you
Katrina

Answer
Hello Katrina,

I was hoping you could be a little bit more specific for me. According to what you say the program should do, you have your 3 sentences up there already. Could you please go a little bit more in depth on what the problem is?

Thank you for the question.

- Eddie  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Eddie

Expertise

I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by ExpertRating.com. I also know a good deal about graphics via OpenGL, and GUIs.

Experience

I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2012 About.com, a part of The New York Times Company. All rights reserved.