43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Jnk

Hello I am a new to C++ and have some questions. I have two classes called Point and Square like this: [CODE] class Point { int x, y; public: int getx() const { return x; } int gety() const { return y; } Point(int a, int b) { x = …

Software Development c++ linked-list oop
Member Avatar for Jnk
0
457
Member Avatar for Kalpesh Rajai

How To Create A Age Calculator In Visual Basic 6.

Software Development visual-basic
Member Avatar for happygeek
0
50
Member Avatar for mallikaalokam

package class import java.io.*; import java.lang.*; import java.util.*; package Yo public class C { String s,f,d; C(String s,String f,String d) { this.f=f; this.s=s; this.d=d; } void displayj() { System.out.println("1st arg passed:"+" "+s); System.out.println("2nd arg passed:"+" "+f); System.out.println("single arg const:"+" "+d); } } main class import java.lang.*; import java.io.*; import java.util.*; …

Software Development java
Member Avatar for rushikesh jadha
0
197
Member Avatar for emidevil

Hi. im kinda new here . i just want some help with this code i cant seem to figure out my problem, i already declared a constructor but it keeps on saying cannot find symbol when i compile it -_- import javax.swing.JOptionPane; import java.io.*; public class Sample_Thread { public static …

Software Development java java-swing oop
Member Avatar for DavidKroukamp
0
574
Member Avatar for sonicx2218

I like coding, though I'm really stupid, and not very good at it. I'm having trouble figuring out how to remove spaces from a String. I'm such a noobie.. if anyone wants to take a few min to educate me i'd appreciate it. The thing i was attempting to do …

Software Development java
Member Avatar for stultuske
0
119
Member Avatar for scheppy

I'm having some trouble using getClientproperty() to get a string value btw, im using java 1.4.2, so no autoboxing I know how to get int values, and here is an example, which works perfect in my program, [CODE] cx = ((Integer) btn.getClientProperty ("cx")).intValue (); [/CODE] but when i try to …

Software Development java
Member Avatar for JamesCherrill
0
257
Member Avatar for debasishdeb

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package progressbar; /** * * @author DEBASISH */ import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.event.ActionEvent; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class Progressbar { JProgressBar jprogressbar=new JProgressBar(); JButton jbutton=new JButton("Retrieve information"); …

Software Development java java-swing
Member Avatar for zeroliken
0
132
Member Avatar for sharathg.satya

Is exception handling useful in compile time errors logical errors and even runtime errors?

Software Development java
Member Avatar for dewitt-joyce
0
289
Member Avatar for ohblahitsme

Hello. I've been working on this program that reads input from the user and attempts to put it in a file called profile.txt I've got it to work (I checked this by making it output the file to the terminal), and from what I can tell, it does create the …

Software Development c file-system legal
Member Avatar for ohblahitsme
0
172
Member Avatar for sspweb

I have read other posting about this and I can not figure it out. Application runs fine on the computer that I used to create it. The application has 3 functions: Button1...locate and preview an image file. Button2...creates an email with html link...creates an html page file...ftp's the image and …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
234
Member Avatar for sharathg.satya

Is exception handling useful in compile time errors logical errors and even runtime errors?

Software Development vb.net
Member Avatar for sharathg.satya
0
209
Member Avatar for renzlo

Hi All, I have a folder, here's the folder tree: [CODE]\---DC20120127-00000831 \---PABO20120127000017 \---AT | V20.txt | V23.txt | +---2012033 | 00000002_00000000.tif | 00000003_00000000.tif | 00000004_00000000.tif | 00000005_00000000.tif | \---INVALID IMAGES 00000001_.tif 00000002_00000001.tif 00000003_00000001.tif 00000004_00000001.tif 00000005_00000001.tif[/CODE] I have coded a program that will compare if the total count of tif in …

Software Development vb.net
Member Avatar for codeorder
0
254
Member Avatar for jamie6441

Hello, I'm a beginner at Java and trying to get to know programming and one day work my way up developing android apps. Well I was trying make this program that would read in data from a txt file like this: [img]http://i42.tinypic.com/2vvkokj.png[/img] I wanted the firstname, lastname, id# and dob …

Software Development android file-system java
Member Avatar for stultuske
0
290
Member Avatar for MichaelCJ10

I need help!!! im trying to get my sentinal to stop counting as my last value passed. Im imputting a value for a house,and its calculating a total price based on interest and stuff ive set up according to the house value. then pressing -1 to go onto the next …

Software Development java
Member Avatar for DavidKroukamp
0
264
Member Avatar for Nevicar

Hi everyone, I haven't really found much here on how to input into functions and I'm looking for more information on it. Basically my problem is this: I have to make a function that calculates feet into yards, and I'm trying to find out how to make it so I …

Software Development c c++
Member Avatar for frogboy77
0
229
Member Avatar for MasterHacker110

I have wrote this program in C++. But it doesnt have the output that it should. Instead of putting out +-++-+ it puts out ++-+++-+++++++-+++-+++--+++. That is just an example it will ofcourse have defirent output but it makes more characters then there is in the origanal string when i …

Software Development c c# c++ encryption ios
Member Avatar for vmanes
0
188
Member Avatar for kungfubambi

Hi, I'm pretty new to Python. Working in 2.4 due to company restraints. I'm trying to use os.path.walk to work through a tree directory, and perform different actions on the files based on the name of the file. I thought if I used "startwith" it would indicate that files only …

Software Development python
Member Avatar for kungfubambi
0
245
Member Avatar for aashishsatya

I was trying to input strings into a structure I made, but I couldn't succeed. I use Visual C++ 2010 Express Edition. The code is this: [CODE]#include<iostream> #include<conio.h> #include<stdio.h> #include<string.h> using namespace std; struct schrec { char childname[20]; int childage; }; void main() { schrec record[20]; int n; cout<<"How many …

Software Development c++
Member Avatar for jaskij
0
690
Member Avatar for ram619

The output is 2011. Can anyone plz tell me how it is so ????[CODE=c]#include<stdio.h> #include<conio.h> void main() { char c[]="GATE2011"; char *p=c; clrscr(); printf("%s",p+p[3]-p[1]); getch(); }[/CODE]

Software Development c
Member Avatar for ram619
0
121
Member Avatar for pwolf

Stuck again, this time my problem is getting the dictionary to be sorted in ascending order. Please Advise! the following is what the task says: """ A sparse vector is a vector whose entries are almost all zero, like [1, 0, 0, 0, 0, 0, 0, 2, 0]. Storing all …

Software Development programming-construct python
Member Avatar for pwolf
0
2K
Member Avatar for fishsticks1907

I could get this binary search to work... no matter what number i enter it will say "not found" even if its in the array; until, i sorted the array before searching. So, when making an array to search, i always have to sort it first? [CODE] #include <iostream> #include …

Software Development c++
Member Avatar for fishsticks1907
0
137
Member Avatar for mallikaalokam

[CODE]import java.lang.*; import java.io.*; import java.util.*; interface Batm { final static int minbal=500; abstract void withdrawl(); } class Bal implements Batm { int amt,cbal; Bal(int amt,int cbal) { this.amt=amt; this.cbal=cbal; } void withdrawl() { if(cbal>minbal) { cbal=cbal-amt; System.out.println(amt+" "+"withdrawn"); } else { System.out.println("bal nt sufficient"); } } } class Atm …

Software Development java user-interface
Member Avatar for JamesCherrill
0
297
Member Avatar for bonzo2008

Hello I have made a smal databas but some where I have got a error when I add a name surname (jones), forename (roger), phone 34567 it is ok but the problem is that when I edit another one with same surname(jones) and a different forename (david) same phone then …

Software Development visual-basic
Member Avatar for Jx_Man
0
99
Member Avatar for renzlo

Hi All, I'm having a problem with this one. This is my directory tree: [CODE]MAIN FOLDER -Second Folder -Third Folder -2012011 (folder) -INVALID (folder)[/CODE] My input path in FolderBrowse is MAIN FOLDER. Now I used the code: [CODE]MsgBox(IO.Directory.GetDirectories(myFolder, SearchOption.AllDirectories)(0).ToString)[/CODE] It throws an error. I just want to process the 2012011 …

Software Development vb.net
Member Avatar for codeorder
0
111
Member Avatar for Lopoc

Hello This is my first post so I’m sorry if I ramble and don’t explain my issue clearly. I am binding a dataset (dsTest) with a table called “TempResult” to a datagrid (DatagridView1). The purpose of the datagrid is to display test labels (set elsewhere in the software) and to …

Software Development dataset open-source vb.net
Member Avatar for Lopoc
0
154
Member Avatar for avinash_545

Hi everyone. Suppose I have my database in postgresql, with around 100 tables. I would like to know if there is any way to know which table(s) is affected after running a specific query. For example, if I add a new row, that software for example, should be able to …

Software Development monitoring-software postgresql
Member Avatar for pritaeas
0
97
Member Avatar for FALL3N

I want to run a multiline AppleScript command from a Python script. For a singleline command I can do: [CODE]def stupidtrick(): os.system(cmd) cmd = """osascript -e 'tell app "Finder" to sleep'""" stupidtrick(); [/CODE] however I want to run multiline commands, (such as with multiple 'tell' statements, as in [ICODE]tell application …

Software Development python
0
169
Member Avatar for inspire_all

i am a c++ beginnner nd i am not getting the point why class is defined before main()function i.e globally:-O

Software Development c++
Member Avatar for Ancient Dragon
0
160
Member Avatar for Skeldave

Hi, I am trying to add buttons to a Panel which is located on JFrame after the JFrame has been set to visible. My aim is to be able to click "File --> Load" then have it loop through a folder of images, creating buttons which have the images on …

Software Development java
Member Avatar for JamesCherrill
0
285
Member Avatar for harinath_2007

Hi folks. I have a java application which plays a audio file . SO before the audio file or sound is played by my java application , i want to mute all other application sounds like Windows media player , VLC player (etc) if those are currently playing at that …

Software Development audio java
Member Avatar for harinath_2007
0
253
Member Avatar for rushikesh jadha

please explain me the life cycle of servlt.

Software Development java
Member Avatar for DavidKroukamp
-1
124
Member Avatar for rushikesh jadha

Plase tell me how to use system tray icon and toolbar in java.

Software Development java
Member Avatar for rushikesh jadha
-1
83
Member Avatar for rushikesh jadha

In linux whenever i run my gui java programe it does not show Image My Code Is As Follows look at line 77. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class bank implements ActionListener { JFrame mainframe; JMenuBar mbar; JMenu file,view,help,edit; JMenuItem newacc,exit,login,helpcontent,cust_detail,emp_detail,delEmp,delCust,addEmp; public bank() { mainframe=new JFrame("Bank Application"); try …

Software Development gui java java-swing
Member Avatar for rushikesh jadha
0
228
Member Avatar for rushikesh jadha

how to set up frame such that user cannot click other side than the current active frame if click then frame prompt for actvation. Thankx in advanced.

Software Development java
Member Avatar for DavidKroukamp
0
122
Member Avatar for rushikesh jadha

What is difference between transaction of saving account and current account? I Am New Please Help Me. Thanks .:$

Software Development java
Member Avatar for rushikesh jadha
0
101
Member Avatar for Gaiety

I have created few files and Makefile in the same place. I have read in below link about the special variables $@ and $< and used as so. [URL="http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/"]http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/[/URL] but when the say make i keep getting the error [ICODE]gcc -o calc *.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start': (.text+0x18): undefined reference …

Software Development c
Member Avatar for Gaiety
0
184
Member Avatar for Akay2

Hello guys i have a problem with my for loop it should create a 100 by 100 field with 10x10 squares each squares are created by 4 vectorpositiontextures. it works fine until the 5th line there i have only 96 squares and then no more other squares. sry it is …

Software Development audio
Member Avatar for Akay2
-1
308
Member Avatar for arathy nair

Hi Friends, I am having a pdf which has to be watermarked.But the code below I use is writing contents of my PDF into another PDf which is being watermarked.Please suggest any ideas which helps me watermark the same pdf without creating a new one. Please find the code below. …

Software Development image java pdf
Member Avatar for peter_budo
0
170
Member Avatar for FUTURECompEng

Code attached in the attachment is not my own and was supplied by an instructor. I am to create a word morphing game. The computer will provide a starting word and an ending word. I am to enter a new word, that either adds or removes a letter from the …

Software Development gaming java user-interface
Member Avatar for JamesCherrill
0
949
Member Avatar for apanimesh061

I want to make a project on Audio Fingerprinting. There will be recorded file preferably .wav, that will be matched with all the audio files present in a song database and will return the best match. First I wish to try this on my own computer, then I will try …

Software Development audio
Member Avatar for shalshal
0
153
Member Avatar for engineerchica

Hello! I am working on a problem to count characters (without using strings) and I got my program to work! However, I got it to work before I put the code that counts characters into a function (countChar), which is required for this assignment. I'm not sure I understand how …

Software Development c++
Member Avatar for engineerchica
0
190
Member Avatar for franmaez_0716

hi! i need help by creating a program that will divide using loops wihout using any division or multiplication sign. the allowed signs are just addition and subtraction. Thank you! i will post my program if someone replies with this.

Software Development c c# c++
Member Avatar for franmaez_0716
0
3K
Member Avatar for jaymayne

Need help making a module that sorts 4 arrays this how it started out void dataSort (float sLengthArray[],float rSlopeArray[],float speedArray[], float size) { void swap (int *x,int *y); int pass,j; for (pass=0;pass < size-1; pass++) { for (a = 0;j< size-1; j++) { if (slengthArray[j] > slengthArray[j + 1]) { …

Software Development c
Member Avatar for zeroliken
0
257
Member Avatar for shaunchu

So, I'm doing a test of strtok and my csv reader to fill an array of structs. Each line in the csv has a bunch of country information, and I'm only pulling the 2nd, 3rd, 8th, and 9th fields in each line to make the structs. My biggest problem at …

Software Development c
Member Avatar for shaunchu
0
176
Member Avatar for Thermalnuke

Hey I am having a problem with this java program im trying to accomplish.... I know how to count the characters or letters in a word, but how do you count every other word and display that letter in a row. Im trying to do an encryption program for example …

Software Development encryption java java-swing
Member Avatar for Thermalnuke
0
138
Member Avatar for LdaXy

back again with another question. i created a simple window in WIN32 mode, but it's giving me a linker error that i cannot isolate. [CODE]#include <windows.h> #include <tchar.h> #include <stdio.h> //defined this for all processes HINSTANCE hInstance; LRESULT CALLBACK WinProc(HWND hWnd, UINT msg, LPARAM lParam, WPARAM wParam); //WndProc Prototype. always …

Software Development c++ windows-api
Member Avatar for zazacofi
0
237
Member Avatar for jt_murphree

So I am trying to create a console app to parse text files. I am using a streamreader to read the text in until I reach end of file. The text file I am reading as 22945 lines. Right now I am just trying to read the entire file and …

Software Development
Member Avatar for jt_murphree
0
155
Member Avatar for sota

Hi, If i have to use managed code with unmanaged code. What are the possible risks? Thanks in advance. [CODE] cliext::vector<int> ^vec = gcnew vector<int>(3); [/CODE]

Software Development c++
Member Avatar for thines01
0
74
Member Avatar for Xenix-Hero

I have looked at several of similar topics and compared them with my code, but I don't see any of the same problems. Can someone else tell me if they see something wrong? Dev-C++ says "expected primary-expression before 'int'" and "expected ';' before 'int'" and that they are on line …

Software Development c++ ios
Member Avatar for Xenix-Hero
0
2K
Member Avatar for stinkypete

Does anyone have an algorithm that generates all 10-digit integers that have at least one digit repeated? Trawling through all 9000000000 of them and checking them individually is too slow. Thanks.

Software Development c++
Member Avatar for VernonDozier
0
928

The End.