Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Seamus McCarthy

Hey, i set up a circular queue to sort and pass ints easy, but having problems passing struct of information to the queue, wat declaration should i pass to insert function?? Here is my code so far, what would i change the int item to in insert function?? have just …

Member Avatar for Seamus McCarthy
0
156
Member Avatar for Seamus McCarthy

[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm …

Member Avatar for Seamus McCarthy
0
183
Member Avatar for Seamus McCarthy

I'm trying to install java on my home laptop and it isn't working, i followed all the steps outlined by my lecturer but the javac filename isn't executing properly. Is it setup right by me?? In environmental variables PATH = C:\jre1.6.0_07\bin;C:\Program Files\PC Connectivity Solution\;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Metrowerks\CodeWarrior\Bin;C:\Program Files\Metrowerks\CodeWarrior\Other Metrowerks Tools\Command Line Tools;C:\Program …

Member Avatar for Seamus McCarthy
0
159
Member Avatar for jonevans2

Ok so I'm having some problems with this program I have to write as you might be able to tell it takes strings from the user either in english or morse and translates them to morse or english respectively. I got it working from English -> Morse for strings with …

Member Avatar for MosaicFuneral
1
145
Member Avatar for Seamus McCarthy

Hey can anyone offer me any advice on updating my customer file, I created the blank records and can create a record in the newCustomer function but can’t seem to access that record again for updating, does anyone know where I’m gone wrong. Any help would be greatly appreciated. [CODE]fstream …

Member Avatar for ku.bis
0
161
Member Avatar for Seamus McCarthy

Hey i'm trying to use this trim function i wrote but its going wrong for me. I can trim from the front but not behind, e.g. if i enter **bob it works but if i enter **bob** it just prints nothing. please help [CODE]#include <iostream> using namespace std; void trimFunction( …

Member Avatar for iamthwee
0
574
Member Avatar for Seamus McCarthy

I'm trying to append the end of the file treatments.txt but am unsure how to use the while loop correctly!! Any suggestions?? I tried boolean with the whiles aswell but can't seem to get it to work either. Like asking do you want to continue adding treatments and if yes …

Member Avatar for Seamus McCarthy
0
127
Member Avatar for Seamus McCarthy

[code=cplusplus] #include <iostream> using namespace std; const int capacity = 20; string tax_payers[capacity] = {"jane", "tom", "jerry", "joe", "annie", "mary", "kate", "steve", "sarah", "paul", "petra", "peter","elaine", "noreen", "sean", "niamh", "donal", "john", "marie", "colin"}; double income[capacity] = {21000.0, 16500.0, 120000.0, 16000.0, 38000.0, 62500.0, 14500.0, 28500.0, 13500.0, 27500.0, 15000.0, 44000.0, 18000.0, 21000.0, …

Member Avatar for Seamus McCarthy
0
147
Member Avatar for Seamus McCarthy

[code] #include <iostream> #include <fstream> #include <string> using namespace std; void writeArray(); void readArray(); const int capacity = 4; //const int spec = 4; double numbers[]={12456.89,234.00,3456.78,21212.50}; //string A12345; //string A45678; //string B21223; //string B21435; string names[]={"A12345","A45678","B21223","B21435"}; int main() { writeArray(); readArray(); } void readArray() { ifstream infile; infile.open ("accounts.txt"); infile …

Member Avatar for compumasta
0
96
Member Avatar for Seamus McCarthy

[code] ORG $8000 NUMBERS DS.B 5 ;room for 5 input values BUCKETS DS.B 11 ;room for 11 buckets ORG $8100 BKTSORT LEA BUCKETS,A0 ;init array pointer MOVE.W #10,D0 ;init loop counter CLRBKT CLR.B (A0)+ ;clear bucket DBRA D0,CLRBKT ;do this 11 times LEA NUMBERS,A1 ;init pointer to input data LEA …

0
79
Member Avatar for Seamus McCarthy

[code = cplusplus] int serials[MAX_PAX]; for (int i = 0; i <MAX_PAX; i++) { int max = 0; serials[i] = randomnum(); // store random num in int serial max++; cout <<"serial" << serials[i]; break; } [/code] I have a return function that generates a random number, i want to store …

Member Avatar for Seamus McCarthy
0
97
Member Avatar for Seamus McCarthy

[code] const int capacity2 = 120; int rows[capacity2]; for (int i = 0; i < capacity2; i++) { if ( x == 11) { rows[i] = 1; break; } else if ( x == 13) { rows[i] = 2; break; } else if ( x == 15) { rows[i] = …

Member Avatar for Seamus McCarthy
0
94
Member Avatar for Seamus McCarthy

[code= c++] #include <iostream> using namespace std; int main() { char A,B,C,D; const char capacity = 120; char letter[capacity]; int pax = 0; int y =6; for (int i = 0; i < capacity; i++) { if ( y == 6) { char letter[] = {A}; pax++; break; } else …

Member Avatar for Seamus McCarthy
0
101
Member Avatar for Seamus McCarthy

Please help i'm trying to click on the screen just inside the box coordinates of (x,y) but it clicks everywhere on the screen!! [code=cplusplus] void cursorpoint() { #include "cursor.h" int x ; int y ; //x will have the x position and y will have the y position of mouse …

Member Avatar for Seamus McCarthy
0
136