Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 46
Search took 0.01 seconds.
Search: Posts Made By: code_lover
Forum: BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 October 9th, 2009, 03:51 AM
Replies: 0
Views: 3,766
Posted By code_lover
Horizontal Scrolling in Android

Hi Folks,
I have a banner on the top and i have 36 buttons in all, of which i
want to display a set of 12 to display while scrolling horizontally.I
want the banner to be stationary while...
Forum: BOOK: Professional BlackBerry June 25th, 2009, 04:58 AM
Replies: 0
Views: 1,622
Posted By code_lover
BlackBerry App not showing in simulator

I don't know why my app is not showing up in the blackberry simulator. Please explain how to troubleshoot this problem
Forum: BOOK: Beginning Java 2 June 5th, 2009, 08:07 AM
Replies: 1
Views: 7,292
Posted By code_lover
Lightbulb Class design in Java

I have 2 classes in Java with attributes as follows:

public class Student{
String name;
String address;
String course;
Professor advisor; //here i...
Forum: C++ Programming February 25th, 2009, 08:05 AM
Replies: 3
Views: 3,331
Posted By code_lover
Reversing an array: which method is efficient

ok i have figured out where i was wrong and have come up with this code here:

for (int i=0;i<=MAX/2;i++)
{
int temp;
temp = arr[i];
arr[i] = arr[(MAX-1)-i];
...
Forum: C++ Programming February 25th, 2009, 07:41 AM
Replies: 0
Views: 853
Posted By code_lover
How to improve this BankAccount class

I have the following class i which it is predetermined that there will be just 2 types of accounts i.e. Single and Joint. Now i want to use enum here. How can i do that and would it be useful and...
Forum: C++ Programming February 2nd, 2009, 05:08 AM
Replies: 3
Views: 3,331
Posted By code_lover
How to reverse an array here?

#include <iostream.h>
const int MAX = 5;
class array
{
private:
int arr[MAX];
public:
void populate();
void reverse();
void display();
Forum: C++ Programming August 9th, 2008, 05:45 AM
Replies: 1
Views: 1,848
Posted By code_lover
File I/O Operations in C++

I am developing a ticket reservation system in C++. All information will be stored in a flat file.I have the following tasks:
1. Create Reservation
2. Search Reservation
3. Update Reservation
4....
Forum: C++ Programming August 8th, 2008, 06:09 AM
Replies: 0
Views: 1,469
Posted By code_lover
Unique Key by concatenating military time and date

How can i generate a unique key in in C++. Is there anyway i can have military time since i want to concatenate current date and military time together?
Please help

MAXOOD!

Life is an endless...
Forum: C++ Programming July 22nd, 2008, 01:18 PM
Replies: 3
Views: 2,539
Posted By code_lover
Thankyou so much for this useful code.I think the...

Thankyou so much for this useful code.I think the same technique we would use for strings or characters.Please comment, lets say i want the user to enter names and the user is entering numbers or...
Forum: C++ Programming July 22nd, 2008, 01:10 PM
Replies: 1
Views: 1,483
Posted By code_lover
How to improve this C++ code to accept spaces in i

#include <iostream.h>
#include <conio.h>

main()
{
char res;
int index=0;
char names[index][20];//names each 20 characters long
do
{
Forum: C++ Programming May 20th, 2008, 04:09 PM
Replies: 4
Views: 38,969
Posted By code_lover
Dear ciderpunx, thankyou very much for your...

Dear ciderpunx, thankyou very much for your useful tips. You have really added to my knowledge. I have the complete code now to sort 10 names wrt their 1st character.Now can you please tell me how to...
Forum: C++ Programming May 17th, 2008, 02:11 PM
Replies: 4
Views: 38,969
Posted By code_lover
Sorting Array in C++

Now my requirement is to sort 10 names from their with respect to their first character using bubble sort or any other sorting algorithm. I have my code here:


#include <iostream.h>
#include...
Forum: C++ Programming May 4th, 2008, 06:06 AM
Replies: 2
Views: 10,407
Posted By code_lover
The boolean data type in C++?

When i assign a non-zero value to a boolean variable, the output is true. And when i assign a non-zero value from the console, the output is false.
WHY?

Please take a look at the following codes:...
Forum: C++ Programming April 25th, 2008, 12:38 PM
Replies: 3
Views: 2,539
Posted By code_lover
Validation in C++

I want to do validation. I need to make sure that input is an integer. What is the function in C++ that determines that the given input is an integer. And if the input is not an integer then the...
Forum: Intro Programming April 23rd, 2008, 07:19 AM
Replies: 0
Views: 1,562
Posted By code_lover
About Functions and refinement in program

I need to have critical comments about the following piece of code. I am learning to write my own functions in C++. Could someone guide me on how to make this program more refined and how can i make...
Forum: Intro Programming April 19th, 2008, 04:52 AM
Replies: 1
Views: 1,589
Posted By code_lover
A programming problem for Data Types

In banking transactions, we have enormously large amounts of money being withdrawn, deposited and transferred.
The questions is what we will do when we have an amount that needs to be stored in a...
Forum: Oracle April 16th, 2007, 12:37 PM
Replies: 2
Views: 10,454
Posted By code_lover
Thankyou very much for your feedback.Please go...

Thankyou very much for your feedback.Please go through the code below and let me know if i can improve it further.

CREATE OR REPLACE FUNCTION FINDAGE(
DOB IN DATE)
RETURN NUMBER
IS
YRS...
Forum: Oracle April 12th, 2007, 04:26 AM
Replies: 2
Views: 10,454
Posted By code_lover
PL/SQL Function returning age

CREATE OR REPLACE FUNCTION FINDAGE(
DT IN date)
RETURN NUMBER IS
AGE NUMBER;
BEGIN
AGE:= MONTHS_BETWEEN(SYSDATE,'DT');
RETURN AGE;
END;

What is really wrong with the above function?
Forum: Oracle March 31st, 2007, 06:05 AM
Replies: 12
Views: 5,160
Posted By code_lover
How do we come to know that we have reached the...

How do we come to know that we have reached the end of record in a cursor for loop.
For example, i have this PL/SQL block:

DECLARE
CURSOR c1 IS
SELECT sal FROM emp;
SALARY_TOTAL NUMBER:=0;...
Forum: Oracle March 31st, 2007, 03:32 AM
Replies: 12
Views: 5,160
Posted By code_lover
I am able to sum up the salary with a simple...

I am able to sum up the salary with a simple loop. Here it is:
DECLARE
CURSOR CR3 IS SELECT ENAME,SAL FROM EMP;
VENAME EMP.ENAME%TYPE;
VSAL EMP.SAL%TYPE;
TOT_SAL NUMBER:= 0;
COUNTER NUMBER:= 1;...
Forum: Oracle March 29th, 2007, 06:25 PM
Replies: 12
Views: 5,160
Posted By code_lover
There is no error message.All I am getting is...

There is no error message.All I am getting is this output:

R1.E... 800
R1.E... 1600
R1.E... 1250
R1.E... 2975
R1.E... 1250
R1.E... 2850
R1.E... 7000...
Forum: Oracle March 28th, 2007, 09:44 PM
Replies: 12
Views: 5,160
Posted By code_lover
okay i am using Oracle 9i and am not still...

okay i am using Oracle 9i and am not still getting the value of TOT_SAL.
Why is that?

MAXOOD!

Life is an endless journey towards perfection
Forum: Oracle March 25th, 2007, 11:25 PM
Replies: 12
Views: 5,160
Posted By code_lover
Problem with CURSOR FOR LOOP

What is the problem with this PL/SQL Block?

DECLARE
TOT_SAL NUMBER:=0;
CURSOR CR1 IS SELECT ENAME,SAL FROM EMP;
BEGIN
FOR R1 IN CR1 LOOP
TOT_SAL := TOT_SAL + R1.SAL;...
Forum: Oracle March 17th, 2007, 09:32 AM
Replies: 2
Views: 1,019
Posted By code_lover
My question has nothing to do with database.The...

My question has nothing to do with database.The values shown in the above pattern are hard-coded values.And they will be stored in arrays.Now i want to know how can i print this pattern using a FOR...
Forum: Oracle March 16th, 2007, 01:48 PM
Replies: 2
Views: 1,019
Posted By code_lover
Using Arrays in PL/SQL

How do we use arrays in PL/SQL?How to print this pattern.?
A1,A2,A3,A4,A5,A6,A7,A8,A...

B1,B2,B3,B4,B5,B6,B7,B8,B...
.
.
.
Z1,Z2,Z3,Z4,Z5,Z6,Z7,Z8,Z...
Showing results 1 to 25 of 46

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.