Search:

Type: Posts; User: cbastard

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    58
    Views
    16,075

    Sorry ,i am too stupid to be able understand your...

    Sorry ,i am too stupid to be able understand your code.i dont know what these two FOR loop doing in your main.Is some sorting is done as asked before?
    For little i could understand was you should...
  2. Replies
    15
    Views
    3,487

    http://davinci.newcs.uwindsor.ca/~angom/cs266/Lec2...

    http://davinci.newcs.uwindsor.ca/~angom/cs266/Lec26606.pdf
  3. Replies
    5
    Views
    2,105

    If address are 32 bit then they are 4 byte not...

    If address are 32 bit then they are 4 byte not 2.I think your basic concern is how will you store these 4 bytes in one byte char ! Well you should have declared a int pointer rather than char.
    If...
  4. Replies
    0
    Views
    1,662

    Unix sort issue.

    I have an issue with unix sorting command.Problem is
    A file contains many records.I need to get a list of all the unique records(unique is on the basis of one key).If the original file contains...
  5. Replies
    4
    Views
    2,122

    You may face some problem with the portability if...

    You may face some problem with the portability if there is difference in byte alignment of both the machines.
  6. Thread: __align usage

    by cbastard
    Replies
    5
    Views
    3,891

    The pragma operator can be used to do the byte...

    The pragma operator can be used to do the byte alignment.Check your compiler supports the pop and push arguments of pragma because these are not in ANSI standards.
  7. Replies
    5
    Views
    1,134

    variable i=1; char tempname[6]; read base file...

    variable i=1;
    char tempname[6];
    read base file till end
    read 2kb from file
    tempname=strcat(inttostring(i)+".txt");
    write to new file fopen(tempname,"w");
    i++;
    end read
  8. Replies
    3
    Views
    1,420

    Input in main() or argv are strings.If you enter...

    Input in main() or argv are strings.If you enter a number they are taken as strings so to convert them to numbers,he used atoi.
  9. Thread: validate isbn

    by cbastard
    Replies
    14
    Views
    6,647

    >>how do i assign character X to 10 (i.e)...

    >>how do i assign character X to 10 (i.e) *(code+9) =10;(maybe) then update sum
    well,i dont know what exactly you mean by this.but if you wanna assign X(ascii) to the least significant digit....
  10. Replies
    18
    Views
    3,956

    total = (hT * MINS_HR * SECS_MIN) + (mT *...

    total = (hT * MINS_HR * SECS_MIN) + (mT * SECS_MIN) + (sT);
    printf("HERE WE GO!\n");
    while (total > 0){
    printf("%d:%d:%d", h, m, s);
    if (s == SECS_MIN) {
    m = m +1;
    s = 0;
    }
    if (m...
  11. Thread: validate isbn

    by cbastard
    Replies
    14
    Views
    6,647

    fgw_three is right. char code[15];...

    fgw_three is right.

    char code[15];
    fgets(code,15,stdin);
    When you store like this.The most significant digit is stored at code[0].

    for(i=9;i>=0; i--)
    {
    if((i==9) && (toupper(*(code + i))...
  12. Replies
    5
    Views
    2,081

    Do as Dave said.because you lack in basics. A C...

    Do as Dave said.because you lack in basics.
    A C programme starts from main().You have'nt called any function in it.Your functions will not execute.
    Am pretty sure your next post will be

    #include...
  13. Replies
    4
    Views
    1,850

    if char *v = "blablabla"; this one is undefined...

    if char *v = "blablabla";
    this one is undefined behaviour.

    The C99 Draft (N869, 18 January, 1999)
    J.2 Undefined behavior
    #1
    The behavior is undefined in the following circumstances: ...
    An...
  14. Replies
    4
    Views
    2,147

    thanks for the reply.ISA server is already...

    thanks for the reply.ISA server is already installed.Do i need to do some programming of ISA server.Can you throw some light on what i need to program and how(means some related topics to study)....
  15. Replies
    4
    Views
    2,147

    Is there any other method like:- Server can...

    Is there any other method like:-
    Server can logoff the PC on its LAN.And change the password of PC and new user will be given this password and after their session.the process continues.
  16. Replies
    4
    Views
    2,147

    internet access control

    Hi Everybody I need some help!!!
    I have a LAN all PC's using WIN-XP and default proxy.I want to control the internet access of the PC's.
    like:- I want that server will allot 1/2 hr to each PC on...
  17. Replies
    2
    Views
    849

    If You dont wanna do it by moving pointers. then...

    If You dont wanna do it by moving pointers.
    then sort the linklist just like you do for arrays.
    just go through the list and swap adjacent member values like you do for bubble sort
    Now you will...
  18. NO, its not.

    NO, its not.
  19. Replies
    3
    Views
    2,779

    Just code what you do on paper. input in decimal...

    Just code what you do on paper.
    input in decimal is x
    while x is greater than 0
    a is x%2
    store a in char array
    x is x/2
    increment array index
    end loop

    ***if your convert mean...
  20. Replies
    9
    Views
    7,759

    #include #include #include...

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

    int main()
    {

    float i,a;
    srand( time( 0 ) );
  21. Replies
    5
    Views
    1,382

    int main(void) { int ch, c while(ch...

    int main(void) {
    int ch, c

    while(ch != 4)
    ch contains the garbage value.It may contain 4.
  22. Thread: runtime error

    by cbastard
    Replies
    4
    Views
    2,096

    I think it will help others if you show the code.

    I think it will help others if you show the code.
  23. Replies
    16
    Views
    3,936

    >>So 3 lines is short and sweet, and 4 lines is...

    >>So 3 lines is short and sweet, and 4 lines is ridiculously long?
    >>Well, aside from being trivial for even the greenest C programmer, I just posted an interative solution.
    I was not talking abt...
  24. Replies
    5
    Views
    1,152

    firstcol[i].next=NULL; temp=firstcol[i].next;...

    firstcol[i].next=NULL;
    temp=firstcol[i].next;
    while(temp->next!=NULL)
    temp->next=(struct node*)malloc(sizeof(struct node));
    Now can you see some thing.

    some others.

    a=(int...
  25. Replies
    4
    Views
    5,180

    Have you tried your homework yet? :p No. Try...

    Have you tried your homework yet? :p
    No.
    Try it you will find usable results
Results 1 to 25 of 172
Page 1 of 7 1 2 3 4