CTphpnwb's Profile User Rating: *****

Reputation: 3463 Guru
Group:
Mentors
Active Posts:
12,334 (4.36 per day)
Joined:
08-August 08
Profile Views:
75,720
Last Active:
User is online 11 minutes ago
Currently:
Viewing Topic: Interesting truncation

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Toyota
Dream Kudos:
400
Expert In:
PHP

Latest Visitors

Icon   CTphpnwb has not set their status

Posts I've Made

  1. In Topic: monthly payment not changing in array of structures

    Posted 5 May 2016

    You need to calculate the monthly payment in your second for loop, not the first.
  2. In Topic: Using a Mux to display a string in its Braille form onto 6LEDS

    Posted 5 May 2016

    Don't think of programming. Think of what you'd need to do to turn on/off each of six LEDs if you were to do it by hand. How many times would you want to deal with each LED?
  3. In Topic: Functions passing by variable

    Posted 4 May 2016

    You can return anything you like.
    #include <iostream>
    
    void func(int value) {
    	std::cout << "2 * " << value << " = " << 2 * value << std::endl;
    }
    
    int func2(int &a) {
    	return 2*a;
    }
    
    int func2(double a) {
    	return 3*a;
    }
    
    double func3(double a) {
    	return 3.2*a;
    }
    
    int main() {
    
    	int a = 4;
    	double b = 4;
    	func(a);
    
    	std::cout << "two times " << a << " = " << func2(a) << std::endl;
    	std::cout << "3 times " << b << " = " << func2(b ) << std::endl;
    	std::cout << "3.2 times " << b << " = " << func3(b ) << std::endl;
    
    	return 0;
    }
    
    
  4. In Topic: Functions passing by variable

    Posted 4 May 2016

    http://www.cplusplus...rial/functions/
    What you send to a function does not dictate what you may return from it.
  5. In Topic: Using a Mux to display a string in its Braille form onto 6LEDS

    Posted 4 May 2016

    Does it make sense to you that turnLedsOn() should call selectMuxPin() (which will call digitalWrite() three times), then call digitalWrite() itself, for each of the six pins?

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Florida
Interests:
Programming.
Rock Climbing. A bad day of rock climbing is still a good day.
Programming Languages:
C++
PHP
Javascript
HTML, CSS
Dabble in Objective C, Swift

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    CTphpnwb Icon

    31 Mar 2010 - 18:50
    Please post programming questions in the appropriate forums.
Page 1 of 1