Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
1 Commented Post
~25.7K People Reached
About Me

I am a final year student of BS Software Engineering at International Islamic University, Islamabad.

PC Specs
Processor: Intel Core2duo 2.4 GHz, RAM: 2GB (DDR2), Hard Disk: 380GB, OS: Ubuntu 13.10, Professional…
Favorite Tags

19 Posted Topics

Member Avatar for nadiam

you probably need to adjust your database schema a little bit. With current login you will probably have 12 tables, one for each month, and every table will contain atmost one record. At the very least, add an additional column `month` to your table that currently has `basic` and `allowance` …

Member Avatar for Lsmjudoka
0
5K
Member Avatar for erminasrcutp

1) What do you mean by "I can not do the Edit.php"? Where is the code for this file? Does it fail to execute or produce incorrect results? 2) In the top portion of code that you have posted, why do you have the word `echo` at various places? if …

Member Avatar for rpv_sen
0
252
Member Avatar for erminasrcutp

you probably need to use this function: http://pk1.php.net/mysql_insert_id have you looked at it before? Let me know if you need further help about where to call this function and to display the id of newly inserted row that it will return to the user in subsequent response.

Member Avatar for Muhammad Anas
0
161
Member Avatar for Muhammad Anas

I am designing a very basic form in which I am using GridBagLayout to position and size the GUI components. All the components get sized and positioned exactly as I expect from my code except the two radio buttons named "noRadio" and "yesRadio" respectively. I want them to appear next …

Member Avatar for Muhammad Anas
0
621
Member Avatar for Muhammad Anas

Here is a very simple segment of code. What I want is when I click on the button "First Button" then the window become empty. What actually happens is the window just becomes unresponsive. What could be the problem and what could be a solution?? import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Member Avatar for Muhammad Anas
0
6K
Member Avatar for J.S.AlKatheeeri

One more thing that I would like to add is: a general rule in inheritance is that a subclass has an "is a" or more specifically "is a kind of" relationship *in real world* with its super class for example if a superclass is **Shape** and there are three subclases …

Member Avatar for JamesCherrill
0
204
Member Avatar for Muhammad Anas

I have written the following for loop to demonstrate ceil() function of <cmath>. [CODE]for (double ceilDemo = 2.0; ceilDemo <= 3.0; ceilDemo += 0.1) cout << setw(10) << ceilDemo << setw(20) << ceil( ceilDemo ) << endl;[/CODE] The output is as expected except for the last iteration. I mean in …

Member Avatar for Muhammad Anas
0
125
Member Avatar for Muhammad Anas

Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have …

Member Avatar for Muhammad Anas
0
3K
Member Avatar for IT FRESH

well ... to force the input in HH:MM:SS format you can declare a dummy char variable which you will not use anywhere in your program logic but will only use to filter colons from the user's input. Now say you have declare three int variables with names like hours, minutes, …

Member Avatar for cahitburak
0
123
Member Avatar for Limiter

well Limiter, compiler knows which constructor to use by the number of arguments you specify at the time of creating a new object of that class. suppose you wrote the class with name "add" (as apparent from your chosen constructor name) and now you want to create two objects of …

Member Avatar for Limiter
0
207
Member Avatar for rohan121212

I just run your code in Microsoft Visual Studio and I didn't face any problem. It compiled without any error and executed without any problem also doing exactly what I was expecting it to do i.e. comparison of numbers. So, it should run properly on DevC++ too. Can you please …

Member Avatar for Schol-R-LEA
0
99
Member Avatar for Muhammad Anas

Question: Write a single statement that chooses a random number from each of the following sets: a) 2,4,6,8,10 b) 3,5,7,9,11 c) 6,10,14,18,22 I wrote the following statement for the set (a): [CODE](1 + (rand() % 5)) * 2;[/CODE] but I am unable to write ones for sets (b) and (c). …

Member Avatar for Muhammad Anas
0
3K
Member Avatar for Muhammad Anas

I just found a question whose statement is as follows: [COLOR="Green"]Write a function contains(const char*, char) which returns the pointer to the first (left-most) occurrence of the 2nd parameter char in the 1st parameter cstring, or NULL if the cstring doesn't contain the char. [/COLOR] Another condition is that inside …

Member Avatar for Muhammad Anas
0
266
Member Avatar for Muhammad Anas

I just downloaded a document containing some pointers exercises. The statement of One of its questions is as follows: [COLOR="Green"]Write a function that returns a pointer to the maximum value of an array of double's. If the array is empty, return NULL. double* maximum(const double* a, int size); [/COLOR] It …

Member Avatar for Muhammad Anas
0
1K
Member Avatar for Muhammad Anas

Hello guys, I am trying to declare a two dimensional array in C++ on runtime. For this purpose I am asking the user about how many rows and columns should be created in the array. I have written the following code for this purpose. Apparently it is working just fine. …

Member Avatar for Muhammad Anas
0
158
Member Avatar for Muhammad Anas

A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then …

Member Avatar for Muhammad Anas
0
2K
Member Avatar for Muhammad Anas

I am trying to create a program that, after inputing a text file, can: 1) Count number of lines in the text file. 2) Count number of words in the file. 3) Count number of characters in the file [B][U]including[/U][/B] white spaces. 4) Count number of characters in the file …

Member Avatar for Narue
0
2K
Member Avatar for Lokril

Hi Lokril! Try out the following code: [CODE]#include <iostream> using namespace std; int main() { int number=0; int sum=0; cout << "Please enter an odd number: "; cin >> number; while (number > 0)//stop input if 0 or a -ive number is entered { if (number%2 != 0)//if the number …

Member Avatar for Lokril
0
216
Member Avatar for Muhammad Anas

Hello Friends, I am an absolutely beginner in the world of computer programming. I started my voyage in this world yesterday by starting learning Python. I am reading an e-book on python [URL="http://openbookproject.net/thinkcs/python/english2e/"]here[/URL]. That book has been written with examples from Linux platform. So, I felt this problem while going …

Member Avatar for snippsat
0
437

The End.