- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
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…
19 Posted Topics
Re: 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` … | |
Re: 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 … | |
Re: 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. | |
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 … | |
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 … | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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 … | |
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). … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
Re: 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 … | |
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 … |
The End.