43,549 Solved Topics

Remove Filter
Member Avatar for
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 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 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 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 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 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 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 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
Member Avatar for TheFueley

This one of those typical Rational number programs. It takes a user-supplied fraction and then another. Then it does the 4 basic math operations on it. Finally it compares the fractions to each other. I have the program working fine. I just want to know how to fix this warning …

Software Development c++
Member Avatar for TheFueley
0
182
Member Avatar for q8_dreamy

Hi can any one help me please, How can I go to a control according to text of specific one for example if I have drop down list contains 2 items 'Yes' & 'No' I want to to go to textbox1 if answer is Yes and go to Textbox2 if …

Software Development vb.net
Member Avatar for Jx_Man
0
126
Member Avatar for demroth

I have been reading some of the posts on reading integers from files but I have not seen any on reading integers from formatted files. I have a file which is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each number into an …

Software Development c++ file-system
Member Avatar for demroth
0
144
Member Avatar for mcgarry101

Hi, I am writing what should be a very simple app to play wav files directly from my hard drive. As a test, i have run the simple code below <code> My.Computer.FileSystem.CurrentDirectory = "C:\Windows\Media" LbClips.DataSource = _ My.Computer.FileSystem.GetFiles( _ My.Computer.FileSystem.CurrentDirectory, _ False, _ "*.wav") </code> however i am getting when …

Software Development hard-drive vb.net
1
59
Member Avatar for abdulraqeeb33

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; /** * * @author 007 */ import java.io.*; import java.sql.*; import java.util.*; import java.util.Random.*; import java.net.*; import java.lang.String.*; import java.io.InputStream; import java.lang.Object.*; import java.net.ServerSocket.*; public class aptserver implements Runnable{ …

Software Development client-server java
Member Avatar for abdulraqeeb33
0
244
Member Avatar for emilio

is there a way to uncheck all buttons at toolstripmenuitem without doing it separately for each button like this[CODE] toolStripMenuItem7.Checked = false;[/CODE] ?

Software Development
Member Avatar for emilio
0
80
Member Avatar for blade321

from livewires import * x= read_number() y= 1234 while x <> y: print read_number() Why wont the loop stop when i enter 1234 ? any help greatly appreciated!

Software Development python
Member Avatar for jrcagle
0
109
Member Avatar for linux0id

Hello everyone! I have a function to get data from a database. I want to put it into matrix of some sort so that I can have something like a spreadsheet (multiple columns and rows, depending on data). It needs to be dynamic. Ok code so far - [CODE]//--------------------------------------------------------------- template …

Software Development c++
Member Avatar for linux0id
0
125
Member Avatar for echoestroy

I need a do while loop in this but when i try to put one in it errors alot could someone show me the proper placement please. i use dev C++ compiler [code] //Login #include <iostream> #include <string> #include <conio.h> using namespace std; int main() { cout << "\tWelcome to …

Software Development c++
Member Avatar for echoestroy
0
104
Member Avatar for rysin

Hey guys. Ive got a problem with a simple hello world script. Im a perl beginner so bear with me. Im running mandriva linux if it matters. Also this file is saved under /home/rysin/documents. Code [CODE]#!/usr/bin/perl print "Hello World\n";[/CODE] When I go into the command line and use the perl …

Software Development perl
Member Avatar for Uninverted
0
101
Member Avatar for Run.[it]

..for manipulation in the main part of the program. Basically Im trying to create a Class function that asks the user to enter in 3 different teams and their nationalities and then redisplay them when the main calls that function. [code=c++] struct squadre { string teamn; string nat; } clube …

Software Development c++
Member Avatar for Run.[it]
0
130
Member Avatar for NinjaLink

Hey guys, I'm here once again! I need help for something that is simple, but I'm not getting the results I should be getting! I want my output to look like this: [B]Enter hours worked: 44 Enter pay rates: 10 Hours worked: 44 Pay Rate: 10 This week's salary: 460 …

Software Development c++
Member Avatar for CoolGamer48
0
133
Member Avatar for swapna7999
Member Avatar for Jx_Man
0
94
Member Avatar for LightSystem

Hi there, Im new to this site, and I just have a question of something that I have been trying lately in the C language. I need to put a whole array in a shared memory file (using POSIX). I have no problems putting simple int* in shared memory. I …

Software Development c
Member Avatar for LightSystem
0
134
Member Avatar for wrichardson530

I need some type of code that does a check, to make sure the the inofmration eneted is text and no numberic data is ented. This is for a name field. I know of the isnumeric check, but is there other ways doing checks similar to that. I'm doing error …

Software Development visual-basic
Member Avatar for Jx_Man
0
102
Member Avatar for rrocket

I have a count set up in a SQL view set to '*' with the alias set to 'Cn'. I can get the column name with: [code=vb] grd.columns("columnName") [/code] But it does not work when I use the alias... How can I pull use alias instead of the actual column …

Software Development visual-basic
Member Avatar for rrocket
0
84
Member Avatar for swapna7999

hi anyone know how to call/run a vb application from a php page

Software Development php visual-basic
Member Avatar for swapna7999
0
247
Member Avatar for alihassan

hello can any one tell me how print a specific in windows notepad using userdefined keyboard. like windows xp keyboard it operate like a original keyboard

Software Development
0
56
Member Avatar for K504K

[B]Background:[/B] Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered …

Software Development java
Member Avatar for K504K
0
194
Member Avatar for aminit

Hello : Is there any idea to add icons inside list box,,,??? Thanks

Software Development
Member Avatar for Jx_Man
0
110
Member Avatar for mrgreen108

After looking at the same few lines for an hour now, I cannot figure out why the user named input file isn't opening and the user named output file isn't even being created. I used the debugger in visual studio 05 to figure out the input file isn't being opened …

Software Development c++ file-system visual-studio
Member Avatar for mrgreen108
0
294
Member Avatar for marti3a3

I'm trying to write a program that prompts a user for a radius value, then uses class data to return info of a sphere based on that radius. I believe my problem lies in declaring what information goes into what class member, but I'm not entirely sure. How do I …

Software Development c++
Member Avatar for Ancient Dragon
0
95
Member Avatar for billabong2388

Hi guys, Quick question. Im having some problems with advanced sorting. Say i have the following list: [number] + [text] 3 text_red 7 text_yellow 9 text_blue 1 text_pink 3 text_black 6 text_orange 7 text_white Firstly the list needs to be ordered via the number at the front of the list …

Software Development python
Member Avatar for vegaseat
0
155
Member Avatar for Seamus McCarthy

[code= c++] #include <iostream> using namespace std; int main() { char A,B,C,D; const char capacity = 120; char letter[capacity]; int pax = 0; int y =6; for (int i = 0; i < capacity; i++) { if ( y == 6) { char letter[] = {A}; pax++; break; } else …

Software Development c++
Member Avatar for Seamus McCarthy
0
106
Member Avatar for CoolGamer48

Hey, I keep getting this error: error LNK2019: unresolved external symbol "public: struct IDirect3DDevice9 * __thiscall Engine::GetDevice(void)" when I try to compile my project. MSDN says that IDirect3DDevice9 uses d3d9.lib, but it still won't work even with that lib in additional dependencies. (using VC++ 2008) I tried linking to a …

Software Development c++
Member Avatar for CoolGamer48
0
126
Member Avatar for TuX4020

Hi all, this is my first post here and it comes out of frustration more than anything. I've been searching high and low for any insight into my problem and still can't seem to get it right. In the interest of full disclosure, this is a part of a homework …

Software Development algorithm c++
Member Avatar for TuX4020
0
3K
Member Avatar for paolomontero

Hi Im having a problem with the following piece of code: #include <iostream> using namespace std; #define something 33; void main() { if (33 == something) { cout << "equals" << endl; } } Im using Visual C++ 2008 (not Express) and I get 2 errors and 1 warning when …

Software Development c++
Member Avatar for Salem
0
86
Member Avatar for komany

Hello. I need help with a thing. I have a file (sound file) I will send via controller area network and therefore can only send data about 8 byte or 8 vector as data [8]. This is sent away with the command sendfile () And I need help how I …

Software Development c file-system
Member Avatar for komany
0
333
Member Avatar for Traicey

Assembly is one of the least langauges that I havent done, Have heard about it and its complications, but I neva get to know what do u use it for or in which areas does the language alone excel for example C++ is more suitable for games.... know what I …

Software Development assembly
Member Avatar for Traicey
0
78
Member Avatar for swapna7999
Member Avatar for swapna7999
0
99
Member Avatar for swapna7999

i need to generate an id card for that i need to display the details such as name etc which must be accessed from a mysql database and now i know how to connect to mysql database and use select statement but dont know how to display the data accessed …

Software Development visual-basic
Member Avatar for swapna7999
0
467
Member Avatar for swapna7999

how do i make my vb application an exe file

Software Development visual-basic
Member Avatar for Jx_Man
0
72
Member Avatar for Reiko

Hi, i am currently writing a code for a login screen. However I am getting a "run time error 424" object required. I have had very little experince using databases for programming. Any help on how to correct the issue would be greatly appreciated. I am using visual basic 6 …

Member Avatar for VidVB6
-1
230
Member Avatar for Phan

Hey, everyone, I am another student seeking help for a programming class. What I am having trouble with specifically is reading from a file. The program itself involves entering in some store products with information such as: product name, product ID, etc. After everything is entered, the program is supposed …

Software Development app-store c++ data-structure file-system ios
Member Avatar for vmanes
0
109
Member Avatar for swapna7999

im getting an error while using Text1.SetFocus the error is invalid procedure call or argument i used this in the form load and i suppose it is used to bring the cursor in the textbox during form load

Software Development visual-basic
Member Avatar for boomba23
0
813
Member Avatar for emilio

can i generate an exe file from my c# project so it can run on a pc without .net framework ? i tryed to use the exe file in the bin folder, it's not working even on my pc

Software Development
Member Avatar for emilio
0
90
Member Avatar for anerchy

i just wanted to make a program which reads 5 numbers then writes this 5 number. that's it but i couldn't. something's wrong and i couldnt find what is it. #include <stdio.h> void fun1(void) { int a=0,b=5,c=0; int d[5]; for(a=0;a<b;a++) { printf("%d\n",d[a]); } } int main() { printf("enter 5 numbers"); …

Software Development c++
Member Avatar for anerchy
0
105
Member Avatar for Beagle

Hi folks, I'm just learning C++ (using Borland C++ Builder) and I am having difficulty reading data from a text file created in Excel. I am trying to read the data into vectors which I can then use in a model that I am building. The problem is that I …

Software Development c++
Member Avatar for Beagle
0
118
Member Avatar for kartouss

Hello, I have a function which calculates time for a specific operation and prints the time... However i want to call the time in another function and display its value... The code is as follows:- [code=c++]int encrypt() { double encryptTime,Add,sub,sft,mix; // add + sub + sft + mix calculations encryptTime …

Software Development c++
Member Avatar for kartouss
0
238
Member Avatar for Roebuc

Just a quick question, I am working with classes and I was trying to rename one as an array, ie: [code] addressType addresses[n];[/code] But I have decided not to make it an array. So is this a legal statement? [code] addressType addresses;[/code] Or does that only work for arrays? Thanks

Software Development c++ legal
Member Avatar for Roebuc
0
99
Member Avatar for NinjaLink

My goal is to write a problem that will read in a length in feet and inches and output the equivalent length in meters and centimeters. As noted, There are 0.3048 meters in a foot, 100 centimeters in a meter, and 12 inches in a foot. I am only having …

Software Development c++
Member Avatar for NinjaLink
0
137
Member Avatar for VernonDozier

Hi all, I am trying to install MySQL++ on Windows XP and use it. I was able to install it in Linux because the website: [url]http://tangentsoft.net/mysql++/[/url] provided an RPM that built the libraries for you. As far as I can tell, no such thing is supplied for Windows. Supposedly, MySQL++ …

Software Development c++ mysql
Member Avatar for VernonDozier
0
301

The End.