This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i = number.length() - 2; i > 0; --i) | |
{ | |
cout << number.length(i); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make a new Eclipse project for this objective named java4_Objective1. Put a copy of our current SalesApp class in this new project. So that it has no errors, comment out the lines about the SalesInterface: | |
// SalesInterface myInterface; | |
// public void setInterface(SalesInterface myGUI){ | |
// myInterface = myGUI; | |
// } | |
Save this--there should be no errors now in this current version. | |
package salesGUI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"><!--writeMovie1();--></script> | |
<div class="nav"> | |
<img usemap="#map1" id="shapeimage_3" src="media/arrow.png" alt="Next" title="" /> | |
<map name="map1" id="map1"> | |
<area href="Feeding.html" title="Feeding.html" alt="Feeding.html" coords="11, 15, 111, 70" /> | |
</map> | |
</div> | |
<form> | |
<INPUT type="button" class="play" onClick="return writeMovie1();" alt="play-button" title="play-button"/> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by iWeb 2.0.4 local-build-20111116 | |
function writeMovie1() { | |
detectBrowser(); | |
if(windowsInternetExplorer) { | |
document.write('<object id="id5" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="150" height="16"><param name="src" value="Media/Tones.mp3" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="false" /></object>');} | |
else if(isiPhone) { | |
document.write('<object id="id5" type="video/quicktime" width="150" height="16" ><param name="src" value="Media/Tones.mp3"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// navigatorProgram: My first semi-good C++ program. | |
#include "stdafx.h" | |
#include <iostream> | |
#include <cctype> | |
using namespace std; | |
int main() | |
{ | |
// Declare. |