Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Linux
Hi,
 
may u help me please how can i convert ' * ' to ' . ' and inverse in c?
 
many thanks
 
-lida
Posted 1-Dec-12 19:29pm
Comments
Sergey Alexandrovich Kryukov at 2-Dec-12 0:53am
   
I cannot understand purpose of your question. Next time you will need to "convert" "apple" to "orange", will ask another question? Stop wasting time! Get to work! I saw all of your questions -- no one will help you.
--SA
lida zar at 2-Dec-12 1:21am
   
u behave with a student very bad ... u r so bad-tempered Mr. Sergey ... to be a good software developer u first need to correct ur behavior ...
Sergey Alexandrovich Kryukov at 2-Dec-12 1:28am
   
I am trying to help you. To me, it's to late to become a good software developer -- probably I won't ever be, so don't worry about it.
 
And please think about your own behavior: you probably think that you are polite, but in fact you just spam the site. Do you think it's nice? This is just immoral, as well as such laziness. I'm trying to convince you, for your own good, but afraid it's useless. I have too much patience to you, because you apparently not learning from criticism.
 
--SA
lida zar at 2-Dec-12 1:37am
   
thanks anyways , but its not spam ... i'm only a student and i 'm learning from here everything ... so why u wanna ged rid of me by ur messages ... u thought only advanced program should share here ... its not square :(
Sergey Alexandrovich Kryukov at 2-Dec-12 13:54pm
   
OK, right, this is not spam, but my point is: you will start getting help from questions when you realize that your previous questions were spam. You just need to start working by yourself, that's the key.
--SA
lida zar at 2-Dec-12 1:18am
   
i mean that in a line of reading file if there was '*' character i wanna convert it to ' . ' and if there was ' . ' i wanna convert it to ' * ' ... thanks.
lida zar at 2-Dec-12 2:08am
   
thanx friend i got my reply but after complete my program i ask my problem ... many thanks for ur kindness :)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

char convert(char input) {
    if (input == '*')
       return '.'
    else
       return input; // or something else
} // :-)
 
and visa versa...
 
—SA
  Permalink  
v2
Comments
lida zar at 2-Dec-12 1:29am
   
thanx very much
Sergey Alexandrovich Kryukov at 2-Dec-12 13:55pm
   
Anytime, but thing about efficiency of your questions. :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 2 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100