No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
import gpdraw.*; public class chemical { public static void main(String args[]) { DrawingTool pencil=new DrawingTool(new SketchPad(700, 700)); double points[][]=new double[4][3]; double theta=0; double vx=0, vy=0, vz=2; while(true) { points[0][0]=0;//x points[0][1]=1;//y points[0][2]=0;//z points[1][0]=.94281*Math.cos(theta); points[1][1]=-1/3; points[1][2]=.94281*Math.sin(theta); points[2][0]=.94281*Math.cos(theta+2.09439); points[2][1]=-1/3; points[2][2]=.94281*Math.sin(theta+2.09439); points[3][0]=.94281*Math.cos(theta+4.18879); points[3][1]=-1/3; points[3][2]=.94281*Math.sin(theta+4.18879); double screenx, screeny; for(int i=0; i<4; i++) { double x, … | |
How can I get the mouse position even when an event hasn't been performed, eg. I haven't clicked or left window, etc. Kind of like mousing over something. I am currently using a class that implements MouseListener, MouseMotionListener for events such as clicking and releasing but I would like a … | |
when I run eclipse (just downloaded the 32 bit version from the website) it gives an error dialog that says 'a java runtime enviroment or java development kit just be available in order to run Eclipse. No java virtual machine was found after searching the following locations: " and it … | |
Where can I find iostream.h ON THE INTERNET basically, I know how to use iostream.h, but I need to download it. I am not going to download a new compiler. I do not need any tips on how to include it in my program. Just where to find it. I … | |
import java.awt.*; 02 import javax.swing.*; 03 import java.util.Random; 04 import java.awt.event.*; 05 import java.awt.Color; 06 import java.awt.Graphics; 07 public class actualstuff extends JFrame 08 { 09 private JTextField textField1; 10 public static int index=0; 11 public static Graphics gx; 12 public actualstuff() 13 { 14 Container container=getContentPane(); 15 container.setLayout(new FlowLayout()); … | |
I am trying to make a program that couts characters in alternating colors. [CODE]#include <iostream.h> #include <windows.h> #include <dos.h> #include "Random.h" void main() { randomize(); HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE); int basecolor1=random(256), basecolor2=random(256); char board[4][4]; int x, y, k; for(x=0; x<4; x++) { for(y=0; y<4; y++) { k=(x%2); k+=(y%2); k=k%2; if(k==1) … | |
For some reason, when I do an output.put, it is not doing anything. [CODE]#include "stdafx.h" #include <fstream> #include <Windows.h> using namespace std; void main() { fstream input, output; int in1=0, in2=0, x=0, k=0, l=0, max=0; input.open("input.txt", ios::in); output.open("output.txt", ios::out); while(input.good()) { input>>in1; input>>in2; for(x=in1; x<in2; x++) { k=x; l=0; while(k!=1) … | |
This is a strange question, but it's very frustrating to me. In microsoft visual c++, when I open a cpp file, I can not compile it. Is there a specific way to open the file so that I can run it after opening? Thanks. | |
Hello. I am looking for a website that I can download Microsoft Visual c++ 6.0 or whatever it's called, the compiler. Just the compiler, nothing else like those things on Mic.'s website. Please give me a good up to date link that has a free full download for the compiler. … | |
2 questions that I have always wondered about: 1. On my compiler, I have to use [CODE]#include "stdafx.h" #include <iostream> #include <Windows.h> using namespace std;[/CODE] and not [CODE]#include "stdafx.h" #include <iostream.h> #include <Windows.h>[/CODE] Please explain the difference between these 2. (c++) 2. Why use pointers when the array can be … | |
I am using microsoft visual c++ 2010. when I compile, it gives me several warnings, and the ocassional errors. However, most of these warnings are in the header files that are included in the program. Is there a setting that only displays errors/warnings in the program and not the includes? … | |
Using microsoft visual c++ 2010. Everything is screwing up. I want to take an input file, write to an output file, and use the lines of the input file as strings. But... On previous run, I didn't have that last printf line. So everytime I run it, it just prints … |
The End.