Search:

Type: Posts; User: Zach Sisk

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,849

    That last part is what i needed to see. I tried...

    That last part is what i needed to see. I tried it with only one variable to begin with with the same results, and i was trying to figure out how to assign it back to the variable it came from....
  2. Replies
    10
    Views
    1,849

    // // main.cpp // RGB Converter - C++ // //...

    //
    // main.cpp
    // RGB Converter - C++
    //
    // Created by Zach Sisk on 9/25/12.
    // Copyright (c) 2012 Zach Sisk. All rights reserved.
    //

    #include <iostream>
    #include <string>
  3. Replies
    10
    Views
    1,849

    So after a lot of messing with it, the function...

    So after a lot of messing with it, the function is declared outside of main now.

    Now my problem lies with actually calling the function.
    I called the function and then had it output the...
  4. Replies
    10
    Views
    1,849

    Any ideas as to why it wouldn't be working for...

    Any ideas as to why it wouldn't be working for me?
    Here is the code in context.

    //
    // main.cpp
    // RGB Converter - C++
    //
    // Created by Zach Sisk on 9/25/12.
    // Copyright (c) 2012 Zach...
  5. Replies
    10
    Views
    1,849

    well if i don't declare var i get a compile error...

    well if i don't declare var i get a compile error saying i used a undeclared variable. also could you explain a bit on the integer division?
    basically what i'm trying to do is write a program that...
  6. Replies
    10
    Views
    1,849

    Defining a function

    I'm trying to define a function in C++ and according to jumping into C++ i need to follow the format of


    int convert(int var){
    int var = 0;
    var = var * 100 / 255;
    ...
  7. Replies
    2
    Views
    1,405

    that didn't work. on "cin" i can type any number...

    that didn't work. on "cin" i can type any number i want, but only the first character shows up.

    it's really annoying.
  8. Replies
    2
    Views
    1,405

    Help with Xcode

    I'm currently working on a project that simply converts a DMX value to a 100% value.

    I have all the code I need and it works properly, but when i try to run it in xcode, it only shows the first...
  9. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Gotcha, didn't think about that. Thanks.

    Gotcha, didn't think about that. Thanks.
  10. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Could you explain how I should use a macro...

    Could you explain how I should use a macro everywhere? And point out which term is considered a Macro?
    Also thanks for the spelling. I can never spell Fahrenheit. And I couldn't figure out spell...
  11. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Gotcha. I thought i did a pretty decent job, and...

    Gotcha. I thought i did a pretty decent job, and actually preferred it to the "solution." Sure I could enable it to input bigger numbers I guess. But overall I was pretty happy with it.
  12. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    That was a loop to ask them to re-enter a...

    That was a loop to ask them to re-enter a temperature if high > the upper limit. I see nothing wrong with that bit of code.

    Want to explain what is wrong with it?
  13. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    So after a bit of work and refinement (the code i...

    So after a bit of work and refinement (the code i started with is commented out) this is what I came up with.


    /*
    * File: main.c
    * Author: zachsisk
    * Temperature Conversion Program
    *...
  14. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    I wasn't saying that I was using the Turbo C...

    I wasn't saying that I was using the Turbo C complier, haha. These are books on Turbo C that my grandpa gave me, they came with original floppies, haha.
    I am using NetBeans for mac right now. I was...
  15. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    No I haven't, I was reading a book for school...

    No I haven't, I was reading a book for school called "C Programming For Engineering & Computer Science". Now i'm thinking that this other book from my grandfather might be better. Although it's...
  16. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    So, I'm on a mac, which complier do you...

    So, I'm on a mac, which complier do you recommend? Right now i'm using NetBeans, as it's the only program that will make anything. Same code on different ones and they always fail.
  17. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    It was actually a book that told me that. It is...

    It was actually a book that told me that. It is the book that was assigned as reading for my class. My grandfather gave me his Borland C books, which do not use void. But I never checked them until...
  18. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Yeah, I understood that. lol. Like I said...

    Yeah, I understood that. lol. Like I said initially, i'm not completely new to the concept of programming, just new to actually doing it.. lol. Especially in this C language..
  19. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    thanks for that advice. i'm not looking at the...

    thanks for that advice. i'm not looking at the answer until I think I have something satisfactory. Then i'll compare and see if there are better ways to do it.
  20. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Thanks for that. I really don't understand why...

    Thanks for that. I really don't understand why tutorials tell you to type something that is considered bad practice and in most cases wrong altogether..
  21. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    thanks. Right now i'm working on the practice...

    thanks. Right now i'm working on the practice problem of converting temperatures. And I think i'm doing pretty good for a beginner.


    /*
    * File: main.c
    * Author: zachsisk
    *
    * Created on...
  22. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    well since the thread has already been moved,...

    well since the thread has already been moved, i'll stick with regular C.

    Also I found that cout must be for C++ and not C

    Also could someone briefly explain the difference between like C, ANSI...
  23. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    It was actually intended for the C programming...

    It was actually intended for the C programming language in general, covering most variants. C, C++, C# specifically.
  24. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    Thanks for both of those answers! Matticus gave...

    Thanks for both of those answers! Matticus gave me some beginning problems to program, and the SPOJ looks like it will be nice once i've developed my skill set a little more.

    Also, I am making my...
  25. Thread: My idea.

    by Zach Sisk
    Replies
    39
    Views
    8,837

    My idea.

    So, basically i'm new to programming especially in C. I can do web scripting, so I'm not completely new to the concept of programming.
    But right now i'm a student in a computer engineering degree. I...
Results 1 to 25 of 25