16,020,822 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 Visual Basic questions
View Javascript questions
View .NET 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 mf_arian (Top 11 by date)
mf_arian
14-Feb-11 16:15pm
View
thank you
mf_arian
14-Feb-11 16:00pm
View
my program doesnot have error
mf_arian
14-Feb-11 15:55pm
View
How ?
if i want that my program get the (30 input x) from a file what should i do?
mf_arian
14-Feb-11 15:47pm
View
no
mf_arian
13-Feb-11 11:34am
View
i donnot know what do you say?
mf_arian
13-Feb-11 10:37am
View
but i want that just count the char without space and dot
mf_arian
13-Feb-11 9:50am
View
i donnot know what should i do?
mf_arian
10-Feb-11 3:26am
View
Deleted
but this program always cout no
// try.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <string.h>
#include<iostream>
using namespace std;
int main ()
{
char str[] ="10 input x";
char * pch;
pch = strtok (str," ,.-");
int i = 0;
while (pch != NULL)
{
printf ("%s\n",pch);
pch = strtok (NULL, " ,.-");
i++;
if((i == 1) && strcmp( pch, "input"))
{
cout<<"yes";
}
else
{
cout<<"no";
}
}
return 0;
}
andd this program always cout yes
#include "stdafx.h"
#include <stdio.h>
#include <string.h>
#include<iostream>
using namespace std;
int main ()
{
char str[] ="10 input x";
char * pch;
pch = strtok (str," ,.-");
int i = 0;
while (pch != NULL)
{
printf ("%s\n",pch);
if((i == 1) && strcmp( pch, "input"))
{
cout<<"yes";
}
else{
cout<<"no";
}
pch = strtok (NULL, " ,.-");
i++;
}
return 0;
}
mf_arian
4-Feb-11 8:52am
View
I did it but it was not useful thanks
mf_arian
4-Feb-11 8:20am
View
can you write in the way that you think is true , please?
mf_arian
4-Feb-11 8:00am
View
I look at it but it does not show me the file that i save it in a computer i want to see it and use it in my program
Show More