Search:

Type: Posts; User: Aitra

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,778

    yep..It's a C99 compiler I'm using ...

    yep..It's a C99 compiler

    I'm using "stdio.h"and "string.h" for header

    apparently it's not even working within the function...I'm not getting any errors either
  2. Replies
    9
    Views
    1,778

    Thanks man!! yeah I'd totally forgotten about...

    Thanks man!! yeah I'd totally forgotten about strlen

    still it's not seem to work though.....the code look like this and I can't find anything logical why it'd go wrong



    int IsPalindrom(char...
  3. Save Data from the global variable into the linked list

    Hi guys

    I'm trying to run so called student-administration program.

    I got functions that can read and write student data, but the one saving the data from about 30 students has some problem...
  4. Replies
    4
    Views
    4,002

    quite a pain. I found the problem...the scanf is...

    quite a pain. I found the problem...the scanf is missing a '&' to save data...lol

    thanks though
  5. Replies
    4
    Views
    4,002

    Structures and pointers

    Hi guys

    I'm challenged to write a program which calculates the time difference between two daytime.

    compiler doesn't give an error, yet the warning:
    "format '%d' expects argument of type...
  6. Replies
    9
    Views
    1,778

    Problem with the Palindrome code

    hi guys

    I'm trying to write a function which can recognize whether a word is a palindrome. if it's the case , it must return 1 on screen, otherwise 0.

    this is the code which return 0 even in...
  7. Replies
    3
    Views
    2,677

    Thanks guys!! it worked

    Thanks guys!! it worked
  8. Replies
    3
    Views
    2,677

    EOF and getchar() problem

    hi guys

    I'm challenged to write a code for the following:

    write a text up to 1000 characters, and get it back. the end of the text is detected though EOF on a new line or reaching 1000...
  9. Replies
    5
    Views
    816

    ikr? yet not sure what OS has to do with it....I...

    ikr? yet not sure what OS has to do with it....I use Windows 7
  10. Replies
    5
    Views
    816

    It's Eclipse based on GNU-C/C++- compiler

    It's Eclipse based on GNU-C/C++- compiler
  11. Replies
    5
    Views
    816

    to ask if a key is pressed

    hi guys

    I need to run some operation if a key from keyboard is pressed

    so I go with



    c=getchar();
  12. Replies
    2
    Views
    1,022

    how to find the file given by #include?

    hi guys

    It's about the beginning section of every code where you give the libraries
    I need a shortcut to find some file given through #include<file.name> without searching though all header data....
  13. got stuck in simple coding process. how to initialize "any value"

    hi guys

    in order to calculate some logarithm approximation I need to make a variable, say s, search through the whole integer numbers.

    I believe something like this isn't much of help?



    ...
  14. Replies
    2
    Views
    984

    wow!! thanks a lot!! now I see them all. Very...

    wow!! thanks a lot!! now I see them all. Very helpful
  15. Replies
    2
    Views
    984

    Three short questions C-ers

    Hi guys

    I have three separate, non-related code that each give out a certain value that I can't just figure why....

    could you help me with them?




    int arr[] = {5,6,7,8,9,10};
  16. the idea behind deleting data from a program?

    Hi guys


    I have a list of student data stored under struct-variable of type std:



    typedef struct{

    char name;
  17. Replies
    2
    Views
    845

    pointers searching through a file

    hi guys

    say you have a extern file with numbers from 0-20. so it contains



    1\n2\n3\n4\n......\n20


    the program's supposed to give all numbers greater than the number given on keyboard.
  18. Replies
    6
    Views
    1,290

    it worked and so did your first answer !! the...

    it worked and so did your first answer !! the only missing was adding thins line



    void getdate (date1 time1){

    scanf("%d %d %d", &time1.hour, &time1.minute, &time1.second);

    }
  19. Replies
    6
    Views
    1,290

    thanks a lot but it's not working..chances are...

    thanks a lot but it's not working..chances are it's a go on C99 but not C..not sure though

    the only error sounds "expected expression before date1" btw.

    I believe I'd use struct more later on...
  20. Replies
    6
    Views
    1,290

    save a data within a struct?

    Hi guys

    since I'm new to struct, I don't know how to use it properly apparently....I wanna save some time zone in a struct from scanf?

    is it possible? how to save something inserted from...
  21. int numb (char String[]) ??? what does this mean?

    hi guys

    I'm new to arrays and officially have no idea of what this line means:



    int numb (char String[])

    what kind of idea does it give you? I've learned an array could look something like
  22. It works so far :) Grazie tantissimo!! //I...

    It works so far :) Grazie tantissimo!!

    //I understand. having a German keyboard, there's always a y,z issue
  23. Thank you Samaras and all!! what are you...

    Thank you Samaras and all!!

    what are you discussing about man xDDD

    however, I got it finnally using this code btw.



    else{
  24. Array problem. Can you find the problem with this?

    Hi guys

    this is what I want the program to do:

    it's to save up to 100 given number>0 from keyboard in some Array. If the given number is smaller than 0, it should stop and give back all the...
  25. Replies
    1
    Views
    759

    basic C operator question

    Hi guys

    I'm playing with some operator to get the hang of it. I have defined
    i=1 ;
    g=5;
    y is the output variable

    now I'm trying to get certain numbers:

    y=(3!=9)+ (i++)+ (19%5) is...
Results 1 to 25 of 25