Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

depends on how that word is used. "I'm pissed off" is one thing, but "are you taking a piss" is quite another. Of course I realize filters probably can not distinguish the difference; its a judgemental call that only a human can make.

Well, I guess I was wrong -- the filters do indeed work correctly in my above examples :) :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

with all that new hardware did you check the power supply to see if it is big enough to handle the additional workload? If you still have the original power supply it is probably not near large enough.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

My computer also has two hard drivers. I have XP on the master drive and decided to install Fedora on the slave. I installed the duel boot option in Fedora but was unable to duel boot -- the computer always booted with XP. So I changed the CMOS option to boot on the slave drive instead of master, and that solved the problem. Now I get the grub duel boot menu. :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm not really very concerned about that bill -- it takes a long long time for most bills to be passed by both houses of Congress then signed by the President. Even if that happens I am certain that someone will sue halting implementation of the law until the US Superme Court makes a ruling, and that could be years away.

this also sounds like a last-ditch effort by Republicans to get anything done in their lame-duck (or do-nothing) congress. Congress will adjurn in a few days for the holidays, and when it re-convenes in January it will be a new congress with the Democrats in contol. Then you will see that bill by John McCain die a quick death. It will be put on the bottom of the pile of bills never to see the light of day again.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If you want to write a function that returns more than one value you have to pass parameters by reference or pointer to the function so that it can populate it with the needed information. Example in c++.

void BreakUp(int intNumb, int& first, int& second,int &third) {
 
 first = intNumb / 100;
 second = (intNumb - (intFirst * 100)) / 10;
 third = intNumb - ((intFirst * 100) + (intSecond * 10)); 
}

int main()
{
<snip>
      BreakUp(a, intFirst, intSecond, intThird);
<snip>
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you might do something in networking -- how to set up and administer a network for your school's computers.

Or how to set up a web site which would include database. That should take the next couple years to complete.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Search MSDN and google for "Office Automation". You will probably have to write a VB Script to do that -- note that is not the same thing as a VB program. You could use c++ also, but it will be about 100 times more difficult and complicated.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There might be easier way, but I would use ODBC. Set up an ODBC source on each of the computers (Start -->control pannel --> Administrative Tools --> Data Sources). In there you can set the IP address of the computer that hosts the database. If your VB program does not currently use ODBC you will have to change that too.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

the only way I've done it is to write a TSR interrupt-driven device driver under MS-DOS 6.2. See this for basics. It is definitely not a triviel program to write.

MS-Windows already contains the device drivers and is probably what the terminal program uses. I don't know how to call them from assembly, other than calling the win32 api function OpenFile(), ReadFile()n and WriteFile().

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you have to declar the array as a pointer.

// Get user unput (int, # of strings);

string* stringArray = new string[numOfStrings];

//tell user to start imputing the string
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

research project: name the most popular sort algorithms and briefly describe how they work. Which algorithms are the fastest. there is tons of information on this topic because Ph.D.'s have done a great deal of search about it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Student GetStudent(Student &s3)
That line is wrong. see my previous post for the correct line.

>> cin.getline Student[index]s3.Name);
this line is also incorrect. use the count loop counter instead of unknown variable index

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

From my observations it doesn't look like spam and porn stay up on DaniWeb very long -- there are now a lot of moderators from all over the world (timezones) who can delete those posts within the hour or less.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

piss isnt that bad a word really

as it says in daniwebs rules, most of our posters are teens or adults and so it should be fairly acceptable

depends on how that word is used. "I'm pissed off" is one thing, but "are you taking a piss" is quite another. Of course I realize filters probably can not distinguish the difference; its a judgemental call that only a human can make. If I saw it in one of the forums I monitor I would probably overlook the former but edit out the latter.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

there is no such thing as count(2) count is an integer that acts as a loop counter. What was probably meant was for the loop to count from 0 up to (but not including) 2.

int count;
for( count = 0; count < 2; ++count)
{
   // put your code here   

}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

lmao.

Might I just bring this down to earth a bit and ask if you don't think that many bafrickingzillion possible distinct hashes will be ENOUGH??

and I'd like to see him store that number in an integer:mrgreen:

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>I think its very interesting to read people's mind without even talking to them .
Oh now you have telepathic abilities? I know my wife of 42 years can read my mind, but I didn't realize people could do that with complete strangers :mrgreen:

I don't really intend to be rude but I just thought that statement humerous.:)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Narue posted a good explaination of functions just yesterday. You may want to review it and see how you can apply it to yuor program. Student GetStudents(Student &s3) . The parameter is not an array of Student structs, but only one single instance.

int main()
{
    const int MAXSTUDENTS = 10;
    struct StudentArray[MAXSTUDENTS];
    GetStudents(StudentArray,MAXSTUDENTS);
..
<snip>
}

GetStudents(Student studentArray[] , int numberStudents)
{



}

Above is an example of how to create and pass an array of student structs, and how the GetStudents() function receives the array.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>ANSII dos game in Python
do you mean MS-DOS ? MS-DOS does not run phthon.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

what is GetStudents() supposed to do ?

>>will receive the array
an array of what? It certainly is not an array of struct Student because the function does not take an array but a single object.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>may you explain it plaese ?
If you look at a standard ascii chart you will see that the letter '0' has a decimal value of 48. So, to convert a binary value all you have to do is add 48 to it. For example, assume there was just one capital letter in the string, that makes dl = 1. add 48 to that gives you dl value of 49. Then look at the ascii chart and see that the decimal value of 49 is the letter '1'. Note that the letter '1' and the decimal value 1 are not the same thing.

>>f the user is allowed to enter a sentence with maximum 19 capital letters , How the display3 will be ?
don't you mean 9 capital characters? Display2 shows MSG3. There is no Display3 (or at least you did not write one).

display3

first we have to display number 1

like :
<snip>

I don't see any requirement for you to display two digits. There is not limit to the string length you can enter, only a limit of 9 capital letters. You can enter 255 characters if you want to.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

instead of having a all those columns it should have one row for each date. Only one column contains a date -- and use it as part of the key field. That way your table can have as many dates as you want.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Well I think you are making things worse, not better. Here is one way to do what you want. I have not assembled or tested this.

;----
; ---- start of loop reading the keyboard
; ---- one character at a time
;----
mov bX,0 -- initialize capital character counter
loop_top:
MOV AH,1  ;READ A CHARACTDR
INT 21h
cmp al,0dh ; end of line?
je Display1 ; yes, then stop
; test for capital letters
cmp al,'A'
JL loop_end ; if char < 'A' then go
CMP al,'Z'
JG loop_end ; if char > 'Z' then go

INC bx  ; increment capital letter counter
cmp bx,9
JG Display2 ; too many capital letters

loop_end:
jmp loop_top


 
Display1:
LEA DX,MSG2  ;GET MSG1
MOV AH,9  ;DISPLAY STRING
INT 21H  ;DISPLAY MSG1

mov dl,bl ; print the number of characters
add dl,'0' ; make it readable
MOV AH,2  ;display the character that is in dl
INT 21H
jmp exit_program ; all done
 
Display2:
LEA DX,MSG3  ;GET MSG1
MOV AH,9  ;DISPLAY STRING
INT 21H  ;DISPLAY MSG1

exit_program:
MOV AH,4CH ; return control to DOS
INT 21H
 
MAIN ENDP
 END MAIN
END
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You have a drug table that describes the drugs, and patient table that describes the patients, but you do not have a table that contains drugs that has been prescribed to each patient. you will probably need a prescripton table

patient_id
drug_id
quantity
etc

There would be multiple rows in this table for any given patient. Here is where you would use composite key -- patient_id and drug_id would be the unique key.
Then its a simple lookup to see if a patient has already been prescribed a given drug.

>>does anyone have any information on how i can keep an updated inventory in access every time a patient is put on a drug
Shouldn't the drug table be updated when a prescription is filled ? Doctor writes a prescription with three refills. The drug table should be updated each time a refill is made, not when the prescription is first made.

I don't know what programming language you are using, but it will first have to query to find out the current quantity, reduce it by some amout, then update the table with the new value.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know of anything that will do it for you. you will probably have to write an Office Automation script -- preferably in VB because it is a lot easier than in C++. And if you have a word 2000 or newer you will need VB 2005 .NET.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
JMP Count
CMP al,'Z'
JMP Count
LOOP TOP

The jumps are incorrect -- please see my previous post. jmp instruction is an unconditional jump meaning that the program will go regardless of any previous comparisons. you need to use the JL and JG jumps are in my example.

Also you failed to remove the LOOP. See my previous post for explaination why you can not use that in your program.

Out of curiosity, what other programming languages do you know? loops in assembly are very much the same in all other languages.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
cmp al,'A'
CMP al,'Z'
JMP Count

you have to put a jump after every comparison -- see my previous code for example.

>>LOOP TOP
you can not use that construct in this program because you have to set cx to the number of times you want it to loop. use a jmp instead of loop.

>>MOV AH,1 ;READ sentenc
move that line down a bit so that it is inside the loop and befor the call to int 21. I think you have to reset ah every time.

>>mov bX,0
move that down a bit just before the beginning of the loop so that int 21 functions does not destroy its value. It may not, but you don't know for sure.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Diablo II LOD -- there is a trainer on the net that allows you to hack character attributes and clothing. I sometimes (ok, maybe often) do that so that I can just walk all over the monsters (hack and slash, then grab the treasure.)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

wasn't the answers you received in the thread you created on 4 December sufficient? If not, you should just continue with that thread instead of creating a new thread with the same problem.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

functions are pretty simple. You have already written one function -- main().

int foo(char text[])
{
  // put your code here
}

int main()
{
 char text[255] ;

<snip>
  foo( text );

<snip>

[edit] Sorry, Eko -- I didn't see your post. [/edit]

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

That loop needs to check for al = 13H ( <Enter> key) to stop the loop. As coded now the loop will never stop.

>> Mov bl,al
Why do that? just use al for tests

cmp bl,'A'
 
JGE Count
 
CMP bl,'Z'
JLE Count

I think you have the comparisons backwards. If the character < 'A' or > 'Z' then it is not a capital letter.

cmp al,'A'
 
JL Count
 
CMP al,'Z'
JG Count

>>My problem is on counting the number of capital letters .
You have to select a register to do the counting. cx is normally used for that purpose, but bx and dx will do as well. Just initialize it to zero before the loop and increment it after the checks

xor cx,cx ; clear the register
TOP:
 
INT 21h
 
cmp al,'A'
JL Count
CMP al,'Z'
JG Count
inc cx ; count number of capital letters

Count:
LOOP TOP
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

the emulator comes with Visual Studio 2005 .NET

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you have to know the format of the files before you can parse them. There normally is nothing in the file that says "I'm a header record". You have to know that bytes 0 to ??? is the header record, if one even exists in the file. Evey binary file is different, there is no standard way to write or read them other than how to use stream.write() and stream.read() functions. And those functions are completly ignorent of what it is reading or writing. That's all up to the programmer.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
float calcMode(ifstream& inFile, int freq[], int size);

...
...
float calcMode(ofstream& report, int frequency[], int size)
{

Those are not the same functions. The parameter types must be identical in the prototype and the actual function.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>> 1) Whats the easiest (Free) programing language to create this?
depends on which one(s) you already know. My guess in VB .NET, but I don't know languages other than c and c++. I doubt any of them will be "easy" to implement your question.


>>Is there a tutorial or something where I could copy the code and just fill in the strings?
probably not. but you can google to see if you can find anything.

>>Is copy and paste automatically built in to Windows or does it require additional programing?
you have to code it. Windows contains something called a clipboard that you can copy text into and then allow other programs (or your own) to copy text from. But that also requires calling a few win32 api functions.

>>Will the fact I need to use Hiragana (Japanese writing) require additional programming?
yes. your program will probably have to be compiled with UNICODE option.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

repost your code and also attach the data file.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>i just started a class called Compiler Principles
didn't your school require a book for that class? Or is this for some additional research your instructor requires? I have not looked but I would think there are some compiler design books at www.amazon.com.

>>i accidentally downloaded months ago
how can you accidentally download a book :rolleyes:

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

that is a pretty tall order for someone who knows absolutely nothing about c language. Instead of jumping into deep water where you can not possibly swim, start at the beginning. Read a stuff the information here and you will be on your way. ~S.O.S.~ and others have posted some really good information there about how to get started.

>>Also can you download C for free?
no, but you can download c compilers for free. Dev-C++ is good for beginners. There are others but somewhat more complicated to use.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

program has 2 problems. After fixing them your program runs ok without error.

1. // memcpy( array + start, tmp, n*sizeof(int) );
should be sizeof(float), not int

2. you didn't post main(), so I created my own. it has to pass one less than the number of elements in the array to function mergeSort().

int main()
{

	float array[] = {5,2,1,14,25,36,99,30,20,10,4,3};
	int SIZE = sizeof(array)/sizeof(array[0]);
	mergeSort(array, 0,SIZE-1);
	printArray( array, SIZE);

	return 0;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

IT has become extremly competative field, so the more education you have the better. Suggest you get a bachelors degree in computer science or some related field. If you don't have that there will be many doors slammed in your face.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

all you have to do is iterate through the linked list, counting the nodes as you go, until you reach the node you want. Since you wrote all the code you posted that should not be difficult for you to write a method to do that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

never heard of the language. But did you try google ?

Results 1 - 10 of about 1,710,000 for Ruby programming language. (0.18 seconds)

Now I'm not saying you have to read each and every one of those hite, but the first few will probably be helpful. Nearly 2 million links is an awful lot of reading. :mrgreen:

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Dev-C++ is a good c and c++ compiler, and its free

>>I got into it by reading a thread called 'Virus Programming'
please, please do not tell us you want to do that. If you do we will have to ban you for life.:mad:

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>havent you heard of level of piracy in india
no, I don't know a thing about it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Well, what about Visual C++ .NET 2003, my friend has got that. MSVC2005 is quite huge to download. It would take great time plus great money.
.

I think you can get it on CD from eBay

If you want to write any MS-Windows programs, then you also need the most recent version of Windows Platform SDK, also free for downloading. I think you can also get it on CD for nominal cost.

Isn't there a distributor in India where you can get those things locally? If not, maybe you and ~S.O.S~ aught to start one and make a billion piles of money :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>is it possible to be done?
I really don't know a thing about 68HC11. You will more than likely need to follow the links here

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you see, we are not in the USA, I am trying to get into programming, not a programmer, there are things done differently in math sometimes.

It doesn't matter where you live -- you will need equivalent math background wherever you live. programming is programming and does not discriminate based on the earth you live on. So if you don't have it, then you need to get it before you can be a successful programmer.

Narue commented: Unnecessary rudeness. -Narue -2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Hey,

I have 3 listboxes linked together that display 3 different fields of a table from an acess database. THe listindexs are set to equal each other so when you click on one it highlights on them all. However when the listbox gets lots of records in it, vertical scroll bars appear on all three. Is there away to remove these and have one big vertical scroll bar on the side.

Thanks

why don't you use a grid control instead of three list boxes?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ifstream inFile;
ofstream report;
report.open("scores.txt");
if (!report)
{
	cerr <<"\aerror opening  output file\n";
	exit(102);
}
size= getNumbers(report,numbers,MAX_SIZE,NUM_RANGE);

<snip>

int getNumbers( ofstream&  report,int numbers[ ], int size ,int NUM_RANGE)
{
      ifstream inFile;
	inFile.open( "scores.txt" );

why do you open scores.txt for output in main then expect to read anything from that file in getNumbers()? When you open the file for output in main() all data in the file is lost. So getNumbers() will not really do anything.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>I wonder if is it possible to link the GPRS modem and a I/O board together?
I have no clue what you mean by that. you need to be more specific about what you want to do.

>>I already have a VB6 coding
Then why don't you just use it?