| 01/30/2012 - 02:17 AM |
| Post: C++ Source Code • Re: C++ compilers |
| ok i have downloaded it and trying to install. but i don't have a student email, cos my school is not listed. I will see what i can with this, and will contact you asap once i have issues thanks anyway. Statistics: Posted by codelover — Mon Jan 30, 2012 1:17 am |
| 01/29/2012 - 09:50 PM |
| Post: Training for Programmers • Cegonsoft Profile | JAVA Final Year Projects and Training |
| Java is an entire programming language resembling C or C++. With Java, you can create complete applications. Or you can attach a small group of instructions, a Java "applet" that improves your basic HTML. A Java Applet can also cause text to change color when you roll over it. A game, a calendar, a scrolling text banner can all be created with Java Applets. There are sometimes compatibility problems between Java and various browsers, operating systems or computers, and if not written correctly, it can be slow to load. Java is a powerful programming language with excellent security. Final Year project is one of the most important aspects of your education. This is the point where you can apply knowledge or what you have learned in past two or three years. This is the point that can create a common candidate into an entrepreneur. This is the point that creates the sense of your education and your life as an engineer. This is the way to get exposure and experience in the real world problems , if done properly.Inevitably be used as a gateway to industry. Final year project usually extends 6 months to a year. We recommend that you take it seriously and do something hard, so do not limit yourself to a simple site or a simple management system .Do something that you're passionate about and that makes you excited, do not be afraid, and accept challenges. Exploit the technology and go beyond what was not possible before the time. Make an impact,try to solve real problems can be large or small, but at the end of the project, it must contribute in some way to society. Also, do not delay it until the end of the semester / year to work on in which case it will be almost a piece of trash not to create meaning. Which Technology/Platform you should use Now, this is a very popular question. Computer Science / Engineering students have to ask what the technology / platform we use, such as Sun Java, Microsoft. NET or C + +, etc. And it is a rather interesting question. The answer to this question is that it depends on what you want to do in the future. On many occasions, We asked the students to taste a variety of platforms before graduation and to do a final year project on the platform that you like best. For example, in the first year, learn procedural language like C, go to learn OOP in C + + in the secong or third year and do a project such as networking and databases in .NET and Java etc. So it "depends on what you do in the future" is basically the number of factors you want: • Continue your career, in particular, the platform (probably why you like or is it more job opportunities) • Participate in all competitions of the software, which may have certain requirements. For example,. If you want to participate in the Imagine Cup, you go for the .NET Platform Whatever the reason is to choose a platform, it is always best to have your interest. contact: http://www.profile.cegonsoft.com Statistics: Posted by angelin — Sun Jan 29, 2012 8:50 pm |
| 01/27/2012 - 05:16 PM |
| Post: C++ Source Code • Re: C++ compilers |
| Hey Codelover, I gave you the wrong download links earlier, please check the edit note on my last post. It is good for 3 months(90 days). After that you will have to buy a product key. (Expensive to buy outright!) If you still need it after 90 days, try uninstalling it and reinstalling it to reset the 90 days. Or, uninstall and download Visual Studio 2008, and install that which is also good for 90 days. If that doesn't work, you should know someone who is a student and have them use their community college or university email to sign up and download the full version for free at dreamspark.com - Visual Studio 2010 free When you register to get the free download, you have to have an email that has a .edu at the end. If so you can download the full version for free because Microsoft gives it to free for all students!! Statistics: Posted by coder — Fri Jan 27, 2012 4:16 pm |
| 01/27/2012 - 02:32 PM |
| Post: C++ Source Code • Re: C++ compilers |
| Wow thanks i will do that and get back to you. THANKS This trial version can it do all i require? and i hope it wont expire? Statistics: Posted by codelover — Fri Jan 27, 2012 1:32 pm |
| 01/27/2012 - 10:19 AM |
| Post: C++ Source Code • Re: C++ compilers |
| Hello codelover, I have used mostly all, Microsoft's Visual Studio is the easiest and seems to work the best! You just have to install it, it takes about 40 minutes depending on your computer speed, first you will have to download it which will also take some time. There is a free version, and if you are a student and have a simple student email address you can download the pro version for free at Dreamspark.com If you don't have a student email, you can also download the express version for free: Download page here click on install now, then on: Visual Studio 2010 Professional Here is the shortcut to the exact download for express version: Actual download link here Let me know if you need anymore help! Quote: Statistics: Posted by coder — Fri Jan 27, 2012 9:19 am |
| 01/27/2012 - 08:14 AM |
| Post: C++ Source Code • C++ compilers |
| Please can anybody help me with a good compiler to use, am trying codeblocks and i really cant get around it. Am a learner and need a compiler that will make learning this language easy. Pls i need help fast. Statistics: Posted by codelover — Fri Jan 27, 2012 7:14 am |
| 01/17/2012 - 07:29 AM |
| Post: JAVA Source Code • Re: How to Write a java program to implement priority queue |
| Sample code... Full priority-queue ADT: Code: class PQfull // ADT interface { // implementations and private members hidden boolean empty() Object insert(ITEM) ITEM getmax() void change(Object, ITEM) void remove(Object) void join(PQfull) }; Unordered doubly linked list priority queue: Code: class PQfull { private static class Node { ITEM key; Node prev, next; Node(ITEM v) { key = v; prev = null; next = null; } } private Node head, tail; PQfull() { head = new Node(null); tail = new Node(null); head.prev = tail; head.next = tail; tail.prev = head; tail.next = head; } boolean empty() { return head.next.next == head; } Object insert(ITEM v) { Node t = new Node(v); t.next = head.next; t.next.prev = t; t.prev = head; head.next = t; return t; } ITEM getmax() // See Program 9.10 void change(Object x, ITEM v) // See Program 9.10 void remove(Object x) // See Program 9.10 void join(PQfull p) // See Program 9.10 } Doubly linked list priority queue (continued): Code: ITEM getmax() { ITEM max; Node x = head.next; for (Node t = x; t.next != head; t = t.next) if (Sort.less(x.key, t.key)) x = t; max = x.key; remove(x); return max; } void change(Object x, ITEM v) { ((Node) x).key = v; } void remove(Object x) { Node t = (Node) x; t.next.prev = t.prev; t.prev.next = t.next; } void join(PQfull p) { tail.prev.next = p.head.next; p.head.next.prev = tail.prev; head.prev = p.tail; p.tail.next = head; tail = p.tail; } Also, this might help you: JAVA/Oracle: Priority Queue Statistics: Posted by cout << — Tue Jan 17, 2012 6:29 am |
| 01/16/2012 - 10:06 PM |
| Post: JAVA Source Code • How to Write a java program to implement priority queue ADT. |
| How to Write a java program to implement priority queue ADT. Anyone can provide me the sample code. Statistics: Posted by rclgoriparthi — Mon Jan 16, 2012 9:06 pm |
| 12/29/2011 - 07:49 AM |
| Post: C++ Source Code • Re: To call file |
| Lots of problems with your code. First, is "baby wear" suppose to be a string or char? Second, you have semicolons and the end of each function header which will stop your functions from working. Third, where is your ending bracket for main? If your using visual studio and current C++, use "using namespace std;" instead of: Code: using std::cout; using std::cin; using std::endl; Fixing the above corrections will eliminate almost half of your syntax errors. Let me know how it goes.... Statistics: Posted by coder — Thu Dec 29, 2011 6:49 am |
| 12/28/2011 - 09:09 PM |
| Post: C++ Source Code • To call file |
| at first, plec correct me this one... Code: std::string explanation; // this upper coding char explanation; //after entering void to display if(item_code=='A') explanation='BABY WEAR'; else if(item_code=='B') explanation='CHILDREN WEAR; else if(item_code=='A') explanation='LADIES WEAR'; else if(item_code=='A') explanation='MENSWEAR'; BABY WEAR and others was error, what should i put? plz correct my coding above one first, it it was take long time to solve coding down there. sorrt, bcoz i really dont know.. plz correct me, im running my coding right now with non-stop study, and always refresh this page... this is of mine that full, the new one... Code: #include<iostream> #include<fstream> #include<cstdlib> #include<iomanip> #include<string> using std::cout; using std::cin; using std::endl; struct RECORD { std::string item_code; std::string item_number; std::string explanation; double price; }input[10000]; void addRecord(RECORD input[], int &arraycounter); void printRecord(RECORD input[]); void printAllRecord(RECORD input[]); int main() { std::fstream submit; submit.open("jualan.dat",std::ios::in); submit.seekg(0, std::ios::beg); int arraycounter=0; do { submit>>input[arraycounter].item_number>>input[arraycounter].item_code>>input[arraycounter].price; arraycounter++; } while(submit.good()); submit.close(); arraycounter--; { int menuEnter; do { cout<<"\tFamily Outfit Shop"<<endl; cout<<"\t MAIN MENU"<<endl; cout<<"\t-------------------"<<endl; cout<<" 1 = Add a record\n"; cout<<" 2 = Displays sales report for a category\n"; cout<<" 3 = Displays sales report for all categories\n"; cout<<" 4 = Exit"; cout<<"\nEnter Menu Number : "; cin>>menuEnter; if(menuEnter==1) addRecord(input, arraycounter); else if (menuEnter==2) printRecord(input); else if (menuEnter==3) printAllRecord(input); } while (menuEnter!=4); return 0; } void addRecord(RECORD input[], int arraycounter); { char item_code; // code category char item_number; // code number category cout<<"Enter code category : \n"; cin>>input[arraycounter].item_code; cout<<"Enter code number of category : \n"; cin>>input[arraycounter].item_number; arraycounter++; } void printRecord(RECORD input[]); { char item_code, item_number; char explanation; float price, total_sales; cout<<"Please enter category code : "<<endl; cin>>item_code; if(item_code=='A') explanation==BABY WEAR; else if(item_code=='B') explanation='CHILDREN WEAR'; else if(item_code=='A') explanation='LADIES WEAR'; else if(item_code=='A') explanation='MENSWEAR'; cout<<"SALES REPORT FOR "<<explanation<<endl; cout<<"\nItem Number\t\tPrice" << endl; cout<<"------------------------------"<<endl; cout<<item_code<<item_number<<"\t\t"<<price<<endl; cout<<"------------------------------"<<endl; cout<<"Total Sales\t\t"<<total_sales<<endl; cout<<endl; switch(item_code) { case'A': if(item_number==101) { price=10.00; } if(item_number==102) { price=5.00; } break; case'B': if(item_number==101) { price=12.00; } if(item_number==104) { price=20.00; } if(item_number==105) { price=20.00; } break; case'C': if(item_number==103) { price=12.00; } break; case'D': if(item_number==101) { price=12.00; } break; } } void printAllRecord(RECORD input[]); { cout<<"SALES REPORT FOR ALL CATEGORIES"<<endl; cout<<"\nCategory\t\tSales" << endl; cout<<"------------------------------"<<endl; cout<<explanation<<"\t\t"<<price<<endl; cout<<"------------------------------"<<endl; cout<<"Total Sales\t\t"<<totalSales<<endl; cout<<endl; } this is the question. no.1, no problem, but no 2, and 3, but also 4. how to exit? but no1, does can repeat or back to menu? bcoz to add many record? Quote: Family Outfit Shop decided to create a computerized system to maintain the shop inventory. The shop sells variety of garments and the garments are categorized to a particular group. Each category is given a code and the explanation for each code is given bellow. CODE |EXPLANATION A|baby wear B|children wear C|ladies wear D |menswear You as a programmer are required to write a program which contains a menu as bellow: Family Outfit Shop MAIN MENU 1)Add a record 2)Display sales report for a category 3)Display sales report for all category 4)Exit Guideline The program should give the user an option to choose any sub menu and it would only stop when the user choose the Exit sub menu. 1)Add a record This sub menu will add a sales record for a particular garment into a file name jualan.dat. Each record consists of three fields which are item number, item code and price. The user may add more than one record at a time. You can use a sentinel value to control the loop. Assumed that file jualan.dat already exists. Example of file jualan.dat is shown as bellow: A101= A =10.00 B101= B = 12.00 A102 =A= 5.00 B105= B = 17.00 C103 =C= 40.00 D101 =D = 15.00 B104 =B =20.00 2)Display sales report for a category In this sub menu the sales report of a particular category will be displayed. The category shall be chosen by the user. SALES REPORT FOR BABY WEAR Item Number | Price A101 | 10.00 A102 | 5.00 Total Sales | 15.00 3)Display sales report for all category In this sub menu the sales report for all the categories will be displayed. SALES REPORT FOR ALL CATEGORIES Category Sales Baby wear 15.00 Children wear 49.00 Ladies wear 40.00 Menswear 15.00 Total Sales 119.00 4)Exit End of program. Statistics: Posted by khelly — Wed Dec 28, 2011 8:09 pm |
| 12/17/2011 - 01:23 AM |
| Post: Information and Suggestions • Technology Blog |
| The Technology Blog on codeobsessed is here: http://techblog.codeobsessed.com/ Statistics: Posted by cout << — Sat Dec 17, 2011 12:23 am |
| 12/04/2011 - 07:44 AM |
| Post: JavaScript • Re: JavaScript Validation |
| Can you please put your code using the code brackets? EX: [code] .... there is a button that you can click on above the typing area that places the brackets for you. Thank you! Statistics: Posted by coder — Sun Dec 04, 2011 6:44 am |
| 12/04/2011 - 07:43 AM |
| Post: Binary / Decimal / Hexadecimal / Octal • Re: Links: Binary Numbers in C++ |
| Can you please put your code using the code brackets? EX: [code] .... there is a button that you can click on above the typing area that places the brackets for you. Thank you! Statistics: Posted by coder — Sun Dec 04, 2011 6:43 am |
| 12/04/2011 - 07:43 AM |
| Post: C++ Source Code • Re: Try, Throw, Catch |
| Can you please put your code using the code brackets? EX: [code] .... there is a button that you can click on above the typing area that places the brackets for you. Thank you! You want your program to stop after a user enters a letter instead of a number? Why do you need to use a try, throw, catch? Why not use a simple "if" statement that returns a message to the user or exits the program like you mentioned? Statistics: Posted by coder — Sun Dec 04, 2011 6:43 am |
| 12/01/2011 - 09:33 PM |
| Post: Binary / Decimal / Hexadecimal / Octal • Re: Links: Binary Numbers in C++ |
| There isn't a binary io manipulator in C++. You need to perform the coversion by hand, probably by using bitshift operators. The actual conversion isn't a difficult task so should be within the capabilities of a beginner at C++ (whereas the fact that it's not included in the standard library may not be Edit: A lot of others have put up examples, so I'm going to give my preferred method void OutputBinary(std::ostream& out, char character) { for (int i = sizeof(character) - 1; i >= 0; --i) { out << (character >> i) & 1; } } This could also be potentially templated to any numeric type. Statistics: Posted by jewq98 — Thu Dec 01, 2011 8:33 pm |
| 12/01/2011 - 09:31 PM |
| Post: Training for Programmers • Re: Cegonsoft Corporate Training |
| Cegonsoft knows the value of Corporate Quality and TIME ever since they started working on projects. There may be various reasons for the Corporate to train their associates in latest Technologies or equip them with other Technologies. Cegonsoft has wider experience in that area and we train the associates as per the syllabus suggested by the Corporate. Usually the training is conducted just like a program where we Endeavour to cope up with the exact requirement of the client within the requested timeframe. • Cegonsoft is here to give you the best software training which will be the Best in the Industry. Cegonsoft has records of conducting Corporate-Trainings in Bangalore, Chennai, Coimbatore and various other places. Our Corporate-Training Programmers are not restricted to the cities mentioned; we carry out Corporate-Trainings as per the request received. • CEGONSOFT is one of the country’s fastest growing Information Technology Solution Company. CEGONSOFT has established itself with these 3 independently successful divisions: > Software Training > Software Development (Software Engineering & Development Centre – SEDC) > HR Consultancy. The synergies of all three divisions when combined benefit the clients; this adds value to in-house expertise. • Learn Multiple Technologies in a short while……..! Here we provide you with the International Certifications, the Advanced Software Technologies. • Web 2.0 • Rich Internet Application(RIA) • PHP & MySQL • LAMP & PHYTHON • Software Testing (ST) • JAVA, J2EE • Dot Net • Note: Combo Offers Available Now! DOTNET 2005 Full course PHP, MySQL with Advanced DOTNET 2008 Full course PHP, MySQL with Advanced Java/J2EE Full Course PHP, MySQL with Advanced S/W Testing Full Course PHP, MySQL with Advanced • WITH 1. Faculties with over a decade of experience 2. The updated curriculum • We also do Real Time Projects on Technologies Like 1. .Net 2. JAVA and J2EE 3. PHP/MySql 4. SOFTWARE TESTING Hurry up Utilize the opportunity!!!!!!!! • Our team of experienced, educated professional consultants provide best-of-class software and computer training services and customized, full-service soft-ware education and program management products and services – for companies in Atlanta or across the USA. For Registration and Inquiries Contact At. CEGONSOFT,COIMBATORE. Statistics: Posted by jewq98 — Thu Dec 01, 2011 8:31 pm |
| 12/01/2011 - 09:30 PM |
| Post: .htaccess and .htpasswd • Re: Authentication, Authorization, and Access Control |
| Authorization refers to rules that determine who is allowed to do what. E.g. Adam may be authorized to create and delete databases, while Usama is only authorised to read. Authentication is the process of ascertaining that somebody really is who he claims to be. The two concepts are completely orthogonal and independent, but both are central to security design, and the failure to get either one correct opens up the avenue to compromise. In terms of web apps, very crudely speaking, authentication is when you check login credentials to see if you recognize a user as logged in, and authorization is when you look up in your access control whether you allow the user to edit, delete or create content. Statistics: Posted by jewq98 — Thu Dec 01, 2011 8:30 pm |
| 12/01/2011 - 09:28 PM |
| Post: SQL • Re: mySQL - shell commands |
| I recommend this: mysql -h "hostaddress" -u "username" -p "database-name" < "sqlfile.sql" Notice the password is not there. It would then prompt your for the password. I would THEN type it in. So that your password doesn't get logged into the servers command line history. This is a basic security measure. If security is not a concern, I would just temporarily remove the password from the database user. Then after the import - re-add it. This way any other accounts you may have that share the same password would not be compromised. It also appears that in your shell script you are not waiting/checking to see if the file you are trying to import actually exists. The perl script may not be finished yet. Statistics: Posted by lqmk81 — Thu Dec 01, 2011 8:28 pm |
| 12/01/2011 - 09:26 PM |
| Post: HTML • Re: w3c validator error |
| After adding the Schema.org to my pages, I got many errors from W3C validator complaining the "itemprop": There is no attribute "itemprop" from code like this: <p itemprop="description">...</p> This is my doctype and html tag <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> How to fix the validator errors? p.s. previously I have the validator error for "itemscope" as well. But after I changed it to itemscope="itemscope" then the error is fixed. Statistics: Posted by lqmk81 — Thu Dec 01, 2011 8:26 pm |
| 12/01/2011 - 09:25 PM |
| Post: C++ Source Code • Re: Try, Throw, Catch |
| I spent too many hours on the cplusplus.com forums trying to get a simple answer, but to no avail. I want the code below to stop when someone enters a letter instead of a number to be assigned to an int. I have already typed out the code, please alter this code so I can understand the concept of try/catch/throw. I stress that I need my code altered. on the cplusplus forums I was links to about 5(ish) other pages, and some guy that couldn't understand that I was new kept posting indecipherable code. AGAIN, please change this code. #include "stdafx.h" #include <Windows.h> #include <iostream> int main() { using namespace std; int a, b; int c; cout << "\n\n\t\t Enter Value For 'A'\n\t\t\t\t====> "; cin >> a; cout << "\n\n\t\t Enter Value For 'B'\n\t\t\t\t====> "; cin >> b; //Declare 'C' c=(a+b); cout << "\n\n\t\t C = " << c << "\n"; cin.get(); return 0; } Statistics: Posted by lqmk81 — Thu Dec 01, 2011 8:25 pm |
| 12/01/2011 - 09:16 PM |
| Post: Linux • Re: Ubuntu |
| Ubuntu is now a failed experiment. Like all people who know NOTHING about computers, the idiot who runs Canonical saw and opportunity to cash in by turning it into a Pad/Phone/Touchscreen operating system. So he ordered his people to make that happen no matter what the cost. Well the cost was that they utterly destroyed the only hope we had for Linux Desktop to ever be taken seriously. Now its a kids toy, and will never be adopted by anyone for anything. Statistics: Posted by Cosmas — Thu Dec 01, 2011 8:16 pm |
| 12/01/2011 - 09:14 PM |
| Post: HTML • Re: W3C Validator |
| I learn from our forum(seofurms.org) that many people don't pay attention to the errors that the W3C Validator shows. In my opionion,we should try our best to meet W3C standard. Not everyone uses IE. There are also many people who use Netscape,Mozilla,FireFox,Opera and so on. Statistics: Posted by Cosmas — Thu Dec 01, 2011 8:14 pm |
| 12/01/2011 - 09:09 PM |
| Post: JavaScript • Re: JavaScript Validation |
| i have a registration page where a user fills up a form such as username, first name, phone number etc. i need to do a validation for the following fields. any help will be greatly appreciated. 1. for a text field if for example a user hits the space bar and then types the information with the validation i have the code ignores those initial spaces but actually these are spaces i need to insert these values in a database so these spaces may cause an error. how to validate these initial spaces and tell the user not to use spaces at the beginning of a textfield my code at present is = var username = document.registrationform.username var re = /^\s{1,}$/g; if ((username.value==null) || (username.value=="") || (username.length=="") || (username.value.search(re))> -1) { alert("Please Enter a User Name") username.value="" username.focus() return false } 2. validation of special characters such as = !"£$%_^&*(). In general all the various special characters my code at present is = var postcode=document.registrationform.postcode var postcodestripped = postcode.value.replace(/[\(\)\.\-\ ]/g, ''); if (isNaN(parseInt(postcodestripped))) { alert( "The post code contains illegal characters" ); postcode.value="" postcode.focus(); return false } 3. validation of numbers = the code i have validates for numbers only if the first characters are letters but if there are letters in between the validation does not work. ex= ab12 validates however 12ab does not validate var pcontactnumbertf=document.registrationform.pcontac tnumbertf var pcontactnumbertfnumber = document.registrationform.pcontactnumbertf.value; var checkfornumber = parseFloat(pcontactnumbertfnumber); if ( isNaN( checkfornumber ) ) { alert( "Please enter a numeric number" ); document.registrationform.pcontactnumbertf.focus() ; document.registrationform.pcontactnumbertf.select( ); return false } 4. validating for characters only and nothing else. ex= name and not name123 5. validating for numerics only and nothing else. ex= 123 and not 123name for all the above 5 questions i would really appreciate if someone can provide the appropriate code that needs to be written in order to validate each individual point i have mentioned. thanks a lot. Statistics: Posted by Cosmas — Thu Dec 01, 2011 8:09 pm |
| 11/10/2011 - 11:26 PM |
| Post: JAVA Source Code • Re: Input/Output - 3 exam grades |
| cool... Statistics: Posted by tinkerbell — Thu Nov 10, 2011 10:26 pm |
| 11/10/2011 - 07:35 AM |
| Post: JAVA Source Code • Re: Input/Output - 3 exam grades |
| Please put your code inside the code brackets when posting here, like below. How about this to start. You take in three integers (tests), and output the average of the 3 numbers. Code: import javax.swing.JOptionPane; public class Main { public static void main(String[] args) { String strGrade1 = " "; String strGrade2 = " "; String strGrade3 = " "; int intGrade1 = 0; int intGrade2 = 0; int intGrade3 = 0; int finalGrade = 0; strGrade1 = JOptionPane.showInputDialog(null, "Enter grade1: "); strGrade2 = JOptionPane.showInputDialog(null, "Enter grade2: "); strGrade3 = JOptionPane.showInputDialog(null, "Enter grade3: "); intGrade1 = Integer.parseInt(strGrade1); intGrade2 = Integer.parseInt(strGrade2); intGrade3 = Integer.parseInt(strGrade3); JOptionPane.showMessageDialog(null, "Here is what you entered:\n\ngrade1: " + strGrade1 + "\ngrade2: " + strGrade2 + "\ngrade3: " + strGrade3); finalGrade = (intGrade1 + intGrade2 + intGrade3) / 3; JOptionPane.showMessageDialog(null, "Average is: " + finalGrade); } } This should get you started and completes the first sentence in the first paragraph: 1. Get 3 exam grades from the user and compute the average of the grades. Keep working at it..... Statistics: Posted by coder — Thu Nov 10, 2011 6:35 am |