ok here is my code for initialising a matrix to be solved.
//All Header Files Used
#include <iostream>
#include <string>
#include <cmath>
//initialising matrix to the size of 100
Type: Posts; User: scottmanc
ok here is my code for initialising a matrix to be solved.
//All Header Files Used
#include <iostream>
#include <string>
#include <cmath>
//initialising matrix to the size of 100
oh and the method of solving the matrix used in the program is by LU decomposition.
here is my whole program. It will be used to solve bvp's (boundary Value Problems) using the finite difference method. The problem i have is initializing the matrix that needs to be solved and then...
Does anyone know how to program LU decomposition. I am currently having problems with my own code. If anyone knows how, i will post my code i have so far to see if you can help fix it.
Thanks
you don't need to use command line arguments for this case.
thanks for all the help you guys. The program now works flawlessly. I used mainly stringstreams to fix my problem but anyways all the loose ends are fixed and it's extremely user firendly.
...
here's an example:
while(x)
{
x = true;
z = true;
// Problem starts here
string test;
cout<<"Enter the Length of the beam (mm): ";
i decided it would be easier to use strings with stringstreams.
Although now i have one problem. The isdigit call is not taking characters its taking integers! This is the first time i see this....
elad, for that to work i need to include the header file climit?
Correct?
If so how do i determine the limit size?
oh almost forgot i have another small problem. Whenever i run through the program using a certain "path", when i chose the same path again (to enter different values) , the program just skips the...
well if you run the program you will see that when you are supposed to enter an double, and you accidentally enter a character, the program will crash because i don't have a way of catching that. I...
i want to know how i can let the program know when the user inputs a character instead of the integer because it crashes if i don't avoid this.
posting code is bad i have over 1500 lines... i think ill just let somone dl it instead.
the problem is when a user inputs a length or a width or any numerical value. I want this to be error...
any other suggestions?
i know about the isdigit() and isalpha() but they take a character. I want to know if i can find out using the integer only.
if i ask a user to input an integer, how would i go about stopping somone from entering a character because my program would crash?
Thanks
but i can't get it to work. I keep getting an error because i don't have the wx/wx header file. I can't even find it!
Since i cannot get wxwindows to work, i thought i would try MFC since its built into the compiler. I have data taht ca easily be plotted on a graph using excel or even by hand. Does anyone know...
thanks for the help i got it working now
i'll try the ignore call but why is it like this? Isn't the compiler supposed to do this on its own?
#include <iostream>
#include <string>
#include <cmath>
#define PI 3.141592654
using namespace std;
class Column
{
well here is the core problem at the moment
string answer, reply, result;
cout<<"Does the Beam Have a Circular x-section or a Rectangular x-section ?"<<endl;
cout<<"\t...
ok, this program has no errors and runs fine. My problem is that the second cal of getline doesn't seem to work. Does anyone know why it looks fine to me. Thanks for your time.
#include...
everything is messed up its too hard to follow. It 's really annoying
If you do can you please aid me in setting it up because i can't get it hooked up to visual c++.