Search:

Type: Posts; User: bos1234

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: C programming

    by bos1234
    Replies
    5
    Views
    919

    where abouts is this?

    where abouts is this?
  2. Thread: Divide fail

    by bos1234
    Replies
    10
    Views
    736

    Paste your full code so we can highlight the...

    Paste your full code so we can highlight the mistake for you. As mentioned above, it may be due to the fflush or the way you have declared your variables.


    #include <stdio.h>

    int main()
    {...
  3. alternate solution - which one is better?

    another solution. Not sure which one is better? Line 10 is where the change has been made

    #include <stdio.h>

    int *find_largest(int a[], int n)
    {
    int i, *x;

    x = &a[0];
    for (i = 1; i <...
  4. solved.

    thank you.
    New code below

    #include <stdio.h>

    int *find_largest(int a[], int n)
    {
    int i, *x;

    x = &a[0];
  5. hmmm if I press F5 to debug and set no break...

    hmmm

    if I press F5 to debug and set no break points, there is no output for me. I get this warning:

    I am assuming that is for the cases when a[i] < x or a[i] == x (line 10 and 16). But that...
  6. help on pointers. - return pointer to largest element in array

    Morning all.

    question from chapter 11, qn 8 modern C programming by king


    my solution

    #include <stdio.h>

    int *find_largest(int a[], int n)
  7. thank you

    thank you
  8. noted. I see that if I declare the rows and...

    noted.
    I see that if I declare the rows and cols in the function definition for array a (i.e. have only 1 argument), then I only need to pass the name in the function main..

    for example.


    ...
  9. Not understanding the concept of multidimensional arrays and functions

    Hi,
    I am having alot of trouble with the concept of multidimensional arrays and functions.

    for one dimensional arrays, when calling the function, we use the function name and number of elements....
  10. Replies
    8
    Views
    3,338

    Please critique my source code - Craps Game

    Question comes from Modern C programming by King ch 9 qn 7
    http://i41.tinypic.com/rtn9f5.jpg
    http://i44.tinypic.com/w22hqg.png

    This is one of the larger programs I have written to date. I am...
  11. Replies
    0
    Views
    545

    [SOLVED]Calling functions via a for loop

    When I trace this program line by line, I get different outputs(which is what I want). However, when I compile and run, output values are all the same. Why is this the case?

    I initialised the seed...
  12. Replies
    5
    Views
    683

    this will solve your problem, however, not sure...

    this will solve your problem, however, not sure if its the best solution for future programs.

    try this:

    #include<stdio.h>


    int main()
    {
  13. Replies
    5
    Views
    683

    someone please verify my answer ok assume I...

    someone please verify my answer

    ok assume I enter like this



    enter gender: M
    enter yos: 23
    enter qua: x
  14. Replies
    27
    Views
    2,236

    Noted. Thanks very much!

    Noted.
    Thanks very much!
  15. Replies
    27
    Views
    2,236

    Hi I go home for lunch for 1 hour. So I'm trying...

    Hi
    I go home for lunch for 1 hour. So I'm trying that 'nerve flossing' exercise. Can you also post some other exercises that were suggested to you.

    thanks once again!
  16. Documenting your work after a problem is solved from a book

    Hi,
    I just recently solved a problem from a book which was difficult for me. Now, I would like to document the solution (.pdf/.docx file), so that I can refer to it in the future.

    Is there some...
  17. Asset Management/Capturing help. Open problem

    Hi,
    I am trying to solve this problem @ work and am wondering if anyone has any experience in this area?

    Scenario:
    There are sites located within an area (eg. New York) called BTS sites or Base...
  18. Replies
    4
    Views
    1,346

    Hi, I found this via google. I Just skimmed...

    Hi,
    I found this via google. I Just skimmed through it but it looks like a good tutorial
    A Ray Tracer - Part 1 | PurpleAlienPlanet
  19. Replies
    26
    Views
    2,589

    general question: Is there any forum such as...

    general question:
    Is there any forum such as this one dedicated to assembly language?
  20. Replies
    9
    Views
    1,010

    as asked by whiteflags & laserlight - is the...

    as asked by whiteflags & laserlight - is the input to be entered, sorted?
  21. Replies
    1
    Views
    668

    Not sure if I understand your question. That code...

    Not sure if I understand your question. That code seems to work fine.


    #include <stdio.h>

    int main()
    {
    float lower_rad, upper_rad, slant_h;

    printf("\nEnter the lower radius: ");
  22. Replies
    2
    Views
    625

    In the second case, you do not need amount(int...

    In the second case, you do not need amount(int a,int b); (see link below)
    You have already informed the compiler of what is to come. So, when you call the function inside main, the program knows...
  23. You have to fix up the formatting so someone can...

    You have to fix up the formatting so someone can quickly analyse the code for you. You've pressed tab and enter randomly I think...

    - Remember to include <stdlib.h> if your using srand and rand
    -...
  24. Replies
    27
    Views
    2,236

    Hi, Thanks for the very good info. I have a desk...

    Hi,
    Thanks for the very good info. I have a desk job as probably most of you do as well. Can you please share some of the exercises that was recommended to you?

    Quick story:
    try this . Take off...
  25. If someone were to undertake cisco certifications...

    If someone were to undertake cisco certifications (ccent, ccna, etc..) is it an advantage to learn/know network programming?
Results 1 to 25 of 144
Page 1 of 6 1 2 3 4