Search:

Type: Posts; User: the_contractor

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,418

    so ?

    so ?
  2. Replies
    5
    Views
    2,418

    what(4) 1111 211 22 31 4

    what(4)

    1111
    211
    22
    31
    4
  3. Replies
    5
    Views
    2,418

    sum combination

    need to print all sum combination of integer;



    void what(int sum)
    {
    int i;
    for(i=1; i<=sum; i++)
    {
    printf("%d",i);
  4. Replies
    2
    Views
    898

    pointers difference

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

    int what(char *str, char ch){
    char *temp;
    for( temp = str; *str; str++)
    if(*str != ch) *temp++ = *str;
    *temp = '\0';
    return str-temp;
    }
  5. Replies
    2
    Views
    1,428

    whats the meaning of this allocate ?

    arr =(char **)malloc((SOME INTEGER VALUE)*sizeof(char *)))

    supose there`s char **arr; declaration & the allocation succeed .
  6. Replies
    2
    Views
    1,009

    Matrix Multiplication

    #include <stdio.h>
    #define M 2
    #define N 3
    #define K 3

    // A[M][N]*B[N][K] = C[M][K]
    void main()
    {
    int A[M][N]={{1,2,3},{4,5,6}} , B[N][K]={{1,1,1,},{2,2,2,},{1,1,1}} , C[M][K]={0};
    int i,...
  7. Replies
    1
    Views
    981

    FILES question

    Question 8:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    void main(){
    char data[ __ 1 __ ], tel[__ 2 __];
    FILE *fptr;
    int flag;
    fptr = fopen("stam.txt","r");
    while ((flag =...
  8. Replies
    1
    Views
    957

    compile problem .

    this is the skeleton of the asiigments .
    i dont know why it not compile .
    can someone help .


    http://www.cs.bgu.ac.il/~prog101/Assignments/Assignment_5/Main_Loop
  9. Replies
    4
    Views
    1,288

    linked lists .

    PLZ help !

    the file attached .

    i dont understand the idea of this function


    void reg_student(slist *students,clist *courses,int id, int number)

    this function is VOID , how can add...
  10. Replies
    2
    Views
    4,429

    ohhh ok ..... . how stupid . thank u very much !

    ohhh ok ..... .
    how stupid .
    thank u very much !
  11. Replies
    2
    Views
    4,429

    structures

    i dont understand what`s all the Errors about .

    just want do define structures
    & functions prototypes .


    the code


    #include <stdlib.h>
  12. Replies
    7
    Views
    1,508

    mean to skip the cell a,b .

    mean to skip the cell a,b .
  13. Replies
    7
    Views
    1,508

    here it is......

    #include <stdio.h>
    #define SIZE 8
    void print(int board[SIZE][SIZE])
    {
    int i,j;
    for(i=0; i<SIZE; i++)
    {
    for(j=0; j<SIZE; j++)
    printf("%2d",board[i][j]);
    printf("\n");
  14. Replies
    7
    Views
    1,508

    Diagonals

    supose theres an array SIZE X SIZE i getin coordinate a,b from user and i want to check all the diagonals including the cell a,b in the array .

    those for loops alright ?

    1.
    ...
  15. Replies
    1
    Views
    1,089

    diagonals

    supose theres an array SIZE X SIZE
    the user enter coaordinate (a,b)
    i want to put 9 in each coardinate on the 2 diagonals that including (a,b).


    this is my try :


    ////// diagonal I {/} ...
  16. Replies
    4
    Views
    1,433

    so ? there's no such thing ? thank you .

    so ?
    there's no such thing ?

    thank you .
  17. Replies
    4
    Views
    1,433

    fix lines visual c++ 2008

    how to fix the lines ?

    i mean that


    if

    void func(){
    if(exp)
    inst1;
  18. Replies
    2
    Views
    945

    ok... thank you very much !

    ok... thank you very much !
  19. Replies
    2
    Views
    945

    while loop

    why only the first Iteration workin alright ?



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

    struct Node
    {
    int val;
  20. Replies
    10
    Views
    1,677

    i know..

    i know..
  21. Replies
    10
    Views
    1,677

    hmmmm.... sorry for that im bother you , but its...

    hmmmm.... sorry for that im bother you , but its not workin too .
  22. Replies
    10
    Views
    1,677

    i don`t understand but thank you anyway .

    i don`t understand but thank you anyway .
  23. Replies
    10
    Views
    1,677

    why ? :)

    why ? :)
  24. Replies
    10
    Views
    1,677

    swap 2 nodes

    need to swaping nodes without changing the vlue fields .

    my solution


    void swap(Node *X,Node *Y)
    {
    Node *prev, *next, *temp;
    temp=X;
    prev=(X->prev);
Results 1 to 24 of 24