Saturday, April 23, 2011
Monday, April 11, 2011
UVA Problem#11900
Question:
Solution:
1. take all the necessary inputs.
2. let count be the variable of the counter. you have to check so that count<P and count<N,then add the weight and recheck. Pseudo code is given below:
#include<stdio.h>
int main(){
while(T--){
int main(){
while(T--){
.......
.......
for(W=count=0; count<P && count<N;){
if(W+a[count]>Q)
break;
W+=a[count++];
}
printf("Case %d: %d\n", c++, count);
}
return 0;
}
for(W=count=0; count<P && count<N;){
if(W+a[count]>Q)
break;
W+=a[count++];
}
printf("Case %d: %d\n", c++, count);
}
return 0;
}
Labels:
UVA Problems Code
Wednesday, April 6, 2011
Microsoft Office 2007 Free Download
Download all the 3 parts. and unzip them in one folder. Then continue with the installation process.
click here to download (part 1)
click here to download (part 2)
click here to download (part 3)
click here to download (part 1)
click here to download (part 2)
click here to download (part 3)
Labels:
Downloads
Tuesday, March 29, 2011
Complete C++ Guide
The Complete C++ Guide
What is C++?
C++ (pronounced "See plus plus") is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.
What is C++ used for?
For big software projects that require high performances. Most major applications and games are made in C++.
Examples: Photoshop, Firefox, Winamp, Counter Strike...
Short list of C++ compilers:
For Windows:
Microsoft Visual C++ Express
Borland C++ 5.5
CodeBlocks
DevCPP
For Linux:
G++(contained in GCC which comes preinstalled in most distros)
Intel C++ (free for noncommercial use only)
For Mac OS X:
Apple C++
Xcode
GCC
Labels:
Important Topics
How to install animated label cloud in your blog
How to install Blogumus in your Blogger layout
Installing Blogumus in your Blogger layout is surprisingly simple! You should only need to copy and paste a section of code to your Blogger template, though any tweaks for the style of display will require some manual editing. Here are the steps required to install Blogumus in your Blogger layout: Go to Layout>Edit HTML in your Blogger dashboard, and search for the following line (or similar):
<b:section class='sidebar' id='sidebar' preferred='yes'>
Immediatly after this line, paste the following section of code:
Labels:
Important Topics,
Junk
Sunday, March 20, 2011
Manipulating MySQL with PHP
Manipulating MySQL with PHP
Beginners Tutorial
Beginners Tutorial
.
Introduction
If you do not know what MySQL is, then I suggest reading the spoiler below.
MySQL is a widely used program that allows anyone to easily create and host their own database. MySQL is free and can be set up in a matter of minutes. When you create your own database, you will need to remember your host, your username, and your password. Many website hosting sites have included MySQL database support, which means you can use the MySQL database they provide for you and edit it within the host site's Control Panel without having to download MySQL onto your hard-drive. For simple needs, and for safety reasons, using provided MySQL service from a website hosting sites may be the best choice for you.
Labels:
Important Topics
Tuesday, February 8, 2011
Subscribe to:
Posts (Atom)