Search:

Type: Posts; User: dayknight

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Makefile

    by dayknight
    Replies
    2
    Views
    1,298

    Makefile

    Hi,

    when i run the following makefile:



    CFLAGS =-O -Wall -Wextra -Wshadow -Wstrict-prototypes \
    -Wmissing-prototypes -Wmissing-declarations \
    ...
  2. Replies
    4
    Views
    2,059

    Structure - Typedef accessing problem

    <<threads merged>>



    typedef enum RelationalOperators {EQ, NE, GT, LT} Rel_Op;


    typedef union TokenAttribute{
    Rel_Op rel_op;
    } TA;
  3. Replies
    4
    Views
    2,059

    Structure - Typedef accessing problem

    Hi,



    typedef enum RelationalOperators {EQ, NE, GT, LT} Rel_Op;




    typedef union TokenAttribute{
  4. Replies
    4
    Views
    1,336

    there is nothing wrong with "numpoints". int...

    there is nothing wrong with "numpoints".


    int numPoints= 0;
  5. Replies
    4
    Views
    1,336

    POINT conversion

    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()
    {
  6. Replies
    3
    Views
    1,998

    int to char casting/itoa

    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);
  7. Replies
    4
    Views
    3,078

    ^ nah, was just testing out... didnt u use to...

    ^ nah, was just testing out...
    didnt u use to have that animated gif of void main nuke :D
  8. Replies
    4
    Views
    3,078

    nm: solved fscanf (pFile, "%s", arr[x]);...

    nm: solved


    fscanf (pFile, "%s", arr[x]);
    fscanf (pFile, "%d", &num[x]);
  9. Replies
    4
    Views
    3,078

    reading file and storing to arrays

    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...
  10. Replies
    2
    Views
    1,309

    normally... but it is not suppose to terminate.

    normally... but it is not suppose to terminate.
  11. Replies
    2
    Views
    1,309

    sorting - merge -

    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...
  12. Thread: Recursion

    by dayknight
    Replies
    4
    Views
    1,543

    umm nm, i was placing the null at wrong place...

    umm nm, i was placing the null at wrong place :rolleyes:
  13. Thread: Recursion

    by dayknight
    Replies
    4
    Views
    1,543

    ok i think this line is giving me problem: ...

    ok i think this line is giving me problem:


    temp = new char [strlen(str)];


    gives me wrong length


    but i dont see why?
  14. Thread: Recursion

    by dayknight
    Replies
    4
    Views
    1,543

    Recursion

    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);
  15. Thread: qsort - aid

    by dayknight
    Replies
    6
    Views
    1,633

    it worked, thanks but could you explain the...

    it worked, thanks
    but could you explain the return line please?
  16. Thread: qsort - aid

    by dayknight
    Replies
    6
    Views
    1,633

    qsort - aid

    string *array;
    //dynmically allocated




    qsort ((void*)array, nNum, sizeof (*array), compare );
  17. Replies
    3
    Views
    1,593

    resetting y would cause an infinite loop...

    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
  18. Replies
    3
    Views
    1,593

    array of strings problem

    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
    .....
  19. Replies
    4
    Views
    2,753

    yes :D my tree is not indenting properly....

    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.
  20. Replies
    4
    Views
    2,753

    Directory Tree Display Problem

    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,...
  21. Thread: stricmp

    by dayknight
    Replies
    6
    Views
    5,787

    no, i mean case insensitive search: "stricmp"; i...

    no, i mean case insensitive search: "stricmp"; i know strcmpi is standard, but that gives same error.
  22. Thread: stricmp

    by dayknight
    Replies
    6
    Views
    5,787

    stricmp

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>



    if (nC!=1 && nI==1 && stricmp(buffer, SearchString))
    if (nN!=1)
    ...
  23. Replies
    4
    Views
    4,761

    forgot to reset variable

    forgot to reset variable
  24. Replies
    4
    Views
    4,761

    single File Pointer to Multiple Files

    int main(int argc, char *argv[])
    {
    int ReadFile=argc-1;
    while(ReadFile!=1)
    {
    FILE *pPoint = fopen (argv[ReadFile],"r");
    if (pPoint==NULL)
    return 0;
    .
    ....
  25. Replies
    9
    Views
    7,351

    AOE series? Westwood was bought by EA around...

    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.
Results 1 to 25 of 301
Page 1 of 13 1 2 3 4