Search:

Type: Posts; User: Zach Sisk

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,835

    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,835

    // // 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,835

    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,835

    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,835

    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,835

    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;
    ...
Results 1 to 6 of 6