ok..maybe this is one of the most basic in c.. i've take c course in first year.. but i dont know what is the function of this.. #include..
#include<stdio. h>
#include<conio. h>
#include<string .h>
what is the different between these 3..
User Profile
Collapse
-
structuring data
where do i drop my post about data structure? is it here,in c++?
i really dont understand the lecture about data structure.. i know that it is use to make our program be more organize..
1.what is pointer?how it is suppose to help us with programming? -
book.. i use this book..
Programming in Visual Basic 6.0 by Julia Case Bradley and Anita C. Millspaugh
a very user friendly book.. -
vbwire started a topic how to display the result of double data type in the decimal places request by user?in Visual Basichow to display the result of double data type in the decimal places request by user?
i use vb 6.0
this is my work..
Code:1. Option Explicit 2. 3. Dim Error As Double 4. Dim x As Double 5. Dim y As Double 6. Dim z As Integer 7. Dim eps As Double 8. Dim a As Integer 9. Dim N As Integer 10.
-
thank you mike.. =)
i just realise my mistake in the calculation..
[CODE=vb]y = (x) - (x - (N ^ (1 / 2)))
[/CODE]
its actually..
[CODE=vb]y = x - (x - (N ^ (1 / 3)))
[/CODE]
and check my previous post.. i still have something for you..haha.....Leave a comment:
-
thank to both of you..
this is the program after i corrected it..
[CODE=vb]
Option Explicit
Dim Error As Double
Dim x As Double
Dim y As Double
Dim z As Integer
Dim eps As Double
Dim a As Integer
Dim N As Integer
Private Sub cmdCalculate_Cl ick()
'user input
If IsNumeric(txtN) And IsNumeric(txtEp s) And IsNumeric(txtX)...Leave a comment:
-
the loop calculate the value for y until the different between y and x is smaller than 'eps' ..
z is the number of looping it takes to complete the loop..
the value of x will take the value of y for the next looping.. for example in the first looping, x=2, then get the value of y.. then it will loop,use the value of y we get to calculate the new y. its continue give a new y until the different of the new y and y before...Leave a comment:
-
how to calculate the number of looping?
i use vb 6.0
[CODE=vb]
Option Explicit
Dim Error As Double
Dim x As Integer
Dim y As Double
Dim z As Integer
Dim eps As Double
Dim N As Integer
Private Sub cmdCalculate_Cl ick()
'user input
If IsNumeric(txtN) And IsNumeric(txtEp s) And IsNumeric(txtX) Then
N = txtN.Text
eps = txtEps.Text
x = txtX.Text... -
-
vrml
hi.. can u guys help me?
i want to make a cylinder but i dont know how to make it to be in horizontal position, or lie on y axis..
my codeCode:DEF cylinder Transform { translation 0 0.15 0 children [ Shape { appearance Appearance {material Material { diffuseColor .68 .68 .16 specularColor .39 .39 .27 emissiveColor .18 .18 .04 ambientIntensity .0433
-
-
this is what i programmed..
Code:Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdXy_Click() Dim A(1 To 6, 1 To 6) As Integer Dim x(1 To 6, 1 To 4) As Integer Dim y(1 To 4, 1 To 6) As Integer Dim z(1 To 4, 1 To 6) As Integer Dim row As Integer Dim col As Integer x(1, 1) = txtX(0).Text x(1, 2) = txtX(1).Text
Leave a comment:
-
Code:A(1, 1) = txtA(0).Text A(1, 2) = txtA(1).Text A(1, 3) = txtA(2).Text A(2, 1) = txtA(3).Text A(2, 2) = txtA(4).Text A(2, 3) = txtA(5).Text A(3, 1) = txtA(6).Text A(3, 2) = txtA(7).Text A(3, 3) = txtA(8).Text B(1, 1) = txtB(0).Text B(1, 2) = txtB(1).Text B(1, 3) = txtB(2).Text B(2, 1) = txtB(3).Text B(2, 2) = txtB(4).Text B(2, 3) = txtB(5).Text
Leave a comment:
-
matrix multiplication
this program have 3 arrays.. x,y and z.. its multiply array x and array y and will display the answer in array z.. my problem is, how to make the answer displays at z?
[CODE=vb]
Private Sub Command1_Click( )
Dim X(1 To 3, 1 To 3) As Integer
Dim Y(1 To 3, 1 To 3) As Integer
Dim Z(1 To 3, 1 To 3) As Integer
Dim row As Integer
Dim col As Integer
For row = 1 To 3... -
waahh.. its helps.. so,we can put a limit to our program rite? how to limits it to a minimum type of matrix?i.e.. to make it produce at least 3x3 matrix..
so interesting.....Leave a comment:
-
thank you.. but im confius.sorry.. im still new to this.
i dont know what is ubound. i had learn only the basic of vb. ive learnt controls,simple calculations,lo ops,arrays.. can it be more easier? i get the concept of matrix but i confius with the coding.....Leave a comment:
-
multiplication of 3 matrix that produce 6x6 matrix
hi.. im new to programming world.im a first year student in computer graphics. i just curious how to multiply 3 matrices in a coding. i just can do the 2 matrices multiplication. but it is not a good coding too.. if someone there can help me,i'll be so glad to learn.for now i would like to learn the simple c or visual basic 6.0..
No activity results to display
Show More
Leave a comment: