15,887,351 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ho_khalaf (Top 20 by date)
ho_khalaf
26-Aug-13 16:48pm
View
thank for your good answer.but i did not ask question very well and i change my question.
ho_khalaf
8-Dec-12 13:14pm
View
thank you very much.
good luck
ho_khalaf
8-Dec-12 9:38am
View
i update the code i wrote it wring before.when i use this code and want to sort all string did not work good.when i use i-1 it work good.
ho_khalaf
28-Nov-12 10:24am
View
because of compiler bug.when use char in scanf("%c",a) in big program scanf read hole line and it dose not read just a character.
ho_khalaf
28-Nov-12 9:14am
View
Yes i understand.I use a "string" instead of "char" as input for "scanf".
ho_khalaf
27-Nov-12 17:34pm
View
thank you very much.i test your solution and worked good.
you are good programer in c\c++ programing.
ho_khalaf
27-Nov-12 15:41pm
View
your code is good but when i use it like this did not work.
#include <stdio.h>
#include <stdlib.h>
void scan_frac(int *num,int *denom);
int main(void){
int num1,denom1;
char again;
do{
scan_frac(&num1,&denom1);
printf("insert (y)to do another problem");
fflush(stdout);
again=getchar();
getchar();
}while(again=='y'||again=='Y');
return 0;
}
ho_khalaf
27-Nov-12 15:40pm
View
your code is good but when i use it like this did not work.
#include <stdio.h>
#include <stdlib.h>
void scan_frac(int *num,int *denom);
int main(void){
int num1,denom1;
char again;
do{
scan_frac(&num1,&denom1);
printf("insert (y)to do another problem");
fflush(stdout);
again=getchar();
getchar();
}while(again=='y'||again=='Y');
return 0;
}
ho_khalaf
27-Nov-12 15:39pm
View
Deleted
your code is good but when i use it like this did not work #include #include void scan_frac(int *num,int *denom); int main(void){ int num1,denom1; char again; do{ scan_frac(&num1,&denom1); printf("insert (y)to do another problem"); fflush(stdout); again=getchar(); getchar(); }while(again=='y'||again=='Y'); return 0; } void scan_frac(int *num,int *denom){ int n,dn; printf("insert numerator and denominator:"); fflush(stdout); scanf("%d%d",&n,&dn); *num=n; *denom=dn; }
ho_khalaf
27-Nov-12 15:38pm
View
your code is good but when i use it like this did not work
#include <stdio.h>
#include <stdlib.h>
void scan_frac(int *num,int *denom);
int main(void){
int num1,denom1;
char again;
do{
scan_frac(&num1,&denom1);
printf("insert (y)to do another problem");
fflush(stdout);
again=getchar();
getchar();
}while(again=='y'||again=='Y');
return 0;
}
void scan_frac(int *num,int *denom){
int n,dn;
printf("insert numerator and denominator:");
fflush(stdout);
scanf("%d%d",&n,&dn);
*num=n;
*denom=dn;
}
ho_khalaf
26-Nov-12 18:07pm
View
no problem you do best job as you can.
ho_khalaf
26-Nov-12 17:43pm
View
i ask it in eclipse.org community and get this answer: "printf("insert a");
fflush(stdout);scanf("%d",&a);".it was good and worked.
thank you again.
ho_khalaf
26-Nov-12 16:08pm
View
thank you very much
ho_khalaf
26-Nov-12 15:50pm
View
when i execute the executable file it work good as my expect but in eclipse ide did not work.
ho_khalaf
26-Nov-12 15:40pm
View
yes but did not work
ho_khalaf
26-Nov-12 14:28pm
View
i rad it befor and i know that eclips did not show the console.but eclips have console tab and in that tab did not show any thing.
ho_khalaf
26-Nov-12 13:37pm
View
i chek my code in codebloks ide an work good.but in eclips it did not work
ho_khalaf
26-Nov-12 13:23pm
View
sorry i am new user of this site an i dont know much about asking question
ho_khalaf
26-Nov-12 13:01pm
View
it compile but did not do any thing.when i stop the program just print insert a.and when i run it again the console tab is empty.
ho_khalaf
26-Nov-12 13:00pm
View
Deleted
it compile but did not do any thing.when i stop the program just print insert a.and when i run it again the console tab is empty.
Show More