Just want to now is there a code for either VB6 or Microsoft Visual C++ 2005 Express so that u can enter an algebra equation(which include unknown variables like x ) for the computer to solve and actually get the answer right.And also a code for but i thought it but just asking, to make a word problem written into an alegbra equation.And if no such think actually exist but can it be done?
VB code question?
well the first one is easy, u just use the formula to solve it, add 3 text boxes for the equation coff, add two labels for results, here's the code:
--------------------------------------...
A = Text1.Text
B = Text2.Text
C = Text3.Text
Var = (B ^ 2) - (4 * A * C)
If Var %26lt; 0 Then
Label1.Caption = "No Solution"
Else
Label1.Caption = -B + Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
If Var %26lt; 0 Then
Label2.Caption = "No Solution"
Else
Label2.Caption = -B - Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
--------------------------------------...
but i think making the cpu understanding a word problem is very hard maybe impossible..
if u need anything else in vb jst mail me: biboeg2001@yahoo.com
sending flowers
Tuesday, July 14, 2009
Assembly language program not working?
Why won't this program work in assembly? I'm using Microsoft Visual C++ 2005 Express Edition, and using x86 assembly architecture. It's suppose to add the values in the array that are higher than the variable sample(in this case 50) and display the result. The answer should be +358 but I keep getting +0. I know it's one little mistake I'm making. Any ideas? Code:
.data
sum DWORD 0
sample DWORD 50
array DWORD 10,60,20,33,72,89,45,65,72,18
ArraySize = ($ - array)/ TYPE array
.code
main PROC
mov eax, 0
mov edx, sample
mov esi, 0
mov ecx, ArraySize
L1: cmp esi,ecx
jg L2
jmp L5
L2: cmp array[esi*4], edx
jg L3
jmp L4
add eax, array[esi*4]
L3: add eax,array[esi*4]
L4: inc esi
jmp L1
L5: mov sum, eax
call Writeint
call Crlf
exit
main ENDP
END main
Assembly language program not working?
firstly the add before the L3 is never used as the preceding instruction is a jmp.
But your main problem is that you're comparing esi to ecx right at the start, and if esi%26gt;ecx then you jump to L2, otherwise you got to L5. esi starts at 0, and ecx at the size of the array, so it starts off less, so the first comparison fails and causes a jump to the end.
Change:
L1: cmp esi,ecx
to:
L1: cmp ecx,esi
.data
sum DWORD 0
sample DWORD 50
array DWORD 10,60,20,33,72,89,45,65,72,18
ArraySize = ($ - array)/ TYPE array
.code
main PROC
mov eax, 0
mov edx, sample
mov esi, 0
mov ecx, ArraySize
L1: cmp esi,ecx
jg L2
jmp L5
L2: cmp array[esi*4], edx
jg L3
jmp L4
add eax, array[esi*4]
L3: add eax,array[esi*4]
L4: inc esi
jmp L1
L5: mov sum, eax
call Writeint
call Crlf
exit
main ENDP
END main
Assembly language program not working?
firstly the add before the L3 is never used as the preceding instruction is a jmp.
But your main problem is that you're comparing esi to ecx right at the start, and if esi%26gt;ecx then you jump to L2, otherwise you got to L5. esi starts at 0, and ecx at the size of the array, so it starts off less, so the first comparison fails and causes a jump to the end.
Change:
L1: cmp esi,ecx
to:
L1: cmp ecx,esi
How do I make it into a exe?
In Microsoft Visual C++ 2005 Express Edition how do I make my project into a .exe file that I can use?
How do I make it into a exe?
Compile your program and make sure it compiles fine.
Click on Build-%26gt;Publish from your Menu Item.
OR
when you compile your program, and you go inside the debug folder of your project you will also find a .exe file there of your program.
Reply:http://www.techtutorials.net/
http://www.good-tutorials.com/
http://www.digitaljuice.com/
http://www.tutorialkit.com/
http://www.codestyles.com/
http://www.sitecube.com/website/promo_bw...
Reply:Tutorials are free on this subject from Microsoft.
Reply:on the menu bar there is an item labeled "Build". Click there and select "Build Solution" .... or just press F7.
Reply:sharpen two sides of it and mount it on a wooden handle......sorry ...i thought you said an axe......
How do I make it into a exe?
Compile your program and make sure it compiles fine.
Click on Build-%26gt;Publish from your Menu Item.
OR
when you compile your program, and you go inside the debug folder of your project you will also find a .exe file there of your program.
Reply:http://www.techtutorials.net/
http://www.good-tutorials.com/
http://www.digitaljuice.com/
http://www.tutorialkit.com/
http://www.codestyles.com/
http://www.sitecube.com/website/promo_bw...
Reply:Tutorials are free on this subject from Microsoft.
Reply:on the menu bar there is an item labeled "Build". Click there and select "Build Solution" .... or just press F7.
Reply:sharpen two sides of it and mount it on a wooden handle......sorry ...i thought you said an axe......
How to I create a link?
Im using Microsoft Visual C++ 2005 Express Edition and would like to know how to set up a hyperlink on a windows form, I cant work out how to do it, can anyone help?
Please give the code or a link
Heres my code so far:
private: System::Void linkLabel2_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkCli... e) {
}
(Thats only the part I need help with that isnt my whole code)
How to I create a link?
Add this code in ur LinkLabel_LinkClicked Event
System.Diagnostics.Process. Start ("IEXPLORE", "WWW.GOOGLE.COM")
Reply:hightlight what you want the link to be-
click 'create link'
type in the link
nd your done!
Please give the code or a link
Heres my code so far:
private: System::Void linkLabel2_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkCli... e) {
}
(Thats only the part I need help with that isnt my whole code)
How to I create a link?
Add this code in ur LinkLabel_LinkClicked Event
System.Diagnostics.Process. Start ("IEXPLORE", "WWW.GOOGLE.COM")
Reply:hightlight what you want the link to be-
click 'create link'
type in the link
nd your done!
To make a game?
anyone know any codes for microsoft visual c#2005 i have xna running in it but i dont know the codes for it
To make a game?
XNA Game Studio uses Visual C# 2005 Express, which is completely free. In fact, you should not be able to install XNA Game Studio if you have not already installed Visual C# 2005 Express.
There are no "codes" necessary, beyond the code you need to write to build your game. For that, you need to know or learn C# and read through the documentation and tutorials available with XNA Game Studio. Since XNA Game Studio is currently in beta, it's missing a lot of documentation and the APIs are still subject to change. I'd suggest you start out with the Space War start kit and poke around in the code to see what it's doing.
Reply:wow wat is that?
send flowers
To make a game?
XNA Game Studio uses Visual C# 2005 Express, which is completely free. In fact, you should not be able to install XNA Game Studio if you have not already installed Visual C# 2005 Express.
There are no "codes" necessary, beyond the code you need to write to build your game. For that, you need to know or learn C# and read through the documentation and tutorials available with XNA Game Studio. Since XNA Game Studio is currently in beta, it's missing a lot of documentation and the APIs are still subject to change. I'd suggest you start out with the Space War start kit and poke around in the code to see what it's doing.
Reply:wow wat is that?
send flowers
How do I create this?
Im new to C++ computer programming and wondered how to create a simple program that just displays some text and maybe a link. Just like a (warning) pop up you get but bigger.
Can anyone help me on this?
Please post the code for it or give a link
Im using Microsoft Visual C++ 2005 Express Edition
How do I create this?
you want to create a message box. try this code:
#include %26lt;windows.h%26gt;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox (NULL, "Hello World" , "Hello", 0);
return 0;
}
Reply:http://www.good-tutorials.com/
http://www.digitaljuice.com/
http://www.tutorialkit.com/
http://www.codestyles.com/
http://www.sitecube.com/website/promo_bw...
Can anyone help me on this?
Please post the code for it or give a link
Im using Microsoft Visual C++ 2005 Express Edition
How do I create this?
you want to create a message box. try this code:
#include %26lt;windows.h%26gt;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox (NULL, "Hello World" , "Hello", 0);
return 0;
}
Reply:http://www.good-tutorials.com/
http://www.digitaljuice.com/
http://www.tutorialkit.com/
http://www.codestyles.com/
http://www.sitecube.com/website/promo_bw...
Hacker installed this?
The program called Microsoft Visual C++ 2005 Redistributable was installed on my PC(Vista). I did not download it. Could it be that my computer is hacked and a hacker installed this program to do something malicious?
Hacker installed this?
It is installed by software you installed recently . It is a software made by microsoft .
Reply:I don't think it's a virus.
Do you use Microsoft update for your PC?
I think all vista's have that file.
http://www.microsoft.com/downloads/detai...
If you think it's a virus or some thing upload the file to http://www.virustotal.com/
Reply:Microsoft Visual C++ 2005 Redistributable is used by a LOT of programs that run on Vista %26amp; XP!!! That's why it's installed on your PC.
Don't remove this or you'll find a lot of your programs don't work anymore!!! This is a very safe program made by Microsoft...
Reply:No. This software is bundled or installed along with most new operating systems and software you need it to use a lot of programs.
Hacker installed this?
It is installed by software you installed recently . It is a software made by microsoft .
Reply:I don't think it's a virus.
Do you use Microsoft update for your PC?
I think all vista's have that file.
http://www.microsoft.com/downloads/detai...
If you think it's a virus or some thing upload the file to http://www.virustotal.com/
Reply:Microsoft Visual C++ 2005 Redistributable is used by a LOT of programs that run on Vista %26amp; XP!!! That's why it's installed on your PC.
Don't remove this or you'll find a lot of your programs don't work anymore!!! This is a very safe program made by Microsoft...
Reply:No. This software is bundled or installed along with most new operating systems and software you need it to use a lot of programs.
Subscribe to:
Posts (Atom)