43,549 Solved Topics
Remove Filter ![]() | |
Hello I am creating a bank account for an assignment and the account number must be automatically generated with consecutive numbers. I have written some code that works, but now I need to know how to use it in conjunction with my Account class, especially how to add it to … Software Development c++ | |
2-4. The framing program writes the mostly blank lines that separate the borders from the greeting one character at a time. Change the program so that it writes all the spaces needed in a single output expression. already google this, but what I got is a bunch of headache... so, … Software Development c++ | |
Jack loves to do jumping jacks. Create a simulation of Jack consisting of a stick figure and three buttons: start, stop, and quit. If the user clicks the start button, Jack begins jumping; if the user clicks the stop button, Jack stops jumping; if the user clicks the quit button, … Software Development python | |
I am having a little trouble ending my program when I click on my End Program button. The current code that I have keeps making the program freeze when I try to exiting via the button. Also, I am having some issues with my Auto Button not working. Any help … | |
So I'm trying to write a program that is due tomorrow. I am trying to overload operators and dealing with template classes. I have everything written already but keep getting this error whenever i try to compile the driver file: NOTE: proj4.cpp has #include "box.h" and box.h compiles fine, but … Software Development c++ | |
I know this thread has been done alot but i cant find anything that i think i would like to do i want to make a program in python i have a pretty basic understanding of python and i really like it but i want to make somthing thats going … Software Development python | |
Hello, i need some help with code, i need to be able to print something that function returns then i press button on panel1 it should return text to panel2 textctrl in wxpython. Here is some bit of code.(i just cut code that i think is needed for this) [CODE] … | |
Hi I keep getting an error when trying to assemble and run my code and would like to know why. It says there is a syntax error in line 21 and "directive must be in control block" error in line 23. The program is supposed to write a square made … Software Development assembly | |
Hi, I have visual studio 2010 ultimate and i have installed sap crystal reports for visual studio. its a free edition for visual studio 2010. while working on a project in which i wanted to create a report, it was giving errors.. but that's not a problem, now i don't … Software Development vb.net visual-studio | |
After trying to start writing my long paper "Programing, The Art" I noticed that, getting user imput, conditional statements, using escape charecters, exicuting system commands, and even declaring variables and using them so that they have use; these are all difficult outside of the domain of C and C++, even … | |
Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's … | |
So I had to make a program that calculates the volume of sound at a different distance, given a reference difference, and sound level, and the new distance. It works sometimes but depends on what values I put in. Much of the time it tells me the new volume level … Software Development gui java java-swing | |
why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget! | |
Hello I'm a vb.net programmer and I am learning java so I was trying to figure out what is "sender" (VB.net) keyword in java? sender is simply a keyword in VB.net, for example you have multiple buttons having the same event and the code but you differentiate them in the … Software Development java | |
class MapClass holds copies of class DataStruct so that instances of class Action only have to store the key value associated with the DataStruct: [CODE]struct DataStruct { friend bool operator< (DataStruct const &lhs, DataStruct const &rhs) { if (lhs.xData < rhs.xData) return true; else if (lhs.xData > rhs.xData) return false; … Software Development c++ | |
Can any one tell me why continue statement is not working in if ? i tried with following code [CODE] outA: if(userValue==randomValue) { int luck=s.nextInt(); int randNo=(int)(Math.random()*(userValue*2+(1))); int arrValue=point[i]; arrValue+=userValue; point[i]=arrValue; continue outA ; } [/CODE] but it shows error Software Development java | |
Hey so I've been working on a lab for my intro to software developing class and have been trying to get my program to work for several days now. It's a real basic program, im sure someone will be able to figure out the issue im having. Hopefully once I … Software Development gui ide java java-swing | |
[CODE]Imports System.IO Public Class LoginForm1 Dim password_guardada As String Dim user As String Dim pass As String Dim pass_desincriptada As String Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim erro As Boolean = False If UsernameTextBox.Text = Nothing Then MsgBox("Erro, não pode deixar o campo … Software Development vb.net | |
Hi, Im new at C# and im trying to make a booking system where i have a combobox on the first form. From that form i have to choose 1 out of 3 items. Depending on which item i choose i will come to another form. How can i get … Software Development c# | |
![]() | [CODE] #include <iostream.h> #include <stdlib.h> template < class ItemType > class stack { private : int top; int maxStk; ItemType *items; public : stack(); stack(int max); int isEmpty(); int isFull(); void push(ItemType newItm); int Pop(ItemType &Itm); }; template <class ItemType> stack <ItemType>::stack(){ top=-1; maxStk=500; items=new ItemType[500]; } template <class ItemType> … Software Development c++ first-post ![]() |
Hi guys, I have already posted a thread regarding this but no one has ever shed a light upon it. I want a program that searches for files (.docx, exe, ppt, txt) from all folders. Is this possible i the first place? If yes, then how? Software Development vb.net | |
Hi guys! Pretty easy question below From the code below 'data' is made by a column of numbers, let's say 12 numbers (see below) 56.71739 56.67950 56.65762 56.63320 56.61648 56.60323 56.63215 56.74365 56.98378 57.34681 57.78903 58.27959 [CODE]def block_generator(): with open ('test', 'r') as lines: data = lines.readlines ()[5::] for line … Software Development python | |
Guys I want to know to skip error massages like the JIT error messages during run-time. What I want in the program is that instead of the JIT popping out whenever an error occurs, I want to generate a msgbox instead of that JIT. Can anyone please help me, thanks... Software Development vb.net | |
This may be a rather simple thing to answer, but I am no programming expert. Let me explain my problem in detail: for this homework assignment I need to open up a file with simple text in it, format it so that each line is reduced to a certain number … Software Development algorithm c file-system | |
Hi all With the following SQL " Dim Query As String = "UPDATE JobName_tbl SET [JobDate]=@NewDATE, JobAddress=@Newaddress Where JobID=@ID" nothing happens nothing gets updated nor do I get an error. But as soon as I remove the [JobDate]=@NewDATE, it works fine. Hope someone can help me with this situation. Here … | |
Hi All, I am trying to do a search on a index/row number taken from a dataview i.e. I enter 379437 in the input box which I know has a index/row number of 6. Now when I replace the Rows(index) with a Rows(6) I get the results that I want. … | |
I'm not sure if my title makes sense, but I have an assignment and need some guidance on how to approach this. It's an Accounts Receivable program for ABC Hardware Company. I have a Master file with cust numbers, cust name and balance due. I also have a Transaction file … Software Development c++ | |
This is homework. I was writing a bash script that accepts a list of group names on the command line and produces a group report detailing the group id and the number of group members identified in /etc/passwd for each group. Output will look like: Group Report Group GID Count … Software Development shell-scripting | |
Hi guys i have a problem that i have a text file which contains very long text like : welcome to all, how are you doing, etc.. so i need to cut the text till each comma and put it in a separate file like i want to pu [welcome … Software Development file-system | |
convertHex changes all occurrences of %XX (XX are exactly two hexadecimal digits) to ascii characters. Returns the number of replacements made. Here are the rules: Except when defining your character arrays, you must use pointer notation for all c-string manipulation--no []'s allowed. You may use any function from the cctype … Software Development c++ | |
Hello everyone. I am trying to pull data from a file and show it on the screen. There is a condition in the file that says if it is a "payment" or "order". A "P" and an "O" in the first column. My output becomes an infinite loop. I have … Software Development c++ file-system | |
I was using getline() function and it was getting skipped. I searched through the forum and found the tutorial on how to flush the input stream but there is one thing that is still unclear to me : getline() uses newline character as a delimiter. So when a '\n' is … Software Development c++ | |
Hi, I'm trying to add new information, with several if loops, to a new file with append.() but I'm not sure that this works. The new file will also include some data from the f_file, that is why the if loops are there. [CODE]f=open('filename', 'r') new=open('filename', 'w') for data in … Software Development python | |
I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; … Software Development java | |
I am looking for a tool that will accept an address from the user and return a 9 digit zipcode as well as validate the address or suggest an address, like on fexed or ups website. Its got to work with vb.net and asp.net Is there a tool like this … Software Development vb.net | |
I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public … Software Development java | |
I want to parse command line arguments. Say someone gives me ./progname param2 [-price=50] [-size=10] [-weight=16] [-height=7] Square bracketed items are optional. Either none or exactly two of -price, -size, -weight, and -height can be specified. If none of them are specified, it should be taking default values for price … Software Development c++ | |
When I run my program following is my program: public class JasperReportsDemoApp { String reportSource = "c://report1.jrxml"; String reportDest = "c://HelloReportWorld.html"; public JasperReportsDemoApp() { Map<String, Object> params = new HashMap<String, Object>(); params.put("reportTitle", "Hello Report World"); // params.put("author", "Craig Conover"); // params.put("startDate", (new java.util.Date()).toString()); // params.put("reportTitle", "Hello Report World"); // params.put("author", … | |
hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny Software Development java | |
Hello !! I have a form and some controls as dropdown and textboxes.. The situation is that when the form loads, i want the value in textbox to be incremented, everytime it loads.. This is something i tried.. I get the value '1' everytime !! It shows no sign of … Software Development open-source vb.net | |
I have finally written this code, but the prob with this is that when it is prompting for password it doesnt send any password to the ftp machine, we have to do it manually, but after typing it manually, it take the password line as command and shows that that … Software Development session shell-scripting | |
Hi all, I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result [CODE]if(" String ".trim() == "String") System.out.println("Equal"); else System.out.println("Not Equal"); [/CODE] It produces the result of not equal. How it produces the result like … Software Development java | |
i have 2 form. form 1 have combobox and second form textbox...how to load data form textbox into combobox..if i type hitachi in text box, automatictly "hitachi" will save in dropdownlist combobox...anyone..please help me... Software Development vb.net | |
#include <iostream> #include <windows.h> #include "g.h" typedef unsigned long (*AsmFunc)(AS_INBUF *, AS_OUTBUF *, T_REG_INF *, T_MPCNT *, ICE_ID *); int main() { AsmFunc _AsmFunc; HINSTANCE hInstLibrary = LoadLibrary((LPCWSTR)L"C:\Documents and Settings\karthikdatt\Desktop"); if (hInstLibrary) { _AsmFunc = (AsmFunc)GetProcAddress(hInstLibrary, "Assembler"); if (_AsmFunc) { std::cout << "ASSEMBLER FUNCTION" << _AsmFunc(ptr1,ptr2,ptr3,ptr4,ptr5) << std::endl; } } … Software Development c++ | |
I am developing a Vis C++ 2010 Express Windows Forms application which handles some time/date scheduling, based on user input. So, to test the application, I ran my PC's date forward a couple of weeks. Edited a glitch in the mean time... Then, set the date back to current. Now, … Software Development c++ | |
Hi I have written the below code for ftp transfer. can u please help me how to trap whether it is successful or not. [code]ftp -n `awk '$1 ~ /db_server_IP/ { print $3 }' $CONFIG_FILE` <<END quote USER `awk '$1 ~ /db_user/ { print $3 }' $CONFIG_FILE` quote PASS `awk … Software Development session shell-scripting | |
Help in my Visual Basic Program...just got stuck I'm creating a Multiplayer LAN game in VB 2008 here is what I wanted to do I created a textbox named txtbuttons.text. If I inputed a value, for example 23856 in the textbox.The Values will be distributed in different textboxes. example Value … Software Development vb.net visual-basic | |
What my problem is I don't know how do I set it up so that when the entire word has been guessed I can stop the game and tell the user they won or lost. I tried adding in another if statement after maxTries--; where it says if (maxTries == … Software Development java | |
Hi guys, I'm new to Java and was wondering if you could help with one little problem with my code. [CODE]System.out.print("Enter title: "); String title = keyboard.next(); if (title.equals("Mrs") || title.equals("Miss") || title.equals("Mr") || title.equals("Ms")) { title = title; } else { System.out.println("Enter a valid title"); }[/CODE] If the title … Software Development java | |
I know this is quite simple for you to code but for me as a beginner I need some examples or guides. I have a text file which has this content: [CODE]random line random line random line random line random line random line random line random27061-1-0256487952random words random words random … |
The End.