Hi,
when i run the following makefile:
CFLAGS =-O -Wall -Wextra -Wshadow -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
...
Type: Posts; User: dayknight
Hi,
when i run the following makefile:
CFLAGS =-O -Wall -Wextra -Wshadow -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
...
<<threads merged>>
typedef enum RelationalOperators {EQ, NE, GT, LT} Rel_Op;
typedef union TokenAttribute{
Rel_Op rel_op;
} TA;
Hi,
typedef enum RelationalOperators {EQ, NE, GT, LT} Rel_Op;
typedef union TokenAttribute{
there is nothing wrong with "numpoints".
int numPoints= 0;
Hi,
I've been trying to assign the x and y values of POINT structure to a vertex.
struct vertex
{
double x, y, z;
vertex()
{
char binary(int number)
{
int remainder, i=0;
char c[1];
char str[22];
do
{
remainder = number%2;
number = number >> 1;
itoa(remainder, c, 32);
^ nah, was just testing out...
didnt u use to have that animated gif of void main nuke :D
nm: solved
fscanf (pFile, "%s", arr[x]);
fscanf (pFile, "%d", &num[x]);
Hi,
I am trying to read a file and store its content into 2 seperate arrays (one char** the other a int array) - the content of the int array is modified and then rewritten to the file...
normally... but it is not suppose to terminate.
Program doesnt return to main after calling merge sort. Could someone point out why is that?
private:
int nNumItems;
string *pasWords;
....more code
....
int MergeSort();
int...
umm nm, i was placing the null at wrong place :rolleyes:
ok i think this line is giving me problem:
temp = new char [strlen(str)];
gives me wrong length
but i dont see why?
char func(int , int ,char *, char *);
int main (void)
{
char str[MAX];
char *temp;
int y=0, counter=0;
cout << "Enter String: ";
fgets(str, MAX, stdin);
it worked, thanks
but could you explain the return line please?
string *array;
//dynmically allocated
qsort ((void*)array, nNum, sizeof (*array), compare );
resetting y would cause an infinite loop therefore it will be writing the same word in argstring[x]
y=strlen(pReadLine); // therefore resetting it will cause the loop to be infinte
i am trying to place the read line to array of strings. but it only gets the first word.
example:
this is a line seperated by whitespaces
therefore:
argString[0] = this
argString[1] = is
.....
yes :D
my tree is not indenting properly.
Dir1, Dir2, Dir3, and Dir4 are parent Directories located in "." directory.
If you look above at Tree Display: Dir2,3,4 are indented wrong.
void dirBrowser(char *curDir, int tab, int nA, int nI, int nS, int nT)
{
DIR *dir;
FILE *pFile;
struct dirent *de;
struct stat st;
char *symPath,...
no, i mean case insensitive search: "stricmp"; i know strcmpi is standard, but that gives same error.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
if (nC!=1 && nI==1 && stricmp(buffer, SearchString))
if (nN!=1)
...
forgot to reset variable
int main(int argc, char *argv[])
{
int ReadFile=argc-1;
while(ReadFile!=1)
{
FILE *pPoint = fopen (argv[ReadFile],"r");
if (pPoint==NULL)
return 0;
.
....
AOE series?
Westwood was bought by EA around 1999 after he release of RA2 and NOX. Since then westwood have not been able to release a 'decent' title regardless of its genre.