132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kumar.vsv

Hi, I am kiran I have a task like If I click one option box like country then corresponding states to appear,than I click states than next option box must display cities.please see this link you will get an idea [url]http://www.bharatbloodbank.com/search.php[/url] How to do it in struts. If I want …

Software Development java
Member Avatar for jwenting
0
74
Member Avatar for komany

Hello I have little problem with a code. I want to send information about a size on a file and uses “size_t filesize”. I will send this information thru a network called ”controller area Network” and uses the code stat = canWrite(hnd, 1234, size, 8, canMSG_EXT); in order to do …

Software Development c
Member Avatar for Ancient Dragon
0
166
Member Avatar for geetasks

hello Can anyone tell me how to implement AJAX on .net page without using Update panel. I had got two dropdown one for country and other for state. If I choose country automatically states should fill in the second dropdown without postback. I had used in page load ScriptManager1.RegisterAsyncPostBackControl(drpItem); But …

Software Development
Member Avatar for Ramy Mahrous
0
82
Member Avatar for flash121

Greetings, I have a problem. I have an abstract class called Number and 3 derived classes called Integer,Double and Float. The Number class has an abstract virtual method, which the derived classes (obviously) must inherit. Now comes the part where im stuck. The method has to be declared using a …

Software Development c++
Member Avatar for Narue
0
113
Member Avatar for timo_81

Hi, I wanted to ask if somebody could help me on the following problem: I want to check how often a button in python/tk is clicked. I tried the folowing but it doesn't work: [code=python] click=0 def button_clicked(): click=click+1 print click [/code] but this won't work because the variable click …

Software Development python
Member Avatar for timo_81
0
175
Member Avatar for Drake

Data types are used to represent numbers and characters used in a program, why do programmers benifit from having such a variety? Also if anyone could help me out with what an unsigned character is used for? thanks for the help

Software Development c
Member Avatar for Narue
0
93
Member Avatar for timdog345

This is what I need > 1) I also need to use a for loop to prompt user to input two intergers: firstNumber and secondNumber (firstNumber must be less then secondNumber) > 2) Outputs all odd numbers between firstNumber and secondNumber > 3) output the sum of all even numbers …

Software Development c++
Member Avatar for Rajith Cherian
0
109
Member Avatar for computers08

Hi I'm new to programing. My tearcher gave me a ster program where there are 4 right triangles, that triangles 2-4 are just reflections/rotations of the first one - all being right triangles of size 10 on the perpendicular sides * ** *** **** ***** ****** ******* ******** ********* ********** …

Software Development c++
Member Avatar for computers08
0
102
Member Avatar for risa

hi, whenever std::string is assigned to another std::string its giving me a memory leak,why is it so....generally std::string's destructor takes care of freeing it.......can anybody help me wht to do to avoid this type of memory leak...???

Software Development c++
Member Avatar for mitrmkar
0
171
Member Avatar for luisator

:?: Hi: I am postin in this forum because someone told me all the windows applications were developed in visual basic. I need to know which is the DLL associated with the sound recorder. I nedd to use the record method to call it from a java application. I hope …

Software Development java visual-basic
Member Avatar for jasimp
0
71
Member Avatar for leedsy7

How do i print from a listbox?? i'm using Access. Here's my code for the form to add items to the listbox... I have tried many ways and have failed many times ... Help needed!! Option Explicit Dim ItemNumber As String Dim ItemDescription As String Dim Qtytoorder As String Dim …

Software Development printer visual-basic
Member Avatar for The Macedonian
0
1K
Member Avatar for saintb

following masijade advice i tried busting my head abit. i have written the following code import java.awt.event.*; import java.awt.*; import javax.swing.*; import javax.swing.border.*; public class Game extends JApplet implements ActionListener { //Creating a new JPanel called panel1 JPanel panel1 = new JPanel(); //Creating a JLabel for panel1 JLabel header = …

Software Development java java-swing
Member Avatar for masijade
0
132
Member Avatar for ktob

hi, this code compiled using visual studio. Have changed the line const size_t i= __gnu_cxx::hash(x); from const size_t i=stdext::hash_value(x); so that it would compile using gcc. However I am getting an error message as shown below. Any suggestions appreciated. Thx [code=cplusplus] template<class X, class Pred= less<X> > class Hash{ private: …

Software Development c++ visual-studio
Member Avatar for ktob
0
499
Member Avatar for VidVB6

Hi All I am populating a listbox based on an item selected in another listbox. But wat i get is huge number of entries in the populated listbox. It basically contains the folders anf all files present in a particular project workspace. (so as n when the count of folders/files …

Software Development visual-basic
Member Avatar for The Macedonian
0
115
Member Avatar for Aamit

How to [COLOR="Red"]check USB is enable or not [/COLOR]in c++ programing. Plz give me some hints or sample code or links

Software Development c++
Member Avatar for Asat232
0
232
Member Avatar for humhaingaurav

Hi Guys, Can someone please explain me why this is happening [code=cplusplus] #include<iostream> using namespace std; class a { public: int a1; // If I remove this it'll work fine a() { cout << "Constructor of a \n"; } ~a() { cout << "Destructor of a \n"; } }; class …

Software Development c++
Member Avatar for vijayan121
0
103
Member Avatar for KimJack

Hi, I am working on a sort of stack calculator. If anyone can suggest a better method please advice: Basically, using the stringtokenizer to break the string into tokens. If the token does not equal "add" or "sub" or if the token is a digit push it onto the stack... …

Software Development java
Member Avatar for javaAddict
0
818
Member Avatar for Adrian99420

Hi, I created two window form (the two form call form1 and blank), when I click a button on the first form it will link to the second form. However, i face problem when I wish to change the second form text (name of the form) using the string I …

Software Development c++
Member Avatar for mitrmkar
0
106
Member Avatar for scream2ice

i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well …

Software Development c++ ios
Member Avatar for John A
0
101
Member Avatar for abdulraqeeb33

this is the output on server init: deps-jar: compile-single: run-single: checking the client of ip 169.254.86.65 checking the client at port 59000 checking the client at hostname RAF System with169.254.86.65is online probing the client of ip 169.254.86.65 creating the client of ip 169.254.86.65 whose hostname is RAF at port 59000 …

Software Development client-server java peer-to-peer
0
110
Member Avatar for amitpawar007

Hi All, I am using ACE. when i try to open a file with ACE_OS::fopen function in append mode, my program crashes. There seems to be no problem when i try ACE_OS::fopen function with write or read mode. code example. ACE_OS::fopen("demo.txt", ACE_TEXT("w")); // working fine ACE_OS::fopen("demo.txt", ACE_TEXT("r")); // working fine …

Software Development c++
Member Avatar for Salem
0
173
Member Avatar for anbuninja

i dont understand looping at all. plese help if you can. i know its like doing my work for me but yeah i dont know looping. create a program that keeps reading a sentence and a character and displays how many times the character appears in the sentence until user …

Software Development c++
Member Avatar for hacker9801
0
124
Member Avatar for nurulshidanoni

How to change this data sturucture from vector <int> total; to float total;? because if I change it to float teher is many error.... [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for each() using namespace std; // import …

Software Development algorithm c++
Member Avatar for littlestone
0
294
Member Avatar for cmoney12051

i have to make the C++ program that will have the user input some test grades and exam grades and their personal info then output their stuff in the end. i have almost the whole thing done, but i would compile it throws up a list of 30 erros and …

Software Development c++
Member Avatar for cmoney12051
0
129
Member Avatar for nelledawg

I am so incredibly frustrated right now. I have seriously been sitting here for hours trying to figure out how to validate program input using ranges from a text file. My teacher gives us a lecture that is supposed to help, but the lecture doesn't even have a thing to …

Software Development c file-system
Member Avatar for nelledawg
0
103
Member Avatar for PirateTUX

I'm looking for a bit of advice. We're getting to the point in our game development where I need to start thinking how we're going to integrate scripting into the game engine. I was looking at Lua, but am also interested in what Perl or Python might be able to …

Software Development c c# c++ perl python
Member Avatar for hacker9801
0
111
Member Avatar for cheesy_mel

Hi.. I'm want to read each record (in 1 line) using fread(), the problem is the record length is arbitrary.. e.g. 1 "Joshua" "Rosenthal" "34 Mellili Ln" "Earlwood" 1 "000113133121" 0.000 2 "Martin" "Serrong" "45 Rosenthal Ccl" "Doveton" 1 "000113133121" 0.000 3 "Jacob" "Leramonth" "59 Dalion Pl" "Belmont" 1 "000113133121" …

Software Development c
Member Avatar for cheesy_mel
0
123
Member Avatar for tico

I'm new to creating python extension modules with distutils. I'm trying to create a module that uses the fmodEx audio library on OS X, and I'm running into some trouble. The needed library file is called fmodexlib.dylib. My setup.py looks like this: [CODE] from distutils.core import setup, Extension setup(name='test', version='1.0', …

Software Development api audio os-x python
Member Avatar for woooee
0
100
Member Avatar for sfak271

I´m writing a program to find the divisors of a number, using the modulo function. my problem is, i´m supposed to use an array to "output" the divisors, and the output should stop when an empty cell is reached. I´m not very confident with arrays and don´t really know how …

Software Development c
Member Avatar for Ancient Dragon
0
277
Member Avatar for spec80

Hi, I am writing a problem that only works when a certain character is entered (either A, B, or C), and if that character is not entered, the program will loop around until A,B , or C is entered. So i tried the following code segment below, but even when …

Software Development c
Member Avatar for spec80
0
92
Member Avatar for Kusno

I'm able to set UIManager for UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel") and UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel") but for UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel") I get an error like this : java.lang.ClassNotFoundException: com.sun.java.swing.plaf.metal.MetalLookAndFeel What's wrong with my code ?? Thanks, Kusno.

Software Development java java-swing
Member Avatar for Kusno
0
246
Member Avatar for oakdale95

im having problems with my java homework. I really need help. I need to use a loop make sure what the user input for their grade is vaild the grade has to be between 150 and 0. So can somebody show me the code to use import java.util.Scanner; // Needed …

Software Development java
Member Avatar for jasimp
0
111
Member Avatar for chickenmcnugget

to anyone who can help me out with this its of no big importance i was stumbling one day and this came across this little snit bit of what looks to be like a program or something so i tried starting it and i have no idea whats going on …

Software Development java
Member Avatar for chickenmcnugget
0
82
Member Avatar for saint.h

[code=cplusplus] int Seats::AddEntry() { std::cout << "Please enter your desired seat position"; std::cout << endl; std::cin >> position; ofstream SaveFile("Traveler.txt",ios::in); SaveFile << "Your Seat postion is...:"; SaveFile << endl; SaveFile >> position; SaveFile.close(); return 0; } [/code] This is just a snippit of my code...This function is one of 3 …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
285
Member Avatar for big24fan

The following script was posted as a solution to a problem I did in school, however, when I run this exact script I get 3 warnings and the script will not complete. I have also attached the warnings. They are below the script. Any help is greatly appreciated. [code=c++] #include …

Software Development c++
Member Avatar for Ancient Dragon
0
134
Member Avatar for f_rele

Hi, I'm embedded c coder and relatively new to c++. I'm working with borland 6. What i'm trying to do is call my "SerialThread" named worker thread which processes the line. Call [code] //char input_sentence[9]; this includes the textline "ANGLE 360" char * buff = input_sentence; thread = _beginthread( SerialThread, …

Software Development c++
Member Avatar for f_rele
0
1K
Member Avatar for Gresakl

Hello folks I have a question to ask in regard to functions and passing information between them. I'm taking an problem solving class and well the instructor went from simple cout and cin to functions and has been really vague since the class is mostly on problem solving and not …

Software Development c++
Member Avatar for Lerner
0
1K
Member Avatar for rsuh2000

Design a program that reads several lines of text from the keyboard and prints a table indicating the number of occurrences of each letter of the alphabet (a to z) found in the text. If a non-alphabetic character is found, simply count how many were found and display that total …

Software Development c++ display
Member Avatar for Lerner
0
209
Member Avatar for abdulraqeeb33

hi, i am new to java... i need to start two programs in a server just after user clicks a button in the jform. for this i may require multi threading.. can any one plz give me a small example or a link where i can see threads created, each …

Software Development java
Member Avatar for abdulraqeeb33
0
114
Member Avatar for didi00

Hi, I have two questions, if someone can help me please I need it urgently!! Thanks to all! 1. Tree class Make a function that counts the number of nodes with two children in a binary tree. 2. List class Make a function that prints the elements of the list …

Software Development c++
Member Avatar for Lerner
0
100
Member Avatar for Moporho

I am stuck on a problem. I am given code and I am suppose to do the follwong sway fucntion. The last three lines of code in the function selection_sort perform an essential operation that is commonly found in sort algorithms. Replace those three statements with a call to a …

Software Development c++
Member Avatar for Moporho
0
251
Member Avatar for pinoyboi619

I need help with this coding because I am having trouble with a lab of my class. I am up for any hints/tips and techniques... and code if desired. Well I am hoping that someone will respond and thanks.

Software Development java
Member Avatar for jasimp
0
66
Member Avatar for Seamus McCarthy

[code = cplusplus] int serials[MAX_PAX]; for (int i = 0; i <MAX_PAX; i++) { int max = 0; serials[i] = randomnum(); // store random num in int serial max++; cout <<"serial" << serials[i]; break; } [/code] I have a return function that generates a random number, i want to store …

Software Development c++
Member Avatar for Seamus McCarthy
0
99
Member Avatar for KeeperOfTime

Hi I'm programming under DOS 6.2. I want to switch the polarity of the interrupt source 5 from "high active" to "low active" so an IRQ appears on a negative edge instead of a positive edge (or level, in my case it's edge). Does anybody know how to do this …

Software Development c
Member Avatar for KeeperOfTime
0
126
Member Avatar for computer engW

Hi Everyone , I have 3 questions that need explaination (only explain),then i will try to solve them. [COLOR="green"]Q1[/COLOR]: Let g(x,n) = 1 – x2/2! + x4/4! - … …+(-1)n x2n /(2n)! Using a loop write a program to calculate g(x,n). [COLOR="green"]Q2:[/COLOR] write a program that accepts a positive integer …

Software Development c++
Member Avatar for computer engW
0
81
Member Avatar for dimples09

> Using a Binary Search Tree > Using the LinkedBinarySearchTree class in the jss2 for chapters 12 and 13, write a program that exercises all of the operations except: > removAllOccurrences > findAgain > replacement > Details > Your program will read instruction from the file: numbers.txt > The file …

Software Development java
Member Avatar for dimples09
0
165
Member Avatar for ITech
Member Avatar for suskumarsus
0
189
Member Avatar for welbyobeng

Hey I am a newbie in java and I was wondering if someone can help me. Where would I place [QUOTE]int [] qDifference = new int [3]; for(int i = 0; i < 3; i++) { qDifference[i] = q[i + 1] - q[i]; }[/QUOTE] in the code below to show …

Software Development java java-swing
Member Avatar for welbyobeng
0
90
Member Avatar for wleemitch

Hi everyone, big time c++ newbie here, in fact I don't know too much at all about what I'm doing. But what I am trying to do at this point is read into a file created by my program, check and see if a name to be inputed is exists …

Software Development c++
Member Avatar for wleemitch
0
98
Member Avatar for only me

hi friends This is my assignment I have to send it today I have many tests please You are my hope befor I drop this course (C++ course) Please try to help me to solve it [/COLOR][/COLOR][/COLOR] Write a C++ program that repeatedly display the following main menu : The …

Software Development c++
Member Avatar for deeed
0
313

The End.