Search:

Type: Posts; User: tsmith94

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    6,425

    Wow that was what was causing the problem I...

    Wow that was what was causing the problem I forgot to allocate space for Speed, I really didn't imagine that was causing it. Thanks For the help everyone
  2. Replies
    11
    Views
    6,425

    #include #include...

    #include<stdio.h>
    #include<stdlib.h>
    #include<conio.h>
    #include<string.h>
    #include<math.h>




    const float pi = 3.1416;
  3. Replies
    11
    Views
    6,425

    Nevermind commenting them out I got the same...

    Nevermind commenting them out I got the same error.
  4. Replies
    11
    Views
    6,425

    Do you think its possible the problem may be in...

    Do you think its possible the problem may be in the way I used the functions sqrt , sin or cos?
  5. Replies
    11
    Views
    6,425

    Nope , the project is all in one source file , I...

    Nope , the project is all in one source file , I can run it if I block out that one function.
  6. Replies
    11
    Views
    6,425

    I suppose I could come up with a better way of...

    I suppose I could come up with a better way of terminating the loop than feof and make the code a bit more readable but for now the code is still a work in progress I definitely plan on fixing it up...
  7. Replies
    11
    Views
    6,425

    Calculating speed

    Hello I'm working on a project for a school presentation, The program is not really finished but 1 module is causing a linker error , "LNK1120 Unresolved external" and I'm unable to find why.

    ...
  8. Replies
    0
    Views
    2,453

    Using Allegro graphics

    I recently have been playing with allegro graphics library , it is going well so far , but I have a question I was wondering if anyone could answer , is it possible to use the library to create an...
  9. Replies
    0
    Views
    2,444

    Sorting Strings

    Hello , this is my first time attempting to sort an array of strings and I am having some difficulty. My code is to read in first names and last names into two 2D arrays , sort them into a 3D array...
  10. Thread: Test datatype

    by tsmith94
    Replies
    2
    Views
    1,259

    I'll look into it thanks

    I'll look into it thanks
  11. Thread: Test datatype

    by tsmith94
    Replies
    2
    Views
    1,259

    Test datatype

    Hello again. Today I don't actually have a problem just a question. How do I test the datatype a user inputted for example: I ask to enter an int and they enter a char instead , is there anyway to...
  12. Thread: Merge Sort

    by tsmith94
    Replies
    6
    Views
    2,581

    Wow, I missed that. Thank you guys

    Wow, I missed that. Thank you guys
  13. Thread: Merge Sort

    by tsmith94
    Replies
    6
    Views
    2,581

    1>Merge Sort Demonstration.obj : error LNK2028:...

    1>Merge Sort Demonstration.obj : error LNK2028: unresolved token (0A000012) "void __cdecl displayElements(int * const,int)" (?displayElements@@$$FYAXQAHH@Z) referenced in function "int __cdecl...
  14. Thread: Merge Sort

    by tsmith94
    Replies
    6
    Views
    2,581

    Merge Sort

    Sorry... but I need help with a problem I have I'm writing a Merge Sort for a class presentation but I'm having a problem running it.


    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>...
  15. %.2fspecifies that there will be 2 decimal places...

    %.2fspecifies that there will be 2 decimal places in the output , if you print with %f the output will be in default format , which i think is 6 places for float.
  16. Replies
    3
    Views
    1,165

    I found an error where I had a ; onthe for loop...

    I found an error where I had a ; onthe for loop in line 27 , thanks to the printf. but now i get the correct result times 100 when I print r.
  17. Replies
    3
    Views
    1,165

    Sales Comission

    Hello again. doing a question in which I am to read the gross sales of a sales person and calculate their salary , which is 200 + 9% of gross salary. Then I am to count the number of workers between...
  18. Thread: Linear Search

    by tsmith94
    Replies
    5
    Views
    2,103

    Thanks. I was over thinking it , is why i didn't...

    Thanks. I was over thinking it , is why i didn't use a for loop. I changed it.
  19. Thread: Linear Search

    by tsmith94
    Replies
    5
    Views
    2,103

    Thank you ,its working now. I understand why the...

    Thank you ,its working now. I understand why the extra bits were unnecessary. Learned something today :)
  20. Thread: Linear Search

    by tsmith94
    Replies
    5
    Views
    2,103

    Linear Search

    Hi, I'm pretty new to C programming. Writing a program to search through an array and print the number and its position. The program compiles and runs and if the value entered is not present in the...
Results 1 to 20 of 20