above method is used to get truck from a list of trucks.
When the user entered in the form the truck Id is searched through this method..
FoodTruck course=new FoodTruck("","" ,"","","");
above is the datatype of the attributes first attribute is an int so when I write " " its getting an error because that should
be an integer. I want to know if its an...
User Profile
Collapse
-
what symbol to use for integer in Java
...Code:public static FoodTruck getTruckByTruckId(int truckId){ FoodTruck course=new FoodTruck("","","","",""); fillCourseListFromFile(); for(int i=0;i<foodTruckList.size();i++){ if(foodTruckList.get(i).getTruckId()==(truckId)){ course=foodTruckList.get(i); break; } } -
A quick response is needed as I have to submit this by tonight.Leave a comment:
-
Update an element of a vector
...Code:#include<string.h> #include<iomanip> #include<iostream> #include<vector> #include<list> using namespace std; // Movie Class class Movie{ private: int movieNum; char * Title; public: Movie(); Movie(char * inTitle); void setMovieNum(); void setTitle(char -
-
deprecated conversion from string constant to char
...Code:#include<iomanip> #include<iostream> #include<conio.h> #include<string.h> #include<vector> #include<list> #include"Movie.h" using namespace std; //Passanger class class Passenger{ private: int bookingRefNo; char name[50]; int numAdult; int numChildren; int numFlights; -
ArrayList is empty.. Need a help
Hi Guys who are online,
Please help me to solve this problem.
...Code:ublic static void ViewFoodTruckInfo() { // 1 user wants to view information about food trucks // 2 User login with username and password System.out.println("Enter username : "); String username = sc.next(); System.out.print("Enter password : "); -
-
Add and show only objects of a particular user in Java?
https://www.dropbox.com/s/wob0gfcaqbj6wys/usecase.jpg?dl= 0
https://www.dropbox.com/s/owm2ja9d02xa16r/class.jpg?dl=0
https://www.dropbox.com/s/1bi6hawvtvix1nn/usecase1.jpg?dl =0
https://www.dropbox.com/s/nxouisah8chp73f/usecase2.jpg?dl =0
Above is my usecase diagram, class diagram, two usecases for the program.
and below is the my program code
Main class
...Code:package
-
...Code:#include<iostream> using namespace std; struct Node { void* data; Node* prev; Node* next; }; struct LinkedList { int type; //1 = file 2 = user Node* start; Node* end; Node* current; }; LinkedList* CreateLinkedList(intLeave a comment:
-
Thanks for the reply :) Ok . will try like the way you explainedLeave a comment:
-
-
Hi weaknessforcats ,
Thank you for the reply. I am trying to get what is show in the attached linkedlist structure
https://www.dropbox.com/s/cr5jxz9pph...truct.jpg?dl=0...Leave a comment:
-
-
-
Struck inside a struct
Pls. give a hand. I have a simple mistake.
...Code:#include<iostream> using namespace std; struct User{ string read; string write; string execute; }; struct File { string filename; User accessrights; File*next; }; bool isEmpty(File *head); char menu(); void insertAsFirstElement(File *&head, File
No activity results to display
Show More
Leave a comment: