43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for scias23

i want to extract 576 to hundreds = 5 tens = 7 ones = 6 my code does this purpose, but.. [CODE=java] h=num/100; t=(num-(h*100))/10; o=((num-(h*100))-(t*10)); [/CODE] i want to rewrite my code using loop and modulus operator.. help guys. thanks btw: i'm writing a program that converts numbr to w.ord-/.

Software Development java
Member Avatar for scias23
0
161
Member Avatar for leroi green

hey all, I have a form where a user selects from a couple radio buttons. once THAT button is selected i want a new form to load where the user has to fill out personal info and submit. what's the best and easiest way to set this up? like: 1) …

Software Development vb.net
Member Avatar for adam1991
0
116
Member Avatar for awa

Hi, I want to make a python program which allows to read data from a file starting from a line with a certain keyword, skipping 4 lines, beginning to write the contents to an output file and stopping after n lines. I tried so far an input with the re.search() …

Software Development python
Member Avatar for awa
0
150
Member Avatar for especta

find replace hi i have 2 txt files in 1 i have stored numbers numbers.txt ex. 10 20 30 others i have stored word.txt 10,hello 20,welcme 30,text ...... i need to auto replace numbers with words .. plise help.

Software Development pascal
Member Avatar for especta
0
221
Member Avatar for Atove

Hi all; i'm trying to connect my program to an SQL Server Express database... however i am just getting an error that simply states: "Login failed for user 'sa'." Within my code this appears on: objConnection.Open() my code so far is: [code] Imports System.Data.SqlClient Imports System.Data Private Sub Form1_Load(ByVal sender …

Software Development sql vb.net
Member Avatar for Atove
0
121
Member Avatar for Seba Sama

Hi! I searched for this one with no results. I have an Access table with a column Date_of_birth witch has date/time format like dd/mm/yyyy. I develop a VB6 application that needs to read, write, update data in the mdb. INSERT: The user inserts this Date_of_birth in a textbox. I use …

Software Development visual-basic
Member Avatar for Seba Sama
0
115
Member Avatar for PcPro12

Ok, so I'm kinda new to programming, but I'm quick to grasp it. I like programming. Anyway, I'm trying to write a program that will do this. If a user types in a name in the first line of a textbox and clicks a button, the name will be wrapped …

Software Development vb.net
Member Avatar for PcPro12
0
201
Member Avatar for Der_sed

I know that an array matrix would have been better but Im taking a freshman course so coulnt use it. 1- Tic tac toe grid is defined from locations 1 to 9 2- For loop executes 9 times for 9 turns 3- A functions takes all 9 locations as argument …

Software Development c++
Member Avatar for DdoubleD
0
145
Member Avatar for kyosuke0

Iv always had trouble with templates and I always get the same error message "Error: Templates can only declare classes or functions." program is a template linked list class and I'm using the sun studio 12 C++ compiler linkedList.h file: [CODE]#include "nodeType.h" using namespace std; template <class Storeable> class LinkedList …

Software Development c++ linked-list
Member Avatar for DdoubleD
0
268
Member Avatar for rena0514

I have a program where i have to use partial array intialization to read data from a file and place it into an array...there is no example of this in my class book and i'm confused!

Software Development c++
Member Avatar for DdoubleD
0
114
Member Avatar for Nathan Campos

Hello, I'm trying to write my OS to an floppy disk, but when i try to boot up, Bochs says that i don't have any OS on that floppy, here is the command that i'm using to write: #1 Try: [code]C:\Assembly> DEBUG os.asm -w 100 0 0 1 -q[/code] #2 …

Software Development assembly
Member Avatar for NotNull
0
851
Member Avatar for elidotnet

I have some textbox to send one word to sql database. i want to fine this word in a coulmn that holding few words. i cant figure it out what the correct queary iv'e try the LIKE statement in many ways but still nothing. The word can be at the …

Software Development
Member Avatar for elidotnet
0
144
Member Avatar for bunnyboy

Can someone explain what am I doing wrong? I get "vector subscript out of range" error. Here is the sample ... [CODE=cplusplus] #include <vector> using std::vector; struct CUBE { int number; bool changed; }; int _tmain(int argc, _TCHAR* argv[]) { vector<CUBE *> cube; for (int i = 0; i < …

Software Development c++
Member Avatar for bunnyboy
0
4K
Member Avatar for parthmishra

Hii.. I am an IT student of final year.. I Have to make a major project with my team.. We have to make project with latest technology.. I have a very much commnd over C#.. so,i wanna make a application based project.. but I have no good project topic.. plz,give …

Software Development
Member Avatar for ddanbe
0
143
Member Avatar for Belthemet

[B]#Off topic[/B] When I was logging in, I have noticed 600,00x members registered on this forum. Congrats on the 600k! ;) Hello. My console game is going pretty well, even though I don’t have much spare time to expand it. I have some ideas I would like to add, but …

Software Development c++
Member Avatar for Belthemet
0
261
Member Avatar for pilipino93

Hi there. I was wondering how I would add another form to my Form1 in a WFA project. And then when I click on a button on Form1, Form2 pops up. I have no idea on how to do this and I was wondering if anyone knew =] Thanks for …

Software Development
Member Avatar for pilipino93
0
102
Member Avatar for Cory_Brown

Thank you in advance for any help here. This is my first post and I will try to phrase what I am thinking. I am trying to validate the entry of a field based on entry in a second field. If field "A" has value 1, 2, or 3 then …

Software Development
Member Avatar for Cory_Brown
0
122
Member Avatar for harshadap

I m doing Program for sudoku. The blank grid displayed but how to pass random integer values to that grid. here is my code: [code=java]import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import javax.swing.JFormattedTextField; import javax.swing.text.DefaultFormatterFactory; import javax.swing.text.NumberFormatter; @SuppressWarnings("empty-statement") public class Board { private static final Dimension FIELD_SIZE …

Software Development java java-swing
Member Avatar for harshadap
0
126
Member Avatar for staticvoyager

I'm trying to pull in a file name from another class... I have a three classes... My main class, a class called Transaction, and a class called Account. I have two sequential files. "CHECKING.TXT" or "SAVINGS.TXT" that I have loaded into arrays in my main class. I need to pass …

Software Development file-system vb.net
Member Avatar for staticvoyager
0
139
Member Avatar for elidotnet

Hello, im tryin to build some simple application using C#. im using the datagridview + the binding navigation. when im runing the app im available to delete and editing rows. after i click the save button its look like the app is saved the updates as long as the app …

Software Development
Member Avatar for kvprajapati
0
213
Member Avatar for papanyquiL

Hi everyone, I'm working on an app that needs to log all of the events of every control and place them into a checkedlistbox. For example, if you click a button on the form, it should show the information in the checkedlistbox like 'button1 Clicked: x amount of times,' and …

Software Development
Member Avatar for papanyquiL
0
136
Member Avatar for Epi23

Hey everyone, I'm just now learning c++ and was wondering if there was a way to loop this program so that I don't have to copy and paste it. I got it to work, but I was just curious if there was another way to do it. it just does …

Software Development c++
Member Avatar for Epi23
0
103
Member Avatar for vishalonne

Hi All I am trying to resize the button which is placed in a cell of GridBagLayout but FAILED...:( Like I want same size of every button (Please see the attached file for what I am getting as Output of my Program which is as follow - [CODE] import java.awt.GridBagConstraints; …

Software Development java
Member Avatar for quuba
0
294
Member Avatar for katwalatapan

Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling …

Software Development c
Member Avatar for Salem
0
139
Member Avatar for scias23

i just can't figure out what's wrong with this. 1. suppose i enter 9-3-1991 as the birthdate, this should return 18. but it returns 17. //wrong 2. suppose i enter 2-9-1991 as the birthdate, this returns 18. //correct what's wrong with my code? [CODE=java] private static int ageCalc(int mm, int …

Software Development java
Member Avatar for scias23
0
151
Member Avatar for C.O.D

Hello all, i am trying to put table column to array using Visual Basic 2008 form. As i do not need to update back values to database i have used DataReader. [CODE] Private Sub Button1_click (,,,,,,,,,,) Handles Button1.Click Dim cn As String cn="Data Source='C:\Temp\DB\DBaze.sdf' " Dim qry As String = …

Software Development open-source visual-basic
Member Avatar for C.O.D
0
120
Member Avatar for staticvoyager

Okay... So I've actually made it to the final project in my Intermediate Visual Basic class. Yet, I'm still feeling stupid - like I've never attempted any project at all. I think my main confusion in this project is that we're using two seperate sequential files. I CAN and HAVE …

Software Development oop vb.net visual-basic
Member Avatar for sknake
0
205
Member Avatar for polo_coins

I want get a root of number in C# what library i must to insert and what command solve it

Software Development
Member Avatar for ddanbe
0
163
Member Avatar for tripes

hi i want to create a csv file using [B]VB.net 2003 [/B]and save the data from an array in it... i have searched everywhere and i did not find a solution. please help :'(

Software Development vb.net
Member Avatar for sknake
0
992
Member Avatar for serkan sendur

by investigating the project i try to understand the references as to how they were added, as project or as dll. Only difference i found is in the properties of the references in the solution explorer. if a reference added as a dll, it has one more property named specific …

Software Development
Member Avatar for serkan sendur
0
673
Member Avatar for fazeleh

hello.... im sorry for my bad spelling ... i have a problem in saving the result of a metod in a file ... the result is an arraylist ... i dont know how to save it ! in way I save it ,file shows it "system.collection.arraylist" but it must show …

Software Development file-system storage
Member Avatar for sknake
0
126
Member Avatar for D_switch

ei guys i really need help on how to give an output like this: -1 -1 -1 -1 -1 0 -1 -1 -1 -1 0 1 -1 -1 -1 0 1 1 -1 -1 0 1 1 1 -1 0 1 1 1 1 0 1 1 1 1 1 …

Software Development c
Member Avatar for D_switch
0
164
Member Avatar for xfreebornx

i created a delete function to check for similar user id and delete one but it can seems to work, so i need your help please.. [CODE]#include<iostream> #include<algorithm> //for std::sort #include<string> using namespace std; struct student { int id; string name; string nationality; string gender; }; void insert(student array[],const unsigned …

Software Development algorithm c++
Member Avatar for xfreebornx
-3
453
Member Avatar for atch

Hi, I would like to ask a question and I'm quite certain that I'll get positive answer to that. When I've change some code in one file and press f5 (visual studio) it seems to me that all other files are being compiled as well as this one in which …

Software Development c++ visual-studio
Member Avatar for atch
0
80
Member Avatar for dasatti

Hi, I need already written code for a simple file and folder explorer in Java similar to Project Explorer in Net Beans IDE. Instead of writing it from scratch I hope I can find which is already written. It will be very good if it allows file/directory add, remove and …

Software Development file-system ide java
Member Avatar for dasatti
0
3K
Member Avatar for gkaykck

Of course i am a newbie in c# and not much experienced about programming, so this must be an easy thing but i just cannot find the solution. I've been working on a project in Visual.NET C# Express. I've built the main view first, then added database connections, then started …

Software Development
Member Avatar for gkaykck
0
151
Member Avatar for Ally89

Hi all I'm needing help with a question in my tutorial due tomorrow... I'm given this file which contains the following: toy201, Racing Car, AB239:2,DC202:2,FR277:2,JK201:1,YU201:1,EE201:1,FW201:1 toy101, Barbie Doll, AB139:2,DC102:2,FR177:2,JK101:1,YU101:1,EE101:1,FW101:1 toy301, Flying Kite, AB339:2,DC302:2,FR377:2,JK301:1,YU301:1,EE301:1,FW301:1 I am now to define a function that gives the following from the above file: >>>load_prods(filename) {'toy301': …

Software Development python
Member Avatar for Ally89
0
133
Member Avatar for roberto usu

I took the summer off from c++ and before that I had only taken one semester, so I am pretty rusty. I have this function that is supposed to add contacts into a structure of xbox gamer friends. At the end of the function It goes into an eternal loop. …

Software Development c++
Member Avatar for roberto usu
0
85
Member Avatar for msr

Hello, I want to search for a given char sequence in a string. For example: I have these strings: "xpto1", "asdxpto123" If the input is "xpto", the method I called "search" should have at its ouput a list with the strings that matched the input "xpto". In this case, both …

Software Development
Member Avatar for msr
0
91
Member Avatar for coud_ren_26

may someone give me a sample code of loop within a loop, and other that I may use for decision in my program.

Software Development java
Member Avatar for akulkarni
0
166
Member Avatar for foosion

I'm trying to parse xml, but am missing something. In the following, I can get the key, but not the value [code]from xml.dom import minidom xmlstring = '''<search ver="3.0"> <loc id="USAR0433" type="1">Paris, AR</loc> <loc id="USID0192" type="1">Paris, ID</loc> </search>''' dom = minidom.parseString(xmlstring) r = dom.getElementsByTagName('search')[0] res = [] for x in …

Software Development python xml
Member Avatar for foosion
0
114
Member Avatar for serkan sendur

.Net setup project outputs .msi file by default. i have some configuration files that i want to output along with .msi files. is that possible to add something to output of a setup project? Thanks

Software Development
Member Avatar for serkan sendur
0
100
Member Avatar for serkan sendur

All files or project outputs that are added to setup projects are wrapped into the final .msi file. what if i dont want it to wrap some certain files and want it to output them as they are? Is that possible? Thanks

Software Development
Member Avatar for serkan sendur
0
90
Member Avatar for baula

Helo frndz, I'm novice in shell scripting...I need ur frnd help to write a shell script for taking backups. This script should use cp command to take backups. Script can read the list of directories and destination directory from a file or ask user for this info interactively... Example: Only …

Software Development shell-scripting
Member Avatar for baula
0
221
Member Avatar for floydus

This is causing headache, the event [B]OnGetStatusEvent[/B] is never fired... I know it has to do with the fact it's encapsulated [B]inside class[/B]. The Event is a method of a com object, I did not implement it myself... The following code always work[I] if inside a windows or console application[/I]. …

Software Development
Member Avatar for floydus
0
116
Member Avatar for bgk111

Hello all, This will hopefully be a quick and easy answer. I am having some difficulties with multiple lists that have certain characteristics, so what do I have: 4 lists, all the same length that signify: [row] [coumn] [VAR1] [VAR2] So basically I have 2 variables at each location (row,col) …

Software Development dataset python
Member Avatar for bgk111
0
95
Member Avatar for ubi_ct83

Sorry for the messy tittle.i dont know what suit with my prob. i have posted a thread last time about string array and compare them with some data.seems like no solution for that,i want to try this way.i want to use double array. same case, i have a file with …

Software Development c file-system
Member Avatar for Salem
0
160
Member Avatar for tigrum

Hello I have a txt file with a pattern as below ============================================= Computer name: Abc IP address: 10.10.10.10 User name: user Last pin : Aug 06 2009 10:44:35 ============================================= Computer name: Def IP address: 10.10.10.11 User name: user2 Last pin : Aug 07 2009 10:44:35 ============================================= All I require is …

Software Development file-system python
Member Avatar for tigrum
0
317
Member Avatar for TotallyBroke

I have a DX scrolling banner running at the bottom of the desktop. The banner renders, as its backbround, anything beneath it. The problem is that if the background is renewed, I get a copy of the scrolling banner as its own background, even though I've made it invisible before …

Software Development c c# c++
Member Avatar for TotallyBroke
0
3K
Member Avatar for MaestroRage

sorry for the long title, but it pretty much sums it all up. I have a 2 test structures, and in one I have a 2d char array, which is essentially a 1d string list. However I can't seem to interact with it on the same level as I can …

Software Development c data-structure
Member Avatar for Tom Gunn
0
2K

The End.