Jump to content

Anindya1989

Verified Members
  • Posts

    146
  • Joined

  • Last visited

    Never

Everything posted by Anindya1989

  1. Well in a software's life cycle only a small part is development and the rest is testing, support and maintenance. So in any software company you have a much higher chance of getting a support or maintenance project than a development project. For example take the case of Windows. Windows 7 came out in 2009 but still you get bug fixes and security updates on win 7. It only took 3-4 years to develop win7 but win 7 will be supported and maintained by microsoft till 2020 so thats 11 years. So all i'm saying is that you'll be fixing bugs most of the time rather than writing code for a new software from scratch. Most people like development projects because its more interesting, easier and fun to do. People also like to do testing also from time to time when they are tired of coding. Testing doesn't involve any coding so its fun to do after a long development project. Support and maintenance on the other hand are relatively difficult and boring. The reason is that when you maintain a software i.e provide bug fixes and patches for it you need to understand the new software first i.e how it works, every line of it. Then you need to find out where the bug is and fix it. Sometimes you need to provide enhancements to softwares too in the maintenance phase. For example each service pack to windows adds improved features and new features over the older version. When you enter a software company you will be mapped to different projects and then in a project you will be mapped to different teams like development team, testing team, support team, maintenance team. If you get mapped to a specific team you will to stay there for at least a year or two. Like if you enter a testing team you will have to do testing for a year or two or if you enter a maintenance team you will have to fix bugs for a year or two . So being a software engineer doesn't mean you will be making hi-fi softwares all day. Actually you spend more time fixing a software than making the software itself. So keep in mind all these things and decide what you want to do.
  2. But enter the software industry only if you love programming a lot. Dont enter it if you want to make softwares only. You wont be making any software most of the time.
  3. Well you are terribly wrong in this aspect. In almost ALL jobs in India you definitely need a degree. Dont confuse jobs with sports or business. Sports is not a job and you cant get any degree for that. And in business you are your own boss but in everything else you do need a degree. And dont compare India with other countries. If you go to the USA or Canada they dont look at degrees much. They only look at your experience and talent and they can afford to do that because their population is small. But India has a huge population and companies just can't afford to interview everyone to search for talent. So they want a degree and they want marks so that they have to interview fewer number of candidates. And dont confuse between getting a job and job life. Degrees and marks matter only in getting your first few jobs, after that when you have 4-5years of experience on one will ever ask you how much marks you got, they'll just ask you about your experience and what work you have done in your last company. And job life is totally different. When you enter a job your degrees dont matter any more. All that matters is how well you do the job. Do you think your company will give you promotions if you dont work? Even if you are an IIT graduate you wont get any promotion if you dont work. Inside the company you are not judged by your degree. You are only judged by the quality of your work and how much work you do.
  4. If you want to enter the I.T industry the minimum requirement is to be an engineer in any stream. Even electrical engineering and mechanical will do. You must be really confused how an engineer with no training in computers can enter the IT industry. Well the reason is that the IT industry is vast and serves many types of customers. Even the software for Ferrari's F1 racing cars are made by Indian IT companies. So when you are making a software for a racing car you need both programming skills and mechanical engineering knowledge. Similarly when you make software for telecom clients like vodafone, airtel you need knowledge of an Electronics and Telecommunication engineer as well as programming skills. Learning programming is easy. Anyone with a logical mind and good in maths can be a good programmer. And engineers fit that criteria perfectly. So IT companies have no problem recruiting any kind of engineer. And moreover the programming languages you learn in school and college like C & C++ aren't used much the software industry. When you enter the IT industry you will have to learn hundreds of new tools and languages. So my advice will be that if you you want to enter any IT company then an engineering degree from any good college will be good enough. But if you want a chance to work at core software firms like microsoft or google then you need to do engineering in computer science only from good colleges like IIT, NIT etc. Now the reason why Microsoft, google and companies like them dont take any type of engineer is because first they have a single type of product which are targeted towards normal people like you and me. So they dont require specialized knowledge in any other field and secondly companies like google and microsoft are research oriented companies. So only computer science graduates can meet their needs. And my final advice will be not to go for courses like GNIIT and other courses offered by software training centres. Yes you might get a job after doing courses from there but you wont be paid as much as an engineer and also you probably wont ever be a programmer. IT companies recruit people from these coaching centres just for their Infrastructure support team.
  5. There is a software called Windows Password Unlocker Professional which you can download and burn on a DVD or USB and use it to RESET your win 7 password. Or you can use a software called Ophcrack. You'll have to download Ophcrack an burn it to a DVD and use it to CRACK your win 7 password. Please note that Windows Password Unlocker will only RESET your password but Ophcrack will try to CRACK your password. Needless to say that Ophcrack will require a lot more time and it can only crack passwords up to 14 characters.
  6. First you need to know if both the source server and destination server are both UNIX servers or not. Secure copy will work only on UNIX servers.
  7. Yes you can do that if you know how to use the "scp" command in unix.
  8. I dont see any error that's just a warning. Isn't the program running? And i can't use the conio.h file like that. The header files only contains the class/structure declarations and function prototypes. The actual function definitions are in the dll files. So i cant use the conio.h file you shared. As i told you earlier, conio.h is not a standard c++ header and functions like gotoxy, clrscr etc are not standard c++ functions. The clrscr() function was removed from the conio.h library and so was gotoxy. So you can't use them any more. system("cls") is a system call to cls of the windows console. So it works.
  9. It clears the screen. Ooops i think i missed a bracket. Let me fix that. #include<stdio.h> #include<conio.h> #include<string.h> #include<windows.h> char* getPassword(); int checkHuman(); void displayPassword(char*); char* getPassword() { char pass[21]= ""; char ch; printf("Enter password(20 characters max): "); ch=getch(); while((ch != '\r') && (ch != '\n')) { if((ch==127)||(ch<=31)) { if(strlen(pass)>0) { printf("\b \b"); pass[strlen(pass) -1] = '\0'; } } else { int len = strlen(pass); if(len<20) { pass[len] =ch; pass[len + 1] = '\0'; printf("*"); } } ch = getch(); } return pass; } int checkHuman() { int a,b; printf("\n\ntype 123 to proceed:"); /*User asked to type 123*/ scanf("%d",&; printf("\nwait few seconds while we proceed :"); for(a=0;a<=5;a++) { printf("."); Sleep(200); } if(b==123) /*If b is equal 123 than proceed or execute else part*/ { printf("\nCorrect Answer\n"); return 1; } else { printf("\nTry Again\n"); return 0; } } void displayPassword(char *pass) { char display[5]; printf("\n\nType \"show\" for displaying password you have just entered :"); /*User requested to Enter show to display password entered*/ scanf("%s",display); printf("\nwait few seconds while we proceed :"); for(int a=0;a<=5;a++) { printf("."); Sleep(200); } if((strcmp(display,"show")==0)) { printf("\nCorrect Answer\n"); printf("Your password:%s",pass); /*Dispay store info(password) in input[pass]*/ } else { printf("\nTry Again\n"); displayPassword(pass); } } int main() { system("cls"); char *password; password= new char[21]; while(1) { strcpy(password,getPassword()); if(checkHuman() == 1) { displayPassword(password); break; } else continue; } system("pause"); } Try this. And as usual i haven't compiled this. Actually as i told you before my compiler doesn't have conio.h so i can't compile these console based programs of yours. Oh that's nothing. I just initialized an empty string using that. But your program will work without it also. \r means carriage return and \n means new line. I wasn't sure if an ENTER is treated as new line or carriage return so i placed both in the condition part. When you press enter it means you have finished typing your password. I have just implemented that logic. \b stands for backspace. It means to continue with the loop.
  10. No its not possible to do that. You cannot store variables in memory addresses equal to their values. To search something in a large amount of data we can sort the data and use binary search instead of linear search which results in extremely fast searching time. But sorting the data isn't really possible all the time in real life. Suppose you have 100 million strings and you need to find one particular string among them. In that situation it is not practically possible to sort 100 million alpha-numeric strings. So in such situations we employ a method known as indexing. If your database is indexed properly it takes only a few seconds to find any data amongst even 100 million data members.
  11. @CrackUC I'm off to dinner now. I'll reply to your queries afterwards.
  12. You have to think about the time when your functions will be hundreds of lines long.
  13. @CrackUC I forgot that C does not support boolean datatype. Wait let me change the boolean values into int. #include<stdio.h> #include<conio.h> #include<string.h> #include<windows.h> char* getPassword(); int checkHuman(); void displayPassword(char*); char* getPassword() { char pass[21]= ""; char ch; printf("Enter password(20 characters max): "); ch=getch(); while((ch != '\r') && (ch != '\n')) { if((ch==127)||(ch<=31)) { if(strlen(pass)>0) { printf("\b \b"); pass[strlen(pass) -1] = '\0'; } } else { int len = strlen(pass); if(len<20) { pass[len] =ch; pass[len + 1] = '\0'; printf("*"); } } ch = getch(); } return pass; } int checkHuman() { int a,b; printf("\n\ntype 123 to proceed:"); /*User asked to type 123*/ scanf("%d",&; printf("\nwait few seconds while we proceed :"); for(a=0;a<=5;a++) { printf("."); Sleep(200); } if(b==123) /*If b is equal 123 than proceed or execute else part*/ { printf("\nCorrect Answer\n"); return 1; } else { printf("\nTry Again\n"); return 0; } } void displayPassword(char *pass) { printf("\n\nType \"show\" for displaying password you have just entered :"); /*User requested to Enter show to display password entered*/ scanf("%s",display); printf("\nwait few seconds while we proceed :"); for(int a=0;a<=5;a++) { printf("."); Sleep(200); } if((strcmp(displayPassword,"show")==0) { printf("\nCorrect Answer\n"); printf("Your password:%s",pass); /*Dispay store info(password) in input[pass]*/ } else { printf("\nTry Again\n"); displayPassword(pass); } } int main() { system("cls"); char *password; password= new char[21]; while(1) { strcpy(password,getPassword()); if(checkHuman() == 1) { displayPassword(password); break; } else continue; } system("pause"); } Compile it and let me know if its ok.
  14. But in some cases you will need to use a while loops. Use functions for now. When you become confident in loops you can start using while loops. Its pretty easy really and is less resource hungry and doesn't involve the function call overheads.
  15. Where is the attachment? Look at my program i brought that code for "..." outside the if-else loop. So that means that portion of code will run for both if condition and else condition. This will write "Press any key to continue" at the end of the program. Only after the user presses a key the program will exit. Those are the function prototypes. It is advisable to declare the function prototypes before writing the function itself. But in your case it is optional. Your program will run fine without it. But you will have to write function prototypes when you enter the software industry. The class declarations and function prototype declarations are done in the header file and the function body is written in the c/cpp files. Yes. What do you mean by one WORD? Do you mean the last character? Look at the program i'v written. I have included that functionality. When you press backspace the last character in the string will get deleted. Implement what? I dont understand what you're saying.
  16. You can do that or you can also use while loops and do-while loops.
  17. I know a few languages but you haven't heard of most of them because they are application specific languages. And no C++ is not about learning the new syntax only. C++ has lots of new concepts like class, inheritance, polymorphism, templates, STL etc. You have to learn a lot of theory for that.
  18. Months? It tool me 4-5days only to learn C++ theory once i learnt C.
  19. CrackUC this is a very nice attempt at making this program but you can improve this program by making it more efficient and by not using GOTO . For example you have used -- printf("wait while we proceed"); /*Making it more realistic */ for(a=0;a<=5;a++) { printf("."); delay(200); } You have used the above mentioned portion of code both in the if and also in the else part, but why? If the portion of code is common in both if and else part then you should write that part outside the if-else condition. That way you dont have to rewrite the same code twice. You have also mentioned that your program accepts backspace as a character but thats not the only problem. You haven't used any filter so your program will accept all types of non printable characters. So you need to protect your program against that. I'm rewriting your program a bit and including the backspace feature to erase the last entered character. See if this works-- #include<stdio.h> #include<conio.h> #include<string.h> #include<windows.h> char* getPassword(); bool checkHuman(); void displayPassword(char*); char* getPassword() { char pass[21]= ""; char ch; printf("Enter password(20 characters max): "); ch=getch(); while((ch != '\r') && (ch != '\n')) { if((ch==127)||(ch<=31)) { if(strlen(pass)>0) { printf("\b \b"); pass[strlen(pass) -1] = '\0'; } } else { int len = strlen(pass); if(len<20) { pass[len] =ch; pass[len + 1] = '\0'; printf("*"); } } ch = getch(); } return pass; } bool checkHuman() { int a,b; printf("\n\ntype 123 to proceed:"); /*User asked to type 123*/ scanf("%d",&; printf("\nwait few seconds while we proceed :"); for(a=0;a<=5;a++) { printf("."); Sleep(200); } if(b==123) /*If b is equal 123 than proceed or execute else part*/ { printf("\nCorrect Answer\n"); return true; } else { printf("\nTry Again\n"); return false; } } void displayPassword(char *pass) { printf("\n\nType \"show\" for displaying password you have just entered :"); /*User requested to Enter show to display password entered*/ scanf("%s",display); printf("\nwait few seconds while we proceed :"); for(a=0;a<=5;a++) { printf("."); Sleep(200); } if((strcmp(display,"show")==0) { printf("\nCorrect Answer\n"); printf("Your password:%s",pass); /*Dispay store info(password) in input[pass]*/ } else { printf("\nTry Again\n"); displayPassword(Pass); } } int main() { system("cls"); char *password; password= new char[21]; while(true) { strcpy(password,getPassword()); if(checkHuman()) { displayPassword(password); break; } else continue; } system("pause"); } I haven't compiled it to check for errors. You please do it and tell me if there are any errors. Compile the code just as i have written dont add your own main function like last time .
  20. Well its banned in all respectable software development companies i know of. The GOTO statement is a very poor shortcut. You use GOTO statement only when you can't think of any other logical way to write your program. Using the GOTO statement is in essence an act of desperation. So good programming practice forbids you from using it.
  21. There's no need to lock this thread. I'm changing the title to SOLVED.
  22. I already explained why in my previous posts. Here read this--
  23. Yes a simple while loop or a do-while loop. Any conditional loop basically so that any other person reading your code may understand what logic you have implemented. Unconditional branch statements like goto are strictly prohibited.
  24. No there aren't any bugs but it gives rise to a lot of problems later on. After a software is made it has to maintained and enhanced. Bugs have to removed, improvements and new features have to be to be added and the software has to be tweaked from time to time as per the clients changing business needs. So after a software is developed it has to be maintained by a separate group of people. Since goto is an unconditional program branching the maintenance guy reading your code might not understand why you have used it in your program. So in any software development company the goto statement is banned. Only conditional branching is allowed.
×
×
  • Create New...