Click here to Skip to main content
11,802,389 members (30,343 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C Linux

may u help me please how can i convert ' * ' to ' . ' and inverse in c?

many thanks

Posted 1-Dec-12 18:29pm
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.
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.

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.
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
Please Sign up or sign in to vote.

Solution 1

char convert(char input) {
    if (input == '*')
       return '.'
       return input; // or something else
} // :-)

and visa versa...

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. :-)

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

  Print Answers RSS
0 OriginalGriff 475
1 KrunalRohit 366
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CHill60 220
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 2 Dec 2012
Copyright © CodeProject, 1999-2015
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