Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 528 results for
pch
- Page 1
Re: PCH error
Programming
Software Development
15 Years Ago
by Nick Evan
… Header', so you've created a project that requires a
PCH
but you didn't include it. Just add [icode]#include…] as the very first line in your code. Or turn
PCH
off, but since you didn't tell which compiler (version…
Re: Pointers (archived tutorial)
Programming
Software Development
17 Years Ago
by Ancient Dragon
…[0]; Example 1-1 Above line is incorrect because pointer
pch
is uninitialized. >>ptr = &n[0]; Example 1…
PCH error
Programming
Software Development
15 Years Ago
by WondererAbu
…;Teacher.h" using namespace std;// syntax error : missing ';' before '
PCH
creation point' teacher::teacher(int tid,int cid,char *teachname…
static lib with .pch file
Programming
Software Development
13 Years Ago
by student89
….h * precompiled header file $(IntDir)\$(TargetName).
pch
and then i got that .lib file + .
pch
file and put it in another project… i included "xmlparser.
pch
" but i dont know how to use classes from…
Re: static lib with .pch file
Programming
Software Development
13 Years Ago
by Ancient Dragon
The *.
pch
file is of no use outside the project that created …
error C1189: #error : include 'stdafx.h' before including this file for PCH
Programming
Software Development
14 Years Ago
by bobbuilder67
… C1189: #error : include 'stdafx.h' before including this file for
PCH
Please help me, I am stuck. Attached Files: [url]http…
convert into c# from c
Programming
Software Development
10 Years Ago
by nnayram
…,
pch
, strlen (
pch
) ); records[index].code[strlen (
pch
) ] = '\0';
pch
= strtok ( NULL, delim ); memcpy (records[index].name,
pch
, strlen (
pch
) ); records[index].name[strlen (
pch
) ] = '\0';
pch
= strtok…
segmentation fault
Programming
Software Development
13 Years Ago
by watery87
…); // 9) Retrieve Currency strcpy (ctryRec.Currency,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 10) Retrieve CurrencyCode strcpy (ctryRec.CurrencyCode,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 11) Retrieve…
Client Server Program. Urgent Questions!
Programming
Software Development
13 Years Ago
by watery87
…); // 9) Retrieve Currency strcpy (ctryRec.Currency,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 10) Retrieve CurrencyCode strcpy (ctryRec.CurrencyCode,
pch
);
pch
= strtok (NULL, LINE_DATA_DELIMITER); // 11) Retrieve…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by Valaraukar
…; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; … delim); object[nObj].facets[f][i] = atof(strtok (NULL, delim)); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile…
Improving code functionality
Programming
Software Development
15 Years Ago
by Valaraukar
… i, nObj; countObjects(fileName); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if(strcmp…) vertices[nObj][i] = (float *) calloc(numCols, sizeof(float)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { nFacets[nObj] = atoi(strtok (NULL, delim…
Re: Improving code functionality
Programming
Software Development
15 Years Ago
by Valaraukar
…; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if… object->facets[nObj][f][i] = atof(strtok (NULL, delim)); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile)…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by nucleon
…= (Point3Df*) calloc(object[nObj].nVertices, sizeof(Point3Df)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { object[nObj].nFacets = atoi(… = (ThreeInts*) calloc(object[nObj].nFacets, sizeof(ThreeInts)); } if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by Valaraukar
… nObj; countObjects(fileName, object); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++; if(…vertices = (Point3Df*) calloc(object[nObj].nVertices, sizeof(Point3Df)); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { object[nObj].nFacets = atoi(strtok …
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by Valaraukar
…[20]) { char * fullFile = readFile(fopen (fileName, "rb")); char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; numObjects… *object) { char * fullFile = readFile(fopen (fileName, "rb")); char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; numObjects…
Problems readint text lines and passing to strings
Programming
Software Development
13 Years Ago
by kavourdoukos
…]; char location[24]; char country[24]; char buffer[200]; char*
pch
; int id=0; fp=fopen("example.txt","…)) { fgets(buffer,200,fp); if(buffer[0]=='@'){
pch
= strtok (buffer,"@"); strcpy(country,
pch
); } if (buffer[5]=='(' && buffer[9…
strotok
Programming
Software Development
13 Years Ago
by aimbo
…s\n",temp); printf("debug2 %s\n",
pch
); if (pch1 != NULL) { pch1 = strdup(temp); … } printf("debug3 %s\n",
pch
); } else { i = atoi(
pch
); printf("%d\n",i); }…); free(pch1); printf("debug5 %s\n",
pch
);
pch
= strtok(NULL,","); printf("debug6 %s…
Re: Dynamically allocating/re-allocating memory
Programming
Software Development
15 Years Ago
by Valaraukar
…, nObj; countObjects(fileName); nObj = -1;
pch
= strtok(fullFile, delim); while(
pch
!= NULL) { if(strcmp(
pch
, "GEOMOBJECT") == NULL) nObj++;…(NULL, delim)); //printf("%d: ", facets[shapeNum][f][i]); } }
pch
= strtok (NULL, delim); } free (fullFile); } char *readFile(FILE *sceneFile…
help in the program
Programming
Software Development
17 Years Ago
by jazzz
…( NULL ==
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
- temp …stFindsFiles); } FindFree(&stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( OK ); } /*=====================…
Quick Sort Program
Programming
Software Development
17 Years Ago
by jazzz
…
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
…;stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( …
Re: Quick Sort Program
Programming
Software Development
17 Years Ago
by jazzz
…
pch
) { printf("
pch
malloc error!"); exit (NG); } memcpy(
pch
,acFileName,strlen(acFileName)+1);
pch
= strrchr(temp,'/'); cnt =
pch
…;stFinds); fclose(fp_dump); free(temp); free(
pch
); printf("Done!\n"); exit( …
malloc problems
Programming
Software Development
15 Years Ago
by midimatt
…; float x = 0; float y = 0; float z = 0; char *
pch
; //character pointer float **vertices; int **facets; int n; int eof…) { case 1: x = atof(
pch
); break; case 2: y = atof(
pch
); break; case 3: z = atof(
pch
); break; }
pch
= strtok (NULL, " v"…
Dynamically allocating/re-allocating memory
Programming
Software Development
15 Years Ago
by Valaraukar
…], numCols); else vertices = reallocate_memoryf(numShapes, numVertices, numCols); } if(strcmp(
pch
, "MESH_NUMFACES") == NULL) { numFacets = atoi(strtok (NULL… numCols); else facets = reallocate_memoryi(numShapes, numFacets, numCols); } if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by nucleon
… fileName[20], struct Object3D* object) { char *fullFile = readFile(fileName); char *
pch
; int v, f; char *delim = " *\x9\xA\xD\\:"…; countObjects(fullFile, object); // ................. void countObjects(char *fullFile, Object3D *object) { char *
pch
; char * delim = " *\x9\xA\xD\\:"; int i; [/code…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by nucleon
…. typedef float Point3Df[3]; [/code] And this: [code] if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL, delim)); printf…)); } [/code] to this: [code] typedef float Float3[3]; if(strcmp(
pch
, "MESH_VERTEX") == NULL) { v = atoi(strtok (NULL, delim)); printf…
Converting tchar array to string array
Programming
Software Development
13 Years Ago
by GeekInTraining
…(1024, szBuffer); TCHAR *
pch
= szBuffer; while (*
pch
) { _tprintf(TEXT("%s\n"),
pch
);
pch
= &
pch
[_tcslen(
pch
) + 1]; } int arraylength = sizeof(
pch
); cout <<… i; i = 0; if (i < arraylength) { i++; drive[i] =
pch
[i]; cout << drive[i] << endl; } return…
Access to private variables
Programming
Software Development
9 Years Ago
by yaya1234
… ifstream command(file); char str[250]; char*
pch
; string tempfrom; string tempto; int i = …i == 0) { numtaxi = *
pch
- '0'; } if (i == 1) { tempfrom =
pch
; } if (i == 2) { tempto =
pch
; } } fromcol = tempfrom[0]…
writing one on top of the other
Programming
Software Development
9 Years Ago
by yaya1234
… ifstream command(file); char str[250]; char*
pch
; string tempfrom; string tempto; int i = 0…; } } if (i == 1) { tempfrom =
pch
; } if (i == 2) { tempto =
pch
; } } fromcol = tempfrom[0] - 'a'; if…
Re: Improving code functionality
Programming
Software Development
14 Years Ago
by nucleon
… loop. So change the code as follows: [code] if( strcmp(
pch
, "MESH_FACE" ) == 0) { int i, f; f = atoi( strtok…
Quick search & replace with c-strings?
Programming
Software Development
17 Years Ago
by proteusx
… count; // get start and end indices...
pch
=strchr(query,'?'); if (
pch
!=NULL) { start =
pch
-query;
pch
=strchr(
pch
+1,'?'); end =
pch
-query; } // ...or return if(!start…
1
2
3
9
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC