Forum: C++ 5 Days Ago |
| Replies: 7 Views: 107 |
Forum: C++ 7 Days Ago |
| Replies: 4 Views: 126 |
Forum: C++ 8 Days Ago |
| Replies: 9 Views: 138 |
Forum: VB.NET 11 Days Ago |
| Replies: 4 Views: 207 |
Forum: VB.NET 11 Days Ago |
| Replies: 4 Views: 187 |
Forum: VB.NET 11 Days Ago |
| Replies: 3 Views: 118 Re: Installation help Installation requires the dotnet framework 2.0 etc.
So you may need to check that on the client machine.
The professional version comes with an installer, the express version doesn't. (I... |
Forum: VB.NET 11 Days Ago |
| Replies: 4 Views: 207 |
Forum: C++ 12 Days Ago |
| Replies: 5 Views: 123 Re: Factors of a Polynomial Yep, then end result being something like:
http://www.hostsrv.com/webmab/app1/MSP/quickmath/02/pageGenerate?site=quickmath&s1=equations&s2=solve&s3=basic
I've started to work on such a beast but... |
Forum: C++ 12 Days Ago |
| Replies: 3 Views: 96 |
Forum: C++ 12 Days Ago |
| Replies: 5 Views: 123 Re: Factors of a Polynomial Write yourself an expression parser which handles polynomials, then apply a numerical method such as the newton raphson to find the roots of the equation. |
Forum: C 12 Days Ago |
| Replies: 3 Views: 175 Re: Functions in C If you don't know how to use functions I would google it or read a book. |
Forum: C++ 12 Days Ago |
| Replies: 4 Views: 188 |
Forum: C++ 12 Days Ago |
| Replies: 2 Views: 134 |
Forum: C++ 12 Days Ago |
| Replies: 14 Views: 423 |
Forum: C++ 12 Days Ago |
| Replies: 3 Views: 150 Re: Trim function #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <iterator>
using namespace std;
void trim(string str) |
Forum: C++ 12 Days Ago |
| Replies: 3 Views: 150 Re: Trim function Should be simple,
Start from the end and keep going back one checking if the previous one was a '*', when this fails note the integer position and substring it.
simple |
Forum: C++ 12 Days Ago |
| Replies: 11 Views: 190 |
Forum: C++ 12 Days Ago |
| Replies: 11 Views: 190 |
Forum: C++ 12 Days Ago |
| Replies: 11 Views: 190 Re: sorting a text file I would then use std::unique as follows:
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <iterator>
using namespace std; |
Forum: C++ 12 Days Ago |
| Replies: 11 Views: 190 Re: sorting a text file Now try sorting them using a vector i.e
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
int main() |
Forum: C++ 12 Days Ago |
| Replies: 11 Views: 190 Re: sorting a text file First of all read in your text file line by line:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() |
Forum: C++ 13 Days Ago |
| Replies: 11 Views: 190 Re: sorting a text file I've told you before, using EOF to control file i/o is a bad idea.
And I don't get your output. It isn't sorted alphabetically, after removing duplicates etc etc. |
Forum: C++ 13 Days Ago |
| Replies: 14 Views: 423 |
Forum: C++ 13 Days Ago |
| Replies: 14 Views: 423 Re: VERY BASIC C++ >> reading from a text file > i want to extract individual words and remove duplicated
Depends are you allowed to use the <STL>? You could use std::unique, or write your own:
1) Sort values,
2) Remove all the ones repeated... |
Forum: C++ 13 Days Ago |
| Replies: 5 Views: 98 |
Forum: VB.NET 13 Days Ago |
| Replies: 4 Views: 199 Re: Sequential file problems Try pointing to the absolute path, or get rid of the first backslash in \interestrates.txt
The file should be kept in the same directory as where your program is ran.
Normally the debug.exe... |
Forum: VB.NET 13 Days Ago |
| Replies: 4 Views: 165 |
Forum: Java 13 Days Ago |
| Replies: 10 Views: 237 |
Forum: C 13 Days Ago |
| Replies: 3 Views: 168 Re: bubble sort that is one hideous looking bubble sort.
Search the forums for a simpler solution which uses temporary variables. |
Forum: C++ 13 Days Ago |
| Replies: 8 Views: 171 |
Forum: C++ 13 Days Ago |
| Replies: 8 Views: 138 |
Forum: C++ 14 Days Ago |
| Replies: 8 Views: 188 |
Forum: C 14 Days Ago |
| Replies: 4 Views: 144 Re: Is C machine independent? It might do, things like if you're using a 64bit server 2003 os might be a problem if you compiled the code on a 32bit os. |
Forum: Windows NT / 2000 / XP / 2003 14 Days Ago |
| Replies: 2 Views: 137 |
Forum: Windows NT / 2000 / XP / 2003 14 Days Ago |
| Replies: 3 Views: 148 |
Forum: C 14 Days Ago |
| Replies: 4 Views: 144 Re: Is C machine independent? No, definitely not for windows -> unix.
I'd recommend recompiling your code under different operating systems. But if your using turbo c (the old version), things like clrscr() and other crap won't... |
Forum: C 14 Days Ago |
| Replies: 4 Views: 199 |
Forum: C++ 14 Days Ago |
| Replies: 2 Views: 85 |
Forum: C++ 14 Days Ago |
| Replies: 7 Views: 371 Re: Newton's Method - Finding Complex Roots >I don't think Newton's Method can be used to find complex roots.
Do you have proof that you can't use newton's method for complex roots? I reckon it possible as long as you specify an initial... |
Forum: C++ 15 Days Ago |
| Replies: 1 Views: 60 |