43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
I want get a root of number in C# what library i must to insert and what command solve it Software Development | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
.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 | |
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 | |
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 | |
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 | |
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) … | |
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 | |
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 | |
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 … | |
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 |
The End.