15,902,938 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 Member 13515388 (Top 8 by date)
Member 13515388
11-Nov-17 13:06pm
View
I know but I've thought of all these questions but I couldn't do them :( I'm a beginner in c programming
Member 13515388
11-Nov-17 11:58am
View
thanksss a lot now i have to fix the program to show me the character instead of symbols :))
Member 13515388
11-Nov-17 11:42am
View
of course i will
Member 13515388
11-Nov-17 11:41am
View
sorry but i don't understand why you put n=0 in the first for
Member 13515388
11-Nov-17 11:35am
View
thanks a lot :))
Member 13515388
11-Nov-17 9:53am
View
#include<stdio.h>
int main()
{
char a[50],b[50];
int f,c,d,i=0,j=0;
printf("reshte morede nazar ra vared konid :\t");
gets(a);
printf("ebteda :\t");
scanf("%d",&f);
printf("enteha :\t");
scanf("%d",&c);
printf("maghsad :\t");
scanf("%d",&d);
for(i=0;a[i]!='\0';i++){
if(f<=i && i<=c){
b[j]=a[i-1];
j++;
}
}
this is my program till now ! it cuts a part of my string and it pastes it in another string , now i wanna copy the b[j] in a[c] ! like a[50] is abcdefghi and i enterd f=3 , c=5 and d=7 then it cuts cde and move it in b[j] now i want it to show cde in g place but idk how
Member 13515388
11-Nov-17 9:45am
View
thanks a lot :)
Member 13515388
11-Nov-17 7:54am
View
I have tried this but I still have problem with how to paste the characters :(
Show More