User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 456,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,962 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 500
Search took 0.07 seconds.
Posts Made By: iamthwee
Forum: C++ 5 Days Ago
Replies: 7
Views: 107
Posted By iamthwee
Re: help with C++ program

Taking the mod of 0 might be a problem as well, since you declare i to start at zero.
Forum: C++ 7 Days Ago
Replies: 4
Views: 126
Posted By iamthwee
Re: Help For Finding The Longest Monotone SubSequence

Maybe?

http://www.algorithmist.com/index.php/Longest_Increasing_Subsequence.cpp
Forum: C++ 8 Days Ago
Replies: 9
Views: 138
Posted By iamthwee
Re: simple tolower() and reading a text from the input

Maybe it is because your returning a char instead of a char array.
Forum: VB.NET 11 Days Ago
Replies: 4
Views: 207
Posted By iamthwee
Re: How do I code a multidimensional array?

If it works it works, but I'd recommend reading up on classes as they form an integral part of code design.
Forum: VB.NET 11 Days Ago
Replies: 4
Views: 187
Posted By iamthwee
Re: Crystal Reports asks for Username and Password while loading

An idea but not necessarily the best,

you could write it to the registry.
Forum: VB.NET 11 Days Ago
Replies: 3
Views: 118
Posted By iamthwee
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
Posted By iamthwee
Re: How do I code a multidimensional array?

You mean declare a class and have the those objects in a one dimensional array?
Forum: C++ 12 Days Ago
Replies: 5
Views: 123
Posted By iamthwee
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
Posted By iamthwee
Re: please help with code emmidiately

http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046996179&id=1043284385
Forum: C++ 12 Days Ago
Replies: 5
Views: 123
Posted By iamthwee
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
Posted By iamthwee
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
Posted By iamthwee
Re: Deleting an index of array using pointers

Wouldn't you have to use a dynamic array using new and delete?

http://www.fredosaurus.com/notes-cpp/newdelete/50dynamalloc.html
Forum: C++ 12 Days Ago
Replies: 2
Views: 134
Posted By iamthwee
Re: Help With Simple Equation Parsing

Google rpn/shunting yard algorithm.

http://www.daniweb.com/code/snippet599.html
Forum: C++ 12 Days Ago
Replies: 14
Views: 423
Posted By iamthwee
Re: VERY BASIC C++ >> reading from a text file

I agree, removal of duplicates isn't really the issue here, but rather the implementation of your struct/class.
Forum: C++ 12 Days Ago
Replies: 3
Views: 150
Posted By iamthwee
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
Posted By iamthwee
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
Posted By iamthwee
Re: sorting a text file

OK I've had enough of this nonsense, you're on your own now.

Ha ha ha.
Forum: C++ 12 Days Ago
Replies: 11
Views: 190
Posted By iamthwee
Re: sorting a text file

I don't get the meaning of your output?
Forum: C++ 12 Days Ago
Replies: 11
Views: 190
Posted By iamthwee
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
Posted By iamthwee
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
Posted By iamthwee
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
Posted By iamthwee
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
Posted By iamthwee
Re: VERY BASIC C++ >> reading from a text file

I just need to clarify something. Tell me are you clueless?
Forum: C++ 13 Days Ago
Replies: 14
Views: 423
Posted By iamthwee
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
Posted By iamthwee
Re: Homework HELP!!urgent!!

I still see no code from the OP.

Code would be a nice start.
Forum: VB.NET 13 Days Ago
Replies: 4
Views: 199
Posted By iamthwee
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
Posted By iamthwee
Re: Select Case Problem

Yes this is possible.
Forum: Java 13 Days Ago
Replies: 10
Views: 237
Posted By iamthwee
Re: please some one should help with is code for i am haveing error with it

I voted help me out because I thought the poll was about my mental health.
Forum: C 13 Days Ago
Replies: 3
Views: 168
Posted By iamthwee
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
Posted By iamthwee
Re: Saving Data Inside an exe

Maybe xor encryption?

Depends on what level of security you wish to adopt.

Google it.
Forum: C++ 13 Days Ago
Replies: 8
Views: 138
Posted By iamthwee
Re: CIN>>EQUATION (how to then mult by it later)

Depends, is the function hard coded or can the user enter any function at the command line?
Forum: C++ 14 Days Ago
Replies: 8
Views: 188
Posted By iamthwee
Re: using pointers in C++ for array

It would be, isalpha expects one character.
Forum: C 14 Days Ago
Replies: 4
Views: 144
Posted By iamthwee
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
Posted By iamthwee
Forum: Windows NT / 2000 / XP / 2003 14 Days Ago
Replies: 3
Views: 148
Posted By iamthwee
Re: No commands are executing in my CMD.exe.

Maybe something has changed try a system restore if all else fails.
Forum: C 14 Days Ago
Replies: 4
Views: 144
Posted By iamthwee
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
Posted By iamthwee
Re: Big looping problem in C - help

Is your program accepting integers as well as strings(letters)?
Forum: C++ 14 Days Ago
Replies: 2
Views: 85
Posted By iamthwee
Re: Pickle equivalent in C++?

This sounds like serialisation? Boost sounds like a good option.
Forum: C++ 14 Days Ago
Replies: 7
Views: 371
Posted By iamthwee
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
Posted By iamthwee
Showing results 1 to 40 of 500

 
All times are GMT -4. The time now is 9:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC