If this is your first visit C Vietnamese community forum, please learn the rules involved, parasuco read the instructions before you register for an account. parasuco You have to register first, or sign in with your Facebook account you can send messages, download attachments.
Code: #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> int main () {char * str = (char *) malloc (sizeof (char)) ; printf ("Enter the string:"); gets (str); DoDaiChuoi int = strlen (str); Rub cavity in the middle of the page // int i, j; for (i = 0; i <= DoDaiChuoi - 1; i ++) {while ((str [i] == '' || str [i] == '\ t') && (str [i + 1] == '' || str [i + 1] == '\ t')) {for (j = i + 1; j <= DoDaiChuoi; j ++) str [j] = str [j + 1]; }} Printf ("\ n \ n"); // Remove the first whitespace parasuco string. if (str [0] == '') {for (i = 0; i <DoDaiChuoi; i ++) str [i] = str [i + 1]; } // Remove whitespace string parasuco end if (str [DoDaiChuoi] == '') str [DoDaiChuoi] = '\ 0'; printf ("bad after treatment: \ n"); printf ("% s", str); getch (); return 0; }
{
}
return 0;
Quick Navigation Introduction to programming in C / C ++ Top Areas of Web Settings Messages Subscriptions Who's Online Search Forums parasuco Forums Home The Forum COMMUNITY C VIETNAM Announcements Comments, suggestions and complaints ORIENTATION , TRAINING & EMPLOYMENT INDUSTRY parasuco IT IT Training Experience IT Conference, Symposium parasuco and Contests IT Recruitment - Jobs IT Jobs IT (free) PROGRAMMING VISUAL C # Questions Programming parasuco C # Question programming ASP.NET Programming with C # Windows Mobile Tricks and Tutorials Programming C #, ASP.NET Projects & Source code C #, ASP.NET Tools, ebooks C #, ASP.NET, and Windows Mobile PROGRAMMING OBJECTIVE-C Introduction Objective-C Programming Questions IPhone, IPad, Mac OS X Questions Objective-C Programming Tutorials and Tricks Objective-C programming tools, documentation Objective-C parasuco Programming Questions JAVA PROGRAMMING Programming Java Programming Android and Java Mobile Tutorials and Tricks Java Programming Projects & Source code Java tools, ebooks Java PROGRAMMING VISUAL C ++ | PROGRAMMING VISUAL C ++. NET Questions Programming Visual C ++ Windows API Hooking handle Windows Message Programming Virus & Anti-Virus Tutorials and Tricks Visual C ++ Projects & Source code VC ++ tools, ebooks VC ++ PROGRAMMING C ++ | PROGRAMMING C | PROGRAMMING C ++ 0X Questions Programming parasuco C / C ++ / C ++ 0x Questions CTDL & Algorithms discussion, feedback code C / C ++ Your Tricks, Tutorials and Code C / C ++ / C ++ 0x Tricks, Tutorials CTDL & Algorithms documents, ebooks and tools PROGRAMMING IN LINUX | LINUX PROGRAMMING Questions shell programming Linux Questions Programming C / C ++ on Linux Tricks, Tutorials and Source Tools, Documentation programming on Linux DATABASE & REPORTING | SYSTEMS MANAGEMENT DATABASE Questions General Database & Reporting Questions Enquiries with Oracle & Microsoft Access Microsoft SQL Server MySQL and SQLite parasuco Questions Tricks, Tutorials parasuco Database Documentation, ebooks DB C VIETNAMESE COMMUNITY MEMBERS Members Imagery Product Ideas Your IT Products DISCUSSION parasuco your software General Enquiries General English for IT | English for IT People Software (Software) | Ebooks ENTERTAINMENT CATEGORY Exchange - Slashing Wind Leisure - Relaxation
No comments:
Post a Comment