199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sally123

I have two tables as below table 1 ProductID---Int Descritption---Text table 2 Id FK_ProductID--Int Category but on the FK_ProductID I dont want my table not to display a number but the description from TBLA.

Member Avatar for dickersonka
0
113
Member Avatar for complexcodes

My program should allow to display prompt box to enter values for a b and c and should display message in prompt box like "invalid number please enter number again" for a if a ==0 and a is not a number. Same with b , but b can be equal …

Member Avatar for essential
0
111
Member Avatar for mgn2683

Hi, I'm hoping someone can give me some advice or guidance. I am using Developer Toolbox (yes I'm still trying to learn php) Right now I have an index page with 7 set links on it. Basically, a user logs in, and is brought to this index. Based on what …

Member Avatar for mgn2683
0
119
Member Avatar for JasonDFR

Hello all. Thanks for the help! Two tables: Table `posts` holds 'p_id', 'post', 'u_id' Table `users_profile` holds 'u_id', 'profile_key', 'value' How do I return [U]one[/U] row for each 'p_id' that includes all the information in the `posts` table as well as the information in the `users_profile` table WHERE `posts`.`u_id` = …

Member Avatar for dickersonka
0
297
Member Avatar for priyamsc

I am using ASP.net 2.0 with c#.I fetch the data from database using sqldatareader.when i fetch data for one label control it works fine. what i need is, in my web form i have 6 lables named as lbl1,lbl2,lbl3,lbl4...... so i would like to incremement the lable id , i …

Member Avatar for Jihad
0
102
Member Avatar for krany18

i taken the three textboxes and one button to store the data in sqlserver .but the it giving the error. the code is as follows... [COde] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial …

Member Avatar for sierrainfo
0
175
Member Avatar for dinilkarun

Hi all, How can I declare a global variable inside a module and use it across other modules for throughout the lifecycle of the program? Regards, Dinil

Member Avatar for Stefano Mtangoo
0
91
Member Avatar for En-Motion

Trying to write program that counts the number of times a number occurs in an array. The following is the code I have written so far. It doesn't give the correct output though. It seems to be counting the output incorrectly. Any pointers where I could be going wrong? [CODE]# …

Member Avatar for ArkM
0
319
Member Avatar for shubhang

How to make streams to read and write files (in binary) . I have found a few Streams but do not know which one to use. they are as follows:- [code] PrintStream p=new PrintStream(new FileOutputStream("myfile.text")); DataInputStream in=new DataInputStream(new FileInputStream("myfile.txt")); BufferedReader br=new BufferedReader(new FileReader("myfile.text")); Printwriter pw=new PrintWriter(new FileWriter("myfile.text")); [/code] Please tell …

Member Avatar for peter_budo
0
117
Member Avatar for ariesangel

for(i=0;i<9;i++) { x[i] = rand()%9+1; for(j=1;j<9;j++) { if(x[i]==x[i-j]); i--; } } pls tell me how the rand() function work. urgent. as soon as possible.

Member Avatar for ariesangel
0
160
Member Avatar for mrjoli021

i have a file with 2 int's i need to assign them to a variables. the int's are separeated by a space. what method can i use to read each int separeate and then assign it to a variable.

Member Avatar for stultuske
0
88
Member Avatar for ashishforu.aec

Hiii I need a project on inventory control management using java... Will any one would help me out?????????

Member Avatar for stultuske
0
43
Member Avatar for jonjon1456

I need to write a program that gets inputted files from arguments written from command prompt and prints a random line from it. I don't really know how many exceptions i need and I don't really understand the logic of getting the line from the file. Please help me.

Member Avatar for stultuske
0
107
Member Avatar for sacarias40

ok i am making a simple HTML editor and i added a small feature that allows the user to click a preview button which opens up another form window that has a webpage object in it. the problem is, how do i get the html text to show converted into …

Member Avatar for Teme64
0
117
Member Avatar for mrjoli021

What is wrong with this code. when it do system.out.println(matrix[0][0] i should get 1 char i get the entire line. [code] int r =Integer.parseInt(line.substring(0)); int c = 10; String[][] matrix = new String[r][c]; while (line !=null) { for(int i =0; i< r; i++) { for (int j =0; j< c; …

Member Avatar for stultuske
0
87
Member Avatar for OmniX

I have been doing research and to be able to make a scrollable drop down box requires javascript I have been informed. Can anyone help me with this or a tutorial? Example code: [code] <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat" selected="selected">Fiat</option> <option value="audi">Audi</option> </select> [/code] Goals: - Only …

Member Avatar for OmniX
0
113
Member Avatar for DanDaMan

Can someone please help me out? What are the pros and cons of C++ and Java? I've always been told that C++ is the ultimate programming language. It's powerful, fast, and used to run huge programs. But since Java is a close rival to C++, I was wondering what are …

Member Avatar for Rashakil Fol
0
135
Member Avatar for java-clueless

I have failed my java programming class but I am retaking it in February. I have untill then to figure out how the heck to do all this. I have uploaded my program, it is an inventory program for dvds. I was supposed to create a GUI that I thought …

Member Avatar for javaAddict
0
99
Member Avatar for atish12

[COLOR="Green"][/COLOR] hi i'm pursuing bca from ignou and i want to be expert in c language . what should i do for this?

Member Avatar for ithelp
0
83
Member Avatar for dwaynecarter

okay so i am very new to java, and my teacher is not offering much help. i have an outline of how my java program should look but i still need help!!!!!!!!!!!!!!!!!! by the way max misses is 3, and words im testing are landslide and air and fight. any …

Member Avatar for ithelp
0
116
Member Avatar for d1s_0n3_guy

Write a program that will prompt the user to type in a series of characters. Input these characters into a c-string (char array). For each character, if it is a letter, toggle the case (upper to lower case, or lower to upper case). All other characters leave as is. Print …

Member Avatar for d1s_0n3_guy
0
214
Member Avatar for mybluehair

I am creating a code, and I'm getting this weird error. I'm sure its a stupid mistake, but I can find it. [quote] multiple definition of `Start()' first defined here ld returned 1 exit status C:\Documents and Settings\Andrew\My Documents\projects\equation\Makefile.win [Build Error] [equation.exe] Error 1 [/quote] And here is the code: …

Member Avatar for WaltP
0
92
Member Avatar for matt91turbo

I need a little help to get me going on how to start this program. I know how to create a string array, but I'm having trouble getting the overall structure for this program. Any help or links to helpful sites would be appreciated. Write a program that will read …

Member Avatar for vmanes
0
210
Member Avatar for Sally123

I have two tables as below table 1 ProductID---Int Descritption---Text table 2 Id FK_ProductID--Int Category but on the FK_ProductID I dont want my table not to display a number but the description from TBLA.

Member Avatar for Sally123
0
80
Member Avatar for igeek

Hey everybody, I've been working with PHP for a few months now and have come pretty far... and am starting some pretty big projects using Object-Oriented PHP design patterns. I've learned a bit about the Model-View-Controller and decided to sort of make it with twist. Before I started implementing it …

Member Avatar for ShawnCplus
0
75
Member Avatar for c7borg

Hi guys, I'm looking to start scripting and have a problem I thought I would use to learn some basics, basically I have a list of my family's addresses that are in one big vertical list varying in size. I want to sort into a tabular format below is a …

Member Avatar for bugmenot
0
118
Member Avatar for mybluehair

I have a c++ console program that alot of people are starting to download. But the program is updated around once a week. problem is, most of the downloaders never check for updates on the site. could add a feature to my program were it would do a check for …

Member Avatar for MosaicFuneral
0
105
Member Avatar for poilkjmnb

Hello Friends, i m using the function to built DLL in delphi but when call it in vb 6.0 application i m not able to use this dll as reference. Please help me. Following code which i have used to built delphi DLL. ------------------------------------------------------------------------------ [code=visualbasic] library Project2; uses SysUtils, Classes, …

Member Avatar for poilkjmnb
0
143
Member Avatar for jlatorre80

Can someone please help me with figuring out why my codes does not run. I have tried to familiarize myself with how to get data from a file and discovered i need to use fstream. The data of the file is somethin like this: 19531029L 20081104L 19770615L 19300723L 19631122L 19410501L …

Member Avatar for MosaicFuneral
0
117
Member Avatar for rockX

Hey i have another query . I am trying to add all odd and even columns of the percentages calculated and adding them as columns to the left of the percentages. so in the above percenages calculated totoal odd would be `($1+$3....= 45.83+51.61...)` same thing for even as well o …

Member Avatar for eggi
0
118
Member Avatar for Trekker182

I just used mkdir myDir{1,2,3} to create 3 directories called myDir1, myDir2 and myDir3 in the same root directory. Now I'm trying to create 5 subdirectories in each by using mkdir ~/myDir*/subDir{1,2,3,4,5} but it's giving me a file already exists message. When I do an ls on the root directory …

Member Avatar for eggi
0
248
Member Avatar for DesiFrank

Hello every one , I am new to java learning from different example i am useing bluej. Any help would be much appreciated. I just dont know where to start i done few programs my friend show me that on her Pc but i didnt understand very well. so i …

Member Avatar for Ezzaral
0
248
Member Avatar for Trekker182

I was wondering if anyone could offer some suggestions on how to validate a social security number & their employee # that a user would input separately through prompts? The SS# would be in the form of xxx-xx-xxxx where the x's are 0-9. I tried using this function that I …

Member Avatar for Trekker182
0
833
Member Avatar for Raulin

Hi there, I am currently doing the snake game for my c++ project. For your information, I am not majoring in computing or any programming course, but am majoring in Physics at Univ of Birmingham, UK. About my task, I employ the use of vectors as the main function to …

Member Avatar for Raulin
0
110
Member Avatar for JpegUser

Hi all, Just a simple question. How do i reverse a pointer to a set of values given that i know the size of the pointer? Eg int *temp = malloc(ptr_size); // values of *ptr let say is 1......100, // if i use the algorithm below, it gets me 1..50...1 …

Member Avatar for JpegUser
0
126
Member Avatar for chocolate-glaze

Hi! I'm trying to write a method that finds the index of a specified occurrence of a character in a given string using recursion. I've managed to count the number of times a character occurs in the string, but can't figure out how to find the index of a particular …

0
63
Member Avatar for BobLewiston
Member Avatar for ich1

Hi all, This is my first thread on Daniweb!. I was wondering if someone would help nudge me in the right direction on this one. I'm new to python, been using it for about 6 months or so trying to develop a network simulator for school. This is not an …

Member Avatar for gaunle
0
459
Member Avatar for dnmoore

I have to create a database that implements an array that stores a persons first name and last name and zip code this is what i have so far for my individuals array public class IndividualsArray { private Individuals[] array; private int count; private int zipCode; public IndividualsArray () { …

Member Avatar for dnmoore
0
153
Member Avatar for Tchevalier

Im new to c++ and i'm tryin to compute the standard deviation of a set of floating point numbers using a data file. here I started my program and skip over things i didn't really know but can someone plaese help me. **************************************************************************** #include<iostream> #incluse<fstream> #include <cstdlib> #include <cmath> int …

Member Avatar for VernonDozier
0
201
Member Avatar for skatamatic

For a lab, my instructor asked us to include an assignment operator with our class, but to hide it. Does this mean to declare it as private and just leave an empty implementation? Is this common/useful?

Member Avatar for wt1099
0
313
Member Avatar for zothos

I have a problem with a code attempting to do a factorial of a number. For numbers 12 and below, the code works fine, but when I do 13 and above it outputs the wrong number. [icode] #include <iostream> using namespace std; int number; int number2; int main() { cout …

Member Avatar for MosaicFuneral
0
294
Member Avatar for ashain.boy

hello everyone! i need help a bit ... //// County/Region 2007Q3 2008Q3 Yr/Yr% Los Angeles 13,583 17,073 25.70% Orange 3,882 5,692 46.60% San Diego 5,673 7,062 24.50% Riverside 9,250 11,714 26.60% San Bernardino 7,038 9,110 29.40% Ventura 1,377 1,676 21.70% Imperial 259 568 119.30% San Francisco 252 353 40.10% //// …

Member Avatar for bvdet
0
91
Member Avatar for allang

I'm setting up a simple painter applett that uses a seperate frame class to control color and clear the screen. I've got all but the clear button working fine. After attempting several different methods I've settled on passing the address of the applett graphics object to the frame class and …

Member Avatar for Ezzaral
0
90
Member Avatar for kellogs

Hello, I would like to clarify one thing about SOAP security. My situation is like this: there is a web service server and some web service clients that I need to bring up using SOAP. This web service will only be used with my own clients and, perhaps some other …

Member Avatar for yaronn01
0
117
Member Avatar for afg_91320

i have this given structure: [code] struct Tempscale { double farenheit; double centigrade; }; struct Reading { int windSpeed; double humidity; Tempscale temperature; }; [/code] i am then asked: define a Reading structure variable is this ok: Reading data; write statements that will display following data: wind speed : 37mph …

Member Avatar for Ancient Dragon
0
396
Member Avatar for Evil Genius

Hi, I was coding the following program.. [ICODE] // Program takes work hours and rate per hour and gives total // salary after tax, if work hours are over 40, its increased by 1.5x. #include <iostream> #include <conio.h> using namespace std; int main() { double hr_work, hr_rate, taxed_total, total; cout …

Member Avatar for Evil Genius
0
134
Member Avatar for jsully1

I am using Tomcat as a server to work on a servlet that need to access a database and I need to use CachedRowSet, but I cannot seem to connect to the database correctly. Currently I have [code] public class FaqListingServlet extends HttpServlet { private CachedRowSetImpl cachedRowSet; // set up …

Member Avatar for dickersonka
0
100
Member Avatar for 123468743867143

Good day everyone from beautiful California, I have been able to limit the number of listings showing per page ($per_page=10) [COLOR="red"]But how do I limit the number of pages so I do not have rows after rows of pages.[/COLOR] [B][COLOR="Green"]The way it looks now:[/COLOR][/B] 1 | 2 | 3 | …

Member Avatar for 123468743867143
0
382
Member Avatar for n3XusSLO

[CODE]std::string s="s1"; std::cout<<s<<std::endl; { std::string s="s2"; std::cout<<s<<std::endl; };[/CODE] Why can I have two variables with the same name existing like this?

Member Avatar for Lerner
0
192

The End.