Search:

Type: Posts; User: gsoft

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    33
    Views
    4,367

    char array pointers problem

    Below is a small demonstration on an issue I am having in a much larger program. The error I am getting from gcc is



    I have marked line 11 with /* error */

    It has been quite a while since I...
  2. Thread: Ruby

    by gsoft
    Replies
    18
    Views
    12,620

    Do you mean dum as in acronym? DUM - Database...

    Do you mean dum as in acronym?
    DUM - Database Upgrade Manual
    DUM - Desktop Unified Messaging

    Im sure there is more but thats all I got. Or do you mean dum as in dumb, if so Id suggest making...
  3. Replies
    5
    Views
    5,881

    Depends where did you see count++? Usually a...

    Depends where did you see count++? Usually a variable is initiated within a function or passed to a function. count is probably initiated somewhere within the function.

    As for printf and sprintf
    ...
  4. Replies
    2
    Views
    3,817

    Linux Min Requirements

    Before I get started I think I should say this is for a part of a project.

    Ive got to choose 2 Server Operating Systems done. Now I need to specify system requirements and well for Windows 2k3...
  5. Thread: Newbie question

    by gsoft
    Replies
    13
    Views
    1,409

    No. If you call the function from main yes, if...

    No. If you call the function from main yes, if you call the function from another function than no.

    Also main should be int not void


    int main(void)
    {
    return 0;
    }
  6. Thread: internet

    by gsoft
    Replies
    16
    Views
    3,730

    I know Firefox accepts an argument as the url to...

    I know Firefox accepts an argument as the url to go to so



    system("/path/to/firefox http://yourdomain.com");


    Could work.
  7. Replies
    7
    Views
    6,303

    Thanks.

    Thanks.
  8. Replies
    7
    Views
    6,303

    Ive decided to redo the function and do Memory...

    Ive decided to redo the function and do Memory Allocation within the function. The new prototype is



    char *replace_str(char *find, char *replacement, const char *string, char *destination,...
  9. Replies
    7
    Views
    1,766

    What Compiler you using I got choked by warnings...

    What Compiler you using I got choked by warnings and errors.

    pow requres doubles


    double pow(double x, double y);


    Also your getInput function will require to use the int inputs as...
  10. Replies
    7
    Views
    6,303

    Ive seemed to have found it /*...

    Ive seemed to have found it



    /* Free compString */
    free(compString);
    return newString; /* All Possible strings to be found have been we need to kill this...
  11. Replies
    7
    Views
    6,303

    Str_replace function

    Ive been creating my own extended string library one of the functions is a str_replace function.



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

    char *str_replace(char *find,...
  12. Replies
    2
    Views
    2,910

    No it doesnt work I accidently deleted it from...

    No it doesnt work I accidently deleted it from the original code when experiementing. Why, well mainly because in some cases being able to use puts and scanf would be good however I dont think there...
  13. Replies
    2
    Views
    2,910

    Ncurses and Standard Functions

    Ok im just starting to learn the ncurses api and have been experimenting



    #include <ncurses.h>

    int main()
    {
    initscr();
    printw("Hello World");
  14. Thread: char copy

    by gsoft
    Replies
    8
    Views
    30,202

    If its an entire string why not just use strcpy?...

    If its an entire string why not just use strcpy? It basically copies each character one at a time than adds the null character on the end.
  15. Replies
    15
    Views
    2,127

    Ok im a bit of a blank on your first bit, you...

    Ok im a bit of a blank on your first bit, you need to know where your going to copy it. However yes you can move the compiled program away from the source.

    Your using windows? I think you can...
  16. Thread: Confused Student

    by gsoft
    Replies
    27
    Views
    5,066

    You can run it on the command line and not...

    You can run it on the command line and not require the extra code to keep the console open.
  17. Replies
    4
    Views
    1,713

    Another benefit would be with TEXT you have the...

    Another benefit would be with TEXT you have the FULLTEXT search capabilities.
  18. Replies
    15
    Views
    2,487

    scanf allows you to go over the allocated buffer...

    scanf allows you to go over the allocated buffer something I dont think you should do. Scanf() is good but I wouldnt use it for strings.
  19. Replies
    15
    Views
    2,487

    Try this you still need to modify a few things...

    Try this you still need to modify a few things like taking the \n out of the string firstname and lastname and not use fflush to clear the stdin buffer



    #include <stdio.h>
    #include <stdlib.h>...
  20. Thread: Confused Student

    by gsoft
    Replies
    27
    Views
    5,066

    Also isnt it %f instead of %1f in the scanf's

    Also isnt it %f instead of %1f in the scanf's
  21. Replies
    3
    Views
    1,249

    Check your network Connection. Check your...

    Check your network Connection.
    Check your Computers Name. Right Click My Computer > Indentification (I think)
  22. Thread: Confused Student

    by gsoft
    Replies
    27
    Views
    5,066

    If your only including "stdio.h" you wont need to...

    If your only including "stdio.h" you wont need to link to the Math library. Well to help debugging what errors are you getting and what is the code you have?
  23. Replies
    6
    Views
    2,593

    Ok how do I change the IDE Channel, would that...

    Ok how do I change the IDE Channel, would that just be BIOS settings?
  24. Replies
    6
    Views
    2,593

    HDD Dead I think!

    Ok hardware isnt really my thing, but I know a bit to get by. However I have a feeling my HDD died in one of my older computers.

    HDD = Seagate ST320410A (20gb)

    The computer was acting really...
  25. Replies
    23
    Views
    6,707

    No offence but I cant stand websites that have...

    No offence but I cant stand websites that have navigation like that, so i strongly dislike.
Results 1 to 25 of 68
Page 1 of 3 1 2 3