- 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…
Re:
My form has a 'save' button and 'select from previous month' button. what 'save' button does is insert all the values into my database. save button code: if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; if($basic&&$allowance) { require "connect.php"; $total=($basic + $allowance); $query=("INSERT INTO january (basic,allowance) VALUES ('$basic','$allowance')"); $janresult=mysql_query($query); } … |
|
Re:
this is my search.php , however once user has view one data user will want to update one location / status . I can not do the Edit.php . Can someone please help me ? Search.php <html> <head> <title>::Home</title> </head> <body> <div id="header"> <img src='banner.png' align='middle' width='101%' height='110%'> </div> <div … |
|
Re:
Hi , How can I show CaseID once user has fill up the form . My database : CaseID , Name , Feedback The form will require user to enter name and feedback . After submit button is enter , the CaseID should be show to user . How can … |
|
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:
Hi! I'm new, sorry if this is in the wrong place, mods please move this if necessary. Basically, I'm trying to give a breif definition of interfaces and abstract classes, please check if these are right: An interface defines what should be done not how it should be done. The … |
|
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:
hello... i am new student in IT and i have a problem which make me suffer ... we got exercise to do ... which i have to build a programme that accept the time and acceleration from the user and calculate the velocity ... my problem now is how to … |
|
Re:
Okay, I am still trying to get used to C++ since I mostly write in Java. I am also new with the two constructor thing mentioned in detail below. Here, I am investigating on writing a class with two constructor. That is, I have heard that you are allowed to … |
|
Re:
hey i just switched from turbo c++ to dev c++ i cant run the following program please help #include<iostream> using namespace std; int main() { int n; int k; cout<<"Enter the values\n"; cin>>n; cin>>k; if (n>k) {cout<<"The value entered first is greater ";} else {cout<<"The value entered 2nd is greater";} … |
|
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:
My program is due today and I'm stuck at work trying to figure this out I have been using the web to get this done. Instructions: Write a program that adds the positive odd numbers you enter from the keyboard while ignoring the even numbers, and stops when a negative … |
|
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 … |