Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~11.2K People Reached
Favorite Tags
Member Avatar for SolidSora

I'm trying to write a program that prints out all prime numbers from 1 to 300. It isn't working the way I want it to. Right now it appears to have caused an infinite loop. Here is my code. [CODE]#include<iostream> #include<iomanip> using namespace std; int main(){ for(int i=0; i<=300; i++){ …

Member Avatar for Mahfuz_1
0
306
Member Avatar for SolidSora

I have a photo gallery where there is a strip of thumbnails on the top and a full size image below. Basically when I click the thumbnails, it should show the full size image in the image placeholder known as "full" in my page. That works fine except I also …

Member Avatar for SolidSora
0
208
Member Avatar for SolidSora

I've got a photo gallery on my website, but it seems to glitch at case 3 in my prevPic function. Instead of going backward, it goes forward. In each case, I want it to decrease the imgNum and show the previous picture. Here is some code: function prevPic(){ /*imgNum = …

Member Avatar for Taywin
0
140
Member Avatar for SolidSora

I've got a photo gallery button on my website. I've got one button that looks like a forward arrow, which works fine and a back arrow, which does nothing. Also clicking on the thumbnail to view a larger one works fine. Everything is fine except for the back arrow. Here …

Member Avatar for Helianthus
0
157
Member Avatar for SolidSora

I'm trying to make a mobile version of my website, the one on the computer works fine, but the mobile one is not. It will only show text, but not images. I think the problem is with Yahoo and not on my end. Anyone know of a way to get …

Member Avatar for pritaeas
0
171
Member Avatar for SolidSora

I got 3 frames to my animation and I'm trying to get it to play correctly. BUt, it will only play 1 frame of the animation. Here is my code: function playHomeAnimation(){ var timer =0; timer+=1; if(timer==0){ document.getElementById('home').src="home3.jpg"; } else if(timer==1){ document.getElementById('home').src="home2.jpg"; } else if(timer==2){ document.getElementById('home').src="home1.jpg"; } else if(timer>=3){ timer …

Member Avatar for Airshow
0
186
Member Avatar for SolidSora

I'm trying to use a for loop to convert a number into star images. My program reads from an SQL database to take a rating, which that works fine, but when I try to use a for loop it's a problem due to it being inside a table. Here's my …

Member Avatar for SolidSora
0
108
Member Avatar for SolidSora

I want to update a table based on what a user enters. I know I got the username and password correct. But I keep getting an error based on my debugging code. I'm connecting to the database successfully, but it's just not updating. The variables print into the page, so …

Member Avatar for dashawk
0
107
Member Avatar for SolidSora

I keep getting an unexpected$end parse error on line 32, but that line doesn't exist. I can't seem to find what is causing the problem. This is driving me crazy. [CODE]<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Your Output</title> </head> <body> <h1>Your Output</h1> <center> <? $basicText = $_REQUEST["basicText"]; …

Member Avatar for leakbali
0
183
Member Avatar for SolidSora

I got an image called badguy and it will not draw in the applet. Here is my code below. [CODE]package mainpackage; import java.applet.Applet; import java.applet.AudioClip; import java.awt.Graphics; import java.awt.Image; public class Test3 extends Applet implements Runnable{ /** * */ private static final long serialVersionUID = 1L; AudioClip shot; Image badguy; …

Member Avatar for mKorbel
0
145
Member Avatar for SolidSora

I want a loop that can count back and forth from 0 to 3. At first it counts up 1 each time and then when it reaches 3, it will count backwards to 0, then back up to 3 and so on. I already have a runnable that makes it …

Member Avatar for jon.kiparsky
0
3K
Member Avatar for SolidSora

I'm trying to make a program where it displays the users name based on what they entered. For example if the user enters: John Average User the output would display User, John A. And if the user enters John A. User the program would output User, John A. The problem …

Member Avatar for atticusr5
0
105
Member Avatar for SolidSora

I'm trying to bubble sort an array then display it in a list box. When I click the button the program crashes. Here is my code: [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Not TextBox1.Text = "" Then ListBox1.Items.Add(TextBox1.Text) ReDim Preserve numbers(numNumbers) numbers(numNumbers) …

Member Avatar for Momerath
0
620
Member Avatar for SolidSora

I need to make a program that outputs a name based on the users input. For the middle name I'm only supposed to show the middle initial. But the way I have my code written causes an error. [CODE]#include<iomanip> #include<iostream> #include<string> using namespace std; string firstName; string lastName; string middleName; …

Member Avatar for template<>
0
111
Member Avatar for SolidSora

I'm trying to add a number to a listbox that a user enters into a textbox. The program crashes when I press the button. [CODE]Public Class Form1 Dim numbers() As Integer Dim numNumbers As Integer = 0 Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress e.Handled …

Member Avatar for e_ayt
0
170
Member Avatar for SolidSora

I want the program to draw the key that is pressed on the screen. When I press a key, nothing happens. Class where the draw code is: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package lab5; import java.awt.Color; …

Member Avatar for Ezzaral
0
154
Member Avatar for SolidSora

I'm supposed to use an instanceOf for an assignment, and it says the type is incompatible. Here is my code: package City; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Brian */ public class City …

Member Avatar for ztini
0
95
Member Avatar for SolidSora

I have to make a Tic Tac Toe game for class and I have a problem with checking if the space is available when the player enters it. Everything else works fine. Here is my main: [CODE]#include<iostream> #include"tictactoe.h" using namespace std; int choice; int main(){ TicTacToe myBoard = TicTacToe(); cout<<"Enter …

Member Avatar for SolidSora
0
457
Member Avatar for SolidSora

I'm trying to write a fraction class and I want a function to reduce the fraction to lowest terms. The problem I'm having is trying to get the fractions to reduce. I need a way to find a common factor in both numbers. All other functions work the way I …

Member Avatar for vijayan121
0
4K
Member Avatar for SolidSora

I'm trying to get my main function to read my class file. It doesn't compile. Here is my main file: [CODE]#include<iostream> #include<iomanip> #include"countertype.h" using namespace std; void main(){ CounterType counter = CounterType(); counter.setCount(2); counter.getCount(); }[/CODE] And my class code: [CODE]#include<iostream> #include<iomanip> using namespace std; class CounterType{ public: int count; CounterType(){ …

Member Avatar for JasonHippy
0
217
Member Avatar for SolidSora

I'm working on a seat diagram program, and it's not reading the input how it should. Also when the user enters a seat it should change the letter to an X. The program isn't reading the input correctly. When I tell the program to print the seat the user picked, …

Member Avatar for SolidSora
0
170
Member Avatar for SolidSora

I have a Seat Class and I'm trying to get my main file to access the Seat class and it's not working. Here is my code: My seat class: [CODE]#include<iostream> #include<iomanip> #include<string> class Seat{ public: char name; bool available; Seat(char name, bool available){ this.name=name; this.available = available; } Seat(){ name="A1"; …

Member Avatar for Fbody
0
140
Member Avatar for SolidSora

I'm trying to make cars of a certain color go from one array to another. For example if I want all red cars to go to be displayed, I throw the red cars into another temporary array and they get displayed on the screen. How would I make this work? …

Member Avatar for ~s.o.s~
0
118
Member Avatar for SolidSora

[CODE]#include<iostream> #include<iomanip> #include<string> class Pizza{ public: std::string type; std::string size; int toppings; Pizza(){} void setType(std::string type){ type = type; } std::string getType(){ return type; } void setSize(std::string size){ size = size; } std::string getSize(){ return size; } void outputDescription(){ //cout<<"A " cout<<getType(); cout<<" pizza; } }; int main(){ Pizza large …

Member Avatar for SolidSora
0
88