Search:

Type: Posts; User: juststartedC

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Iteration

    by juststartedC
    Replies
    3
    Views
    1,549

    unfortunatley i dont have a compiler but i...

    unfortunatley i dont have a compiler

    but i think i get it.

    i = 0
    j = 2
    i = 3
    j = 4
    i = 6
    j = 6
  2. Thread: Iteration

    by juststartedC
    Replies
    3
    Views
    1,549

    Iteration

    What is the value of variable i and of variable j on line 4 below:



    Line Code
    1 j=0;
    2 for(i=0; i<10;i+=3)
    3 j=j+2;
    4 // What is the value of variable i and variable j?
  3. Replies
    24
    Views
    2,878

    Thank you very much

    Thank you very much
  4. Replies
    24
    Views
    2,878

    Im at uni right now and i gota compiler, urs...

    Im at uni right now and i gota compiler, urs works but why do we need three'%'
  5. Replies
    24
    Views
    2,878

    yes we do but it would be very time consuming for...

    yes we do but it would be very time consuming for me to go there every time. one more question,

    Now say this time we need to out put an integer variable height but with a '%' before it, would...
  6. Replies
    24
    Views
    2,878

    Thanks for the link robwhit, so this is it right?...

    Thanks for the link robwhit, so this is it right?

    fprintf(output,"hello world.\\nHow are you?");
  7. Replies
    24
    Views
    2,878

    I think you are mistaking me for some one else...

    I think you are mistaking me for some one else because i did not copy your code, if i did i would have got a zero aswell.
  8. Replies
    24
    Views
    2,878

    would it be possible to write the exact fprintf...

    would it be possible to write the exact fprintf statement, just this once?
  9. Replies
    24
    Views
    2,878

    anyone out there knows what fprintf statement...

    anyone out there knows what fprintf statement would display exactly the following:

    hello world.\nHow are you?
  10. Replies
    24
    Views
    2,878

    unfortunately i dont have a compiler, and the...

    unfortunately i dont have a compiler, and the person who actually owns this laptop doesnt want me to install one, so i cant try the commands otherwise i would have found out the solution by now, that...
  11. Replies
    24
    Views
    2,878

    so what fprintf statement should i write to...

    so what fprintf statement should i write to display it like this

    Hello world.\nHow are you?


    say if i write it like this :

    fprintf(output,"Hello world.\n\nHow are you?");

    Would it...
  12. Replies
    24
    Views
    2,878

    Thanks alot aia. Regarding wouldnt the \n...

    Thanks alot aia.

    Regarding

    wouldnt the \n take it to the nex line thus apearing like this:?

    Hello World
    How are you?
  13. Replies
    24
    Views
    2,878

    Thanks a lot adak you are a champ, however, what...

    Thanks a lot adak you are a champ, however, what about questions 4,5,6?
  14. Replies
    24
    Views
    2,878

    ok this is what i think: (most likely wrong) ...

    ok this is what i think: (most likely wrong)

    1. The program hasnt asked the user for any values and it hasnt stored the value. also i think it needs to initialize a value for count

    2. i=0 and...
  15. Replies
    24
    Views
    2,878

    some time to spare?

    I am preparing for programing exams at uni, Could some one please help me with these problems?



    1. Indicate why the following pseudo-code is likely to produce incorrect output.
    Indicate what...
  16. Replies
    2
    Views
    1,724

    Thank you

    Thank you
  17. Replies
    2
    Views
    1,724

    some help needed

    Hi, This is a small section of my code which is developed to get an image and store it in an array blah blah and flip the image horizontally and vertically (which works perfectly), however the...
  18. Thread: make file

    by juststartedC
    Replies
    2
    Views
    1,132

    make file

    Hi, we have been given an assignment in which we need to use procedures, functions, library routines etc. now there is a mainline file and a library file. we were told we should use "make" to compile...
  19. Replies
    7
    Views
    1,925

    have 5 min to answer

    can some one quickly answer this . guess even

    What, if any, is the cause of the compiler error that may be produced when compiling the following program?


    int main ( int argc, char * argv[] )...
  20. Thread: Help

    by juststartedC
    Replies
    11
    Views
    1,613

    oright dont worry about this thread my program...

    oright dont worry about this thread my program works fine now
    Thanks anyway
  21. Thread: Help

    by juststartedC
    Replies
    11
    Views
    1,613

    In reply to MacGyver, if you dont want to help,...

    In reply to MacGyver, if you dont want to help, you dont have to. you dont need to call me a dirtbag you can keep the comments for yourself.
    Anyway i have done a bit of a work on it and compiles and...
  22. Thread: Help

    by juststartedC
    Replies
    11
    Views
    1,613

    Help

    Hi, i was wondering if there is anyone out there kind enough to do the following code for me. i have no idea where to start since i dont know much about arrays.This is what the program should do:
    ...
  23. Replies
    5
    Views
    1,964

    students are not allowed but they do it anyway. ...

    students are not allowed but they do it anyway.

    you may be write about the effort wasted but that still doesnt satisfy my curiosity :)
    what would work:

    change the name of the variables?
    add...
  24. Replies
    5
    Views
    1,964

    Any solutions????

    Hi people.

    We are handing in our code as a university assignment. all the students get as much help as possible from each other and we even have some similar codes (please bare in mind that this...
  25. Replies
    9
    Views
    1,765

    okidoki thanks a lot guys sorry to keep asking...

    okidoki thanks a lot guys sorry to keep asking the same question. you may blame the lecturer :)

    I just cant afford to fail this unit, ill be kicked out of uni

    Thanks
Results 1 to 25 of 56
Page 1 of 3 1 2 3