hi senthil,
try with this web link u have a open source code for xml parser it will be help full for u.
http://xml.apache.org/xerces-c ...
User Profile
Collapse
-
madhan,
It is not big work to call a file and read the first line and 2nd line alone
use fgets() function to read the data from the file.
try this it must work....
regards
Prakash R....Leave a comment:
-
hii
This may help u out...
int main(void)
{
char *str1="hi";
char *str2="happy";
int str1len ;
int str2len ;
int i ;
int count =0 ;
str1len = strlen(str1);
str2len = strlen(str2);
for(i=0;i<((str 1len>str2len)?s tr1len:str2len) ;i++)...Leave a comment:
-
hi buddy,
ref this page u ll find solution for this :
http://xml.apache.org/xerces-c/
regards
Prakash RavindranLeave a comment:
-
I belive this sample will work 4 u
#include <string.h>
#include <stdio.h>
char string[] = "23.45,5645.3,4 53.2,3234.45,45 .34,56.78,345.6 7,45.2";
char seps[] = ",\n";
char *token;
char **list;
int main( void )
{
int i ;
int j ;
int k ;
k = 0 ;
...Leave a comment:
-
here all the values are processed as a character string so that wont give any problem for ur FLOAT values, B'coz that FLOAT value is also considered as a character String.......Leave a comment:
-
Here there is a sample code for u....
#include <string.h>
#include <stdio.h>
char string[] = "A string\tof ,,tokens\nand some more tokens";
char seps[] = " ,\t\n";
char *token;
int main( void )
{
printf( "Tokens:\n" );
// Establish string and get the first token:
token = strtok( string, seps...Leave a comment:
-
hi,
you can solve ur problem using strtok(char *s1, const char *s2) function.Leave a comment:
-
hi,
The problem is not in the 'computeBestHot elBestMonth' it will work fine. The bug is the 'computeBestHot elInAMonth' function
int computeBestHote lInAMonth(int totalguests[HOTELS][MONTHS])
{
int month;
int hotel;
int bestHotel;
cout<<"Enter the Month:"<<endl;
cin >> month;
switch (month)
{
...Leave a comment:
-
Hi buddy,
It very easy use pow() function.
Include a header file math.h and then add this function
z = pow( x, n );
That's it! it ll work fine.....Leave a comment:
No activity results to display
Show More
Leave a comment: