I will make this suggestion though...
If you have 4 months of C++ use that to your advantage. That should have taught you how to think in a logical and programatic manner.
The logic of solving this is no different between C++ and C#. Its just minor syntax differences.
So write the project up in C++ first. Use what you know. Then translate it to C#.
19 Replies - 357 Views - Last Post: 03 February 2012 - 07:40 AM
Topic Sponsor:
#17
Re: Reading Strings and Conversion
Posted 02 February 2012 - 08:19 PM
Quote
I did c++ before,
Really?! Did you fail?
Programming is mainly thinking a solving problems.
Problem Solving (3-Step Solution)
- Has my problem been seen before?
Yes: What solutions are there?
Research - Has so sub-set of my problem been seen before?
Yes: What solutions are there?
Research - How can I use the solutions to solve my problem?
Research & Experimentation
Understand what type thing return also helps.
Indexing on a string returns char. String [ Integer ] -> Char
eg:- Char c = myString[0];
So does Char have any method that check the Case of a char?
#18
Re: Reading Strings and Conversion
Posted 02 February 2012 - 08:27 PM
I was just looking for some help, take it easy. Just because i havent coded that long doesnt mean you have to sit here and bash me.
#19
Re: Reading Strings and Conversion
Posted 02 February 2012 - 08:33 PM
That maybe so, but we expect someone who is at College to have the basic research skills down. That extends beyond be able to do a Google search.
#20
Re: Reading Strings and Conversion
Posted 03 February 2012 - 07:40 AM
Your basic operation is extracting a character from your string by referencing the position (as Adam said above)
and then you need to check whether it is an uppercase or lowercase letter. You can use the ASCII Table to do this, and writing your own function to do it will be a profitable exercise. It's a very small function!
char c = myString[0]
and then you need to check whether it is an uppercase or lowercase letter. You can use the ASCII Table to do this, and writing your own function to do it will be a profitable exercise. It's a very small function!
|
|

New Topic/Question
Reply





MultiQuote




|