Search:

Type: Posts; User: AndrewHunter

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    830

    Depending on your needs, the right tool for the...

    Depending on your needs, the right tool for the job may be shifting to a managed language such as C# or VB.NET. Both of these language wrap the COM interface nicely and allow for easier db access....
  2. Replies
    5
    Views
    764

    Why don't look at this pointer tutorial ...

    Why don't look at this pointer tutorial .
  3. Replies
    4
    Views
    1,047

    That depends on what IDE you are using and if the...

    That depends on what IDE you are using and if the IDE in question is capable of working with template files.
  4. You need to look at your entry loop: for...

    You need to look at your entry loop:


    for (i=0; i < n; i++) {
    printf ("Enter a value: ");
    scanf ("%d", &list[i]);
    }


    All this does is put values into the array. The layout of...
  5. Do you know what you are doing at all or are you...

    Do you know what you are doing at all or are you just randomly cutting and pasting code from various places? These questions are ridiculous between this post and your other one.

    What is the point...
  6. Replies
    16
    Views
    2,904

    Do you know how to solve this problem on paper?...

    Do you know how to solve this problem on paper? Why don't you right out the steps for a linear search and list them. The logic above is not what you want.
  7. Replies
    16
    Views
    2,904

    So why do you think that is? What happens in your...

    So why do you think that is? What happens in your loop if the number is not found? Right now your for loop basically says:


    for(all numbers in array)
    {
    if( number is found)
    {
    ...
  8. Replies
    9
    Views
    7,658

    Take a look at how fgets() works...

    Take a look at how fgets() works. You have 16 characters to read in + the newline + the null terminating character for a grand total of 16 + 1 + 1 = 18. Just because you don't see the characters...
  9. Replies
    16
    Views
    2,904

    Each iteration prints something, either found or...

    Each iteration prints something, either found or not found. That is what Salem is referring to. Compare this function with your search binary function and note where the difference is.
  10. Take a look at the how do I make my console...

    Take a look at the how do I make my console window stop disappearing FAQ and also look at how to define main.
  11. Your functions that you are calling are taking an...

    Your functions that you are calling are taking an argument, hence their prototypes (declarations) that I laid out in the skeleton example. However, you are not using the arguments that are supplied...
  12. Try this: how to define main...

    Try this: how to define main
  13. I was editing my last post when you responded....

    I was editing my last post when you responded. Take a look at the tutorials I linked to and the skeleton layout I provided. It should put you on the right track.
  14. I did, read the tutorials on functions. That will...

    I did, read the tutorials on functions. That will give you a good start. As will the tutorial on using if statements in C. Also you edited your post to make your original request seem more earnest.
    ...
  15. Replies
    2
    Views
    606

    "How you need to do this" is to figure out how to...

    "How you need to do this" is to figure out how to perform this on paper. Take a look at the development process. Additionally, once you have figured out how to do it without a computer, then you need...
  16. I suggest you look at what functions are. You...

    I suggest you look at what functions are. You have no functions in your program at all. Even though your assignment says to make a sumFor and sumWhile function you declared integers with those names:...
  17. You mean this broken hybridization of C++/C code...

    You mean this broken hybridization of C++/C code into just C? How about you tell us what you are trying to do and then make an attempt. Looking for answers to homework problems on the internet and...
  18. Yep, take a look at this good pointer tutorial ...

    Yep, take a look at this good pointer tutorial and linked list tutorial . You are on the right track. Also, you should define main the correct way . Additionally, your printList function does not...
  19. In order to change the values actually at temp,...

    In order to change the values actually at temp, just like for root, you need a pointer to a pointer. Not just a pointer.
  20. Replies
    8
    Views
    957

    Yes, how about you read the link I posted about...

    Yes, how about you read the link I posted about loops and then implement one. Do not call main recursively, this is a very bad programming practice.
  21. Replies
    8
    Views
    957

    Here is a novel idea, why don't you read about...

    Here is a novel idea, why don't you read about loops in C and then tell us?
  22. What you want to look at is the fgets()...

    What you want to look at is the fgets() / sscanf() combination to read a line at a time and parse the line into your array.
  23. Replies
    6
    Views
    729

    Also, take a look at the proper way to define...

    Also, take a look at the proper way to define main and why global variables are bad .
  24. Value is not initialized when you check it's...

    Value is not initialized when you check it's value with line 13. You never gave it a value when you declared it (look at line 7). You are relying on undefined behavior. This code is bound to break....
  25. Replies
    9
    Views
    3,396

    Based on your initial question, no you are not...

    Based on your initial question, no you are not familiar with C++. Go with VB.NET if you need to make a "program from scratch". If not use MATLAB. This will save you a lot of frustration in the long...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4