Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 458 results for
0xc8000222
- Page 1
Problem in circle drawing
Programming
Software Development
13 Years Ago
by gaurav_13191
This is my code for drawing a circle using mid point algorithm:- [CODE] //Midpoint circle algorithm #include<graphics.h> #include<stdio.h> #include<conio.h> void drawcircle(int xc,int yc,int r); int main() { int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"..//bgi"); drawcircle(250,250,…
Re: Problem in circle drawing
Programming
Software Development
13 Years Ago
by gaurav_13191
I wish I should have figured the mistake earlier.. Again a silly mistake and I made the output a distorted square. I was not incrementing p as it was required.Just try the following program and the output is a circle. [CODE] //Midpoint circle algorithm #include<graphics.h> #include<stdio.h> #include<conio.h> void drawcircle(int …
to add color?
Programming
Software Development
13 Years Ago
by joe00
i have the following code but i can not make the color work. where is the problem? #include <iostream.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <math.h> #include <graphics.h> #include <dos.h> #include <bios.h> #include <ctype.h>…
create animation using runnable interface
Programming
Software Development
12 Years Ago
by Pravinrasal
I want display 2nd cycle after sleeping 1st cycle time 1 second after that display 2nd ,3rd and so on.... I bold my thread code in above program.... [CODE] public class MainDrawCycle extends JPanel implements ActionListener ,Runnable { JButton button; JLabel lblclkValue,lbldispValue,lblTitle; JTextField textField; JScrollPane pane…
Recursive function
Programming
Software Development
15 Years Ago
by DemonGal711
I have to fill in a 2^n by 2^n board that has a hole in it with tiles that look like the example below. The tile we have to use is the combination of the 1's in the image below and the 0 is the hole (cause I really don't know how to explain it). [URL="http://i21.photobucket.com/albums/b272/DemonGal711/board.jpg"]2x2 board[/URL] I've …
Custom Buttons
Programming
Software Development
13 Years Ago
by mitch9654
My custom button thing isn't clickable. I don't know why! (obviously :P) I DO have an action listener This make a button that looks like a cross. The input is: [code] "name", g, 0, 0, 100, 100 [/code] It looks like this: [url]http://mitch9654.zymichost.com/Java/index.html[/url] [code]package Buttons; import java.awt.*; /** * * @…
Re: Custom Buttons
Programming
Software Development
13 Years Ago
by mitch9654
[QUOTE=mitch9654;1238037]My custom button thing isn't clickable. I don't know why! (obviously :P) I DO have an action listener This make a button that looks like a cross. The input is: [code] "name", g, 0, 0, 100, 100 [/code] It looks like this: [url]http://mitch9654.zymichost.com/Java/index.html[/url] [code]package …
Waiting Button
Programming
Software Development
13 Years Ago
by mitch9654
This button will only appear if you move your mouse over it. See here: [url]http://mitch9654.zymichost.com/Java/index.html[/url] You hava to move the mouse around the top left my applet is this [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Main; import java.applet.Applet; …
VPython to slow for 3D plot
Programming
Software Development
13 Years Ago
by awie10007
Scanning from a laser line and usb cam V Python fill up memory to 1.6G and crash the system Smaller Scan works fine is there a better plotting module or a way of getting past V Python memory block? The plot must happen in color xyz rgb. [CODE]import thread import sys import time import CV import visual as PLOT from Geom_3D import…
Matrix help
Programming
Software Development
17 Years Ago
by nasduck
Hello, there: I am trying to calculate to the inverse of matrix A. How to call function to main part? How to write the code for a matrix? Can someone help me modify the errors? Thank you very much! -------- [code=c] #include "matrix.h" Matrix solve(const Matrix& A, const Matrix& B){ /* solve A x = B and return the …
Features not working on C cursor screen
Programming
Software Development
7 Years Ago
by JohnMcPherson
Hello, I am having two problems with three C sursor screens I coded, using the curses library. The first problem is that a field will not highlight when I move the cursor to that field, even though I use the wattron command to highlight it. I can get the highlight command to work when I use mvwprintw, but it does not work when I use wmove. Below is…
AVL tree help
Programming
Software Development
14 Years Ago
by UberJoker
Hey guys. I apologize for my sloppy code. But it got a bit longer than i expected so i stopped bothering about giving meaningful names to Variables later on in the program. Below I have a AVL tree(atleast that's what I intended to write). But my approach to it was a little different and I am not sure if its even correct. If the tree is drawn on …
Re: AVL tree help
Programming
Software Development
14 Years Ago
by UberJoker
[CODE] #include <iostream> #include <stdio.h> #include <stdlib.h> #include <fstream> #include <algorithm> #include <vector> #include <stack> using namespace std; class BinaryTree { private: struct TreeNode { int data; TreeNode *LeftChild; TreeNode *RightChild;…
Opengl - Moving a shape
Programming
Software Development
13 Years Ago
by em-kay
Hello FirstPerson First of all, Im not an openGL expert but Im trying to write a code of a movng object and Im facing some problems. So i need your help please here is the code [CODE]#include <iostream> #include <cmath> #include <windows.h> #include <gl/Gl.h> #include <gl/Glu.h> #include <gl/glut.h>…
Re: VB.Net Why is this true?
Programming
Software Development
14 Years Ago
by kplcjl
Looks like I found a VB.Net compiler error in VS. This repeats the behavior just before the Else statement. Make the last statement an If... End If removes the error. Sub Main() Dim xc As Byte Dim x0 As Byte Dim x1 As Byte Dim yc As Byte Dim y0 As Byte Dim y1 As Byte Dim nums(4) As…
RLC circuit using c programming
Programming
Software Development
15 Years Ago
by latour1972
can someone help me for this cuz I dont know what to do [code=c] #include<stdio.h> #include<math.h> /**RLC Circuit**/ void main() { float v, r, l, c, f, i; long double Xc, Xl, Z, Vr, Vc, Vl; const double pi=3.1415926535; printf("Enter v="); scanf("%d",&v); printf("Enter r="); …
Re: RLC circuit using c programming
Programming
Software Development
15 Years Ago
by Creator07
[QUOTE=latour1972;746842]can someone help me for this cuz I dont know what to do #include<stdio.h> #include<math.h> /**RLC Circuit**/ void main() { float v, r, l, c, f, i; long double Xc, Xl, Z, Vr, Vc, Vl; const double pi=3.1415926535; printf("Enter v="); scanf("%d",&v); printf("Enter …
writing style critique
Programming
Software Development
13 Years Ago
by fabricetoussain
[CODE] /* Fabrice Toussaint section N938 Feburary 1, 2011 Purspose of program is to locate centroid and find distance between all three points and centroid */ #include <iostream>// for cout and cin #include <cmath> // for sqrt () and pow (x,y) using namespace std; int main () { float distance1; // assign number of …
Re: Recursive function
Programming
Software Development
15 Years Ago
by Salem
So it does reach the far corner then. > fill(half, a, q1, 0, 0, xc, yc, pxc, pyc, ++num); My guess is each of these should be num+1, not num++ (or even ++num) But then again, I can't see why it would need to be a reference either.
Re: equation of a circle
Programming
Game Development
15 Years Ago
by mrnutty
Varying the y or x did not work either? for(float xc=0.0, yc = 0.0; xc <= 5; xc+=0.1,yc+=0.1 ) { //xCor = sqrt( pow(five,two) - pow(yc,two) ); yCor = (double)sqrt( pow(five,two) - pow(xc,two) ); glVertex2f(xc,yCor); } glEnd();
Re: Matrix help
Programming
Software Development
17 Years Ago
by WaltP
Please format your code and use whitespace. It's practically unreadable in in't present form [code] #include "matrix.h" Matrix solve (const Matrix& A, const Matrix& B) { /* solve A x = B and return the answer. It is assumed that A can be factored without pivoting. The factors are not saved */ if (A.row != A…
[Help] unkown .lev file decrypted
Programming
Game Development
15 Years Ago
by duo8668
Hi all, Sorry to interrupting, I am very interested with the game development and I found 1 of my game file and i decrypt it because the original file doesnt show. Can anyone help me to explain about it or any tools that can let me understand it ? Thank you very much. [CODE] . t …
Looping in Applet
Programming
Software Development
15 Years Ago
by cproud21
I am to design an applet that produces a six sided polygon in which the coordinates are set according to the location of the mouse when it is clicked. I am struggling setting each of the clicks to the correct point. I have tried many things, however have not been able to come up with a working idea. I have set up a while loop in my mouseListener, …
equation of a circle
Programming
Game Development
15 Years Ago
by mrnutty
hi, I am trying to draw a circle without using cos,sin; Mainly by the formula x^2+y^2 = r^2; this is my code , but for some reason its not working. any help? note: I thought this code would draw the upper halve fo the portion. float xCor,yCor; xCor=yCor =0.0; float five,two; five = 5.0; tow = 2.0; [code] for(float xc=0…
Re: VB.Net Why is this true?
Programming
Software Development
14 Years Ago
by kvprajapati
[b]Arrays[/b] in .net framework are reference type. Don't compare references. Use [b]Equals[/b] method. [code] If Solve_vertically Then If y0 = yc And NumbersLcl(xc, yc).Equals(NumbersLcl(x0, y0)) Then isfound = False If y1 = yc And NumbersLcl(xc, yc).Equals(NumbersLcl(x1, y1)) Then isfound = False Else If x0 = xc And NumbersLcl(xc, yc).…
How to add scroll to jframe
Programming
Software Development
12 Years Ago
by Pravinrasal
Following is my program i need to add scroll to jframe and I have paint method in it package other; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.…
Re: How to add scroll to jframe
Programming
Software Development
12 Years Ago
by Pravinrasal
[B]Again I post my program but still scroll bar didn't added[/B] [CODE=java] import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.event.ActionEvent; import java.awt.…
Re: How to add scroll to jframe
Programming
Software Development
12 Years Ago
by Pravinrasal
[QUOTE][B]Again I post my program but still scroll bar didn't added[/B][/QUOTE] [CODE=java] import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.event.ActionEvent; …
Re: How to add scroll to jframe
Programming
Software Development
12 Years Ago
by Pravinrasal
Again i post my code and set panel size and frame size as mentioned in bold tag [CODE] public class MainDrawCycle extends JPanel implements ActionListener,Runnable { JButton button; JLabel label; JTextField textField; JScrollPane pane; JPanel panel; JFrame frame; Container c; static int val; int xa,ya,xb,yb,x1,y1; int xc,yc,xd,yd,xe,ye…
Split Column by Pipe In Ms Sql
Programming
Databases
9 Years Ago
by jotungiya
Split pipe delimited into new columns as below : col1 col2 col3 col4 Data|7-8|5 Data 7-8 5 Data|asdsad|sad Data asdsad sad fish|c cx cx xc cc xc cx |ededededeed fish c cx cx xc cc xc cx …
1
2
3
8
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC