132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cathy dow

what do you mean by robust in java?? please help me.

Software Development java
Member Avatar for JamesCherrill
0
83
Member Avatar for thornside

Hi, I need to know how to continue execution of code after throwing an exception. Has it got to do with where I place the throw statement? Thanks in advance.

Software Development c++
Member Avatar for thornside
0
10K
Member Avatar for gretty

Hi I have a bool function that should find whether a year was a leap year or not. But the function is not returning the correct years as a leap year. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; bool is_leapyear(int year); int main () { int a = …

Software Development c++
Member Avatar for gretty
0
117
Member Avatar for champnim

I am trying to communicate with my phone over a serial port by sending AT commands to it. While I'm able to write the command to it, I'm unable to read the reply. I am using overlapped I/O & using the WaitCommEvent to retrieve the result of the write command, …

Software Development c data-structure
Member Avatar for krishnampkkm
0
1K
Member Avatar for gujjar19

Hi, I am new to python. I am working on parsing text from a smi file . I want to extract only dialogues and want to ignore the timestamps (lines starting with <SYNC) for one case, e.g. Below is part of smi file <SAMI> <HEAD> <Title>ÁŠžñÀ» ÀûŸî ÁÖŒŒ¿ä.</Title> <Style TYPE="text/css"> …

Software Development file-system python
Member Avatar for gujjar19
0
3K
Member Avatar for monkey_king

Hi I stumpled upon some c-code, which syntactically is different from what I've seen before. [LIST=1] [*]first [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin) aux=*end, *end--=*begin, *begin++=aux; } [/CODE] Would this be the same as [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin){ aux=*end; *end--=*begin; …

Software Development c
Member Avatar for monkey_king
0
217
Member Avatar for tintincute

Hi I'm very new to C# and I'm working on a project in the office where I can practice. At the office I can open the project ok. But if I tried it at home in my own laptop, I'm getting an error. Yesterday I tried to add the reference …

Software Development c#
Member Avatar for tintincute
0
96
Member Avatar for cathy dow

What do you mean by portable in java?? PLEASE HELP ME....

Software Development java
Member Avatar for stephen84s
0
79
Member Avatar for SoulMazer

So, I had a quick question about having multiple arguments being read into a bash script. In the following script, if I type "./myscript -h", it returns "Hippo.". However, if I type "./myscript -h -k", the script returns only "Hippo." I would like to know how to have the script …

Software Development shell-scripting
Member Avatar for SoulMazer
0
110
Member Avatar for mirfan00

Hi I faced a very serios problem when I connect c++ with orcale. This is our project. I use c++ at front end and orcale at the backend. If someone know how to create a connection between them Please tell me. Advance Thanks.

Software Development c++ sql
Member Avatar for mirfan00
0
202
Member Avatar for ultrAslan

I have an assignment like that and I dont know how to begin... Could you pls help me. [url]http://www.cse.ohio-state.edu/sce/now/221/labs/writeups/lab07.html[/url]

Software Development c++
Member Avatar for Ancient Dragon
0
72
Member Avatar for mrclark

I Am Using VB.NET 2008 Express Edition, and am trying to make a program that controls the mouse position with a joystick on the a nintendo classic controller, which returns a value between [ -.54 ] and [ +.54 ]. I wanted so that the position vertically of the mouse …

Software Development vb.net
Member Avatar for Teme64
0
141
Member Avatar for effective

[CODE]#include<iostream.h> #include<string.h> #include<conio.h> const int len=30; enum contract{permanent,temporary}; class Employee{ protected: char name[len]; long int ID; double salary; public: Employee() **} Employee(char n[len],long int id, double s)** strcpy(name,n); ID=id; salary=s;} void setEmp(char [len],long int id,double s) ** cout<<"\nName of Employee: "<<name; cout<<"\nID of Employee: "<<ID; cout<<"\nSalary of Employee: "<<salary; } …

Software Development c++
Member Avatar for effective
0
69
Member Avatar for pydude94

im a first time programmer learning python from books and so far ive learnt how to create and define functions but once ive saved them, im not sure how to call them so that i can use them. it works fine when i type in the function name but only …

Software Development python
Member Avatar for pydude94
0
266
Member Avatar for rafaelbrizu

I have that funtion for generate sequence to the style 'hqhzaw', 'ebcpm', 'qtch', etc. (only letters) and according to 'lenght' [code=cplusplus] string random_letter(int length) { string s; for (int i = 0; i < length; i++) { s += char(rand() % 26 + 97); } return s; } [/code] I …

Software Development c++
Member Avatar for rafaelbrizu
0
105
Member Avatar for MrNoob

I m trying to find the biggest number in the array but problem is that it keeps returning one [code] #include <stdio.h> int FindBiggest(int *arr,int choice) { int i; int num=0; for(i=0;arr[i]<=sizeof arr;i++) { if(num<arr[i]) num=arr[i]; } return num; } int main(void) { int arr[]={0,5,3}; int result; result=FIND_NUM(arr,BIGGEST); printf("%d\n",result); getchar(); …

Software Development c
Member Avatar for jephthah
0
139
Member Avatar for poeticinsanity

I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into …

Software Development python
Member Avatar for poeticinsanity
0
224
Member Avatar for Podge

Hello, I am writing an app to read in an old file structure. It C++ this is how the code looks. I am trying to rewrite it in C# and can’t find any that will do it the same way. Here is how it should work. [code] // This is …

Software Development c c# c++
Member Avatar for ddanbe
0
118
Member Avatar for mg0959

I have written a program that is supposed to take a string via a socket connection and echo it back. This program is also run as a service. I can get a client program to connect to the service if the client program is on the same machine as the …

Software Development python socket-programming
Member Avatar for mg0959
0
153
Member Avatar for suretd

Good Day, I have an Abstract Class, Student, which has two child classes, FulltimeStudent and PartTimeStudent. I use the class, Test, to test how many credithours each student has and how much financial aid each student is getting. My output requests that firstly, i enter wheter a student is Full-time, …

Software Development java
Member Avatar for BestJewSinceJC
0
271
Member Avatar for serkan sendur

do you know any win32 smart device project tutorial?

Software Development c++
Member Avatar for Ancient Dragon
0
314
Member Avatar for DarthPJB

Hello once again, I've continued my engine somewhat and the rendering functions are now working fine thanks to Stinomus (feel free to applaud). However to enable it to load data I must use files containing strings describing objects in the game world. That in turn works perfectly and passes the …

Software Development c++ data-structure
Member Avatar for DarthPJB
0
237
Member Avatar for llemes4011

Hi, I'm kind of new to the world of streams in Java, and I was wondering - I have this Server/Client program, and I need to read Objects and Text streams. I tried making an ObjectInputStream, and a PrintWriter out of the Socket's InputStream, but when I tried to read …

Software Development client-server java
Member Avatar for llemes4011
0
79
Member Avatar for hughesadam_87

Hey guys, Have been working on this tiny simple code for an hour and can't figure out how to fix it. The code does this: Reads in 3-column, tab-delimited data file Adds "1000" in the fourth column to every line Writes out the 4-column file [ICODE]def columns(infile, outfile): f = …

Software Development python
Member Avatar for woooee
0
131
Member Avatar for lyardson

the exact diff between c++ and java technically........need to submit a assignment

Software Development c++ java
Member Avatar for mirfan00
0
284
Member Avatar for abhishek2301

Hello, I require a help on a basic issue. I have 2 classes and I want to have an interaction among the classes. Suppose my 2 classes are testA and testB. Now I want a handle of object pointer in each class to the other class. Like I want a …

Software Development c++
Member Avatar for mirfan00
0
141
Member Avatar for seemant_sun

which is the best compiler for C give me the download link

Software Development c c# c++
Member Avatar for jephthah
0
67
Member Avatar for serkan sendur

i need to install 3 different cabs for my pocket pc application; .net framework, device specific SDK, application it self, respectively. i want to create a single cab and i want to install these three with that single cab. i know it is possible but i couldnt do it. please …

Software Development
0
76
Member Avatar for DaveD3

Good Afternoon, I have developed an app in C# for my company. I install the app on a server then attempt to run it from a Windows XP box. I get a message that the publisher is unknown do I want to run the app. When I click run the …

Software Development windows-server
Member Avatar for DaveD3
0
123
Member Avatar for serkan sendur

is it possible to use windows application as a custom action for setup project? All the custom action examples i have seen so far were class library applications. i wonder if windows application is also possible?

Software Development
Member Avatar for serkan sendur
0
73
Member Avatar for Massena

I hate to be spamming the forums with this, but I've been banging my head at the wall for a few hours now, and I can't really understand what is going on. Here's the full program I'm running: [code=c++] #include <iostream> #include "math.h" int main() { std::cout << sin (3.141592653589793) …

Software Development c++
Member Avatar for ArkM
0
121
Member Avatar for hodge-podge

Alright, so I am very new to c++ and I just felt like doing a little encryption experiment. In about ten seconds of thinking I've decided that for my encryption I want to: Get the ASCII value of a string of text entered by the user, and store it in …

Software Development algorithm c++ encryption
Member Avatar for ArkM
0
150
Member Avatar for blackrobe

Hey all, I have a dumb question to ask :(.. I want to know how to create a shell script that reads input from the STDIN as default, but when [-o inputFile] is entered as an option, it will read the input from the inputFile. I want to do this …

Software Development shell-scripting
Member Avatar for blackrobe
0
121
Member Avatar for blackrobe

Hey all, I have a problem with using the grep command... Im trying to parse lines in a file and read only characters t,c,a,g lower or upper case...but i keep getting trouble in the outcome: for example axxxxtc should return atc but it doesnt... heres my code: result=`echo $line | …

Software Development shell-scripting unix
Member Avatar for blackrobe
0
153
Member Avatar for ddanbe

Hi all, I know how to drag and drop an image from one control to another. Code enough out there. It works fine, but I find the user interface a bit poor:'( I want my image to follow the mouse while held down. Found nothing that serves my needs on …

Software Development pc-peripheral user-interface
Member Avatar for Diamonddrake
0
743
Member Avatar for kylcrow

Hey guys, I am having issues understanding how exactly to mod something to avoid overflow. say i have this hash function: [CODE=c++] int universalHash(const string &x,int B) { long long sum; long long power; sum=0; pow = 1; for (int i=0;i<(signed)x.length();i++) { // cout << "sum= " << sum << …

Software Development c++
Member Avatar for ArkM
0
169
Member Avatar for brandongood

I am getting the error in the title of this post when I try to run my ColorFactory class. Can someone tell me where Im going wrong? Heres my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ColorFactory extends JFrame { //Fields of the class private JLabel messageLabel; …

Software Development java java-swing window-manager
Member Avatar for brandongood
0
415
Member Avatar for Kecy

I am writing a macro for an excel document. it takes a string from a list of strings in column "R" and searches ALL through column "J" to find the string. If it finds the string, it serches the columns "L" and "N" to find out if the numbers are …

Software Development visual-basic
Member Avatar for Jupiter 2
0
124
Member Avatar for bokz06

im having problem setting values into a String array.. it must be with a setter method (yes this is homework). i have created a Person class which u can set name, age, gender and then i created a Teacher class which extends person and further allows you to set ( …

Software Development java
Member Avatar for bokz06
0
7K
Member Avatar for perksieuk

Hi everyone I have been trying to combine the data from two seperate text files into a new text file. The code works OK and no errors are produced, but at the join between the two files, a few lines of data are left out. The same happens at the …

Software Development python
Member Avatar for Deepak.G
0
97
Member Avatar for dinilkarun

Hi All, I am using the .search function. [code=python] strValue="XXX" strTemp1="YYYXXX" strTemp= strTemp1.search(strValue) [/code] Python is not able to recognise the .search function. AttributeError: 'str' object has no attribute 'search' What should I import for this? Please help!

Software Development python
Member Avatar for scru
0
2K
Member Avatar for abu taher

I made a database project. when I run it another pc it was run. but when I see the report (in my project) it show a error msg. it is : error number: 713 application defined or object defined errro. another thing it is exe when i run it another …

Software Development visual-basic
Member Avatar for Jupiter 2
0
89
Member Avatar for ashokrajendran

Hi all, I'm doing the project, in which i'll get a string as response from the server. That string contains the xml content. I need to parse it and extract the required value of the xml tags... i have no idea about this, Kindly any one has a code to …

Software Development java xml
Member Avatar for kvprajapati
0
110
Member Avatar for ashishchoure

hi , can anyone tell how to define AND operator by regular expression. Actually I want to return match if and only if 2 substrings will appear in string. For example i have string "[B]Successful Logon: User Name: Administrator Domain: Logon ID: (0x0,0x154CB759) Logon Type:2 Logon Process: Advapi Authentication Package: …

Software Development c++ regex
Member Avatar for ArkM
0
340
Member Avatar for Saravanan07

Hello, Could someone help me to resolve the problem in my code. I'm currently developing a application and the edit function of the system has some flaws in terms of the syntax. This system is developed using VB.Net. [code=vb] Private Sub cmdEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Software Development vb.net
Member Avatar for Teme64
0
221
Member Avatar for Bhoot

Inorder to list all the workstations on a LAN, i have used NetServerEnum() after importing it. On running the program, it seemed to work fine. The two existing machines were detected correctly. However, i want the list to be refreshed whenever required (some refresh button). So i detached the wire …

Software Development
0
101
Member Avatar for omarzia88

i am new to c++ programing.can anyone tell me how to draw a line from a point to another point. if the coordinates of the points are given.in (x,y) please also tell me the header files which should be included in program. your comments will be highly appreciated.

Software Development c++
Member Avatar for ddanbe
0
141
Member Avatar for SEOKRU

Hi, this exception makes no sense to me: Cannot implicitly convert type 'object' to 'char[]'. An explicit conversion exists (are you missing a cast?) as you can see charQuery is char array and not an object: [code= c#] string searchedBand = this.txtsearchBand.Text; char[] charQuery = searchedBand.ToCharArray(); String[] dbQuery = new …

Software Development
Member Avatar for ddanbe
0
1K
Member Avatar for larryperl

Hi, I am writing a perl script and need some in extracting some data. Basically it is a Log Analyzer and there are multiple log files from where the data comes. i am done with the grep part of the userID with this code- [Code] #!/usr/bin/perl -w open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); …

Software Development perl session
Member Avatar for larryperl
0
348
Member Avatar for maheen123

how can validate empty data for text fields... i want to validate fields before inserting into database

Software Development vb.net
Member Avatar for Teme64
0
2K

The End.