132,726 Archived Topics
Remove Filter ![]() | |
ok so i need to ask the user for a file to use for the input, then i need to read the input a line at a time, because i am trying to take postfix expressions from the file and evaluate them then return the result in the user's choice … Software Development c++ open-source ![]() | |
I'm trying to make a binary calculator and I just can't find what's going wrong: [CODE]#include <stdio.h> void dec2bin(long decimal, char *binary); void dec2bin1(long decimal2, char *binary2); int binaryAddition(int,int); int main(void){ long int binarym1,binarym2,multiply=0; int digit,factor=1; long decimal; long decimal2; char binary[80]; char binary2[80]; printf("\n\n Please enter the first value … Software Development c | |
Hi i need to read the last 14 Entries made into a typed file and then list the entries in a StringGrid so i can copy them to label captions later. I am a little unsure how to write the Code to loop for the last 14 Entries. the current … Software Development delphi file-system pascal | |
Input a time specified as the hour(1-12), minute (0-59), and the meridian (A or P for A.M or P.M); then output that time in the form HH:MM A.M/P.M. Then enter a nonnegative number of minutes and output the time that is that number of minutes later than the original time. … Software Development c++ | |
Hello, I'm wanting to have multiple .cpp files in one project. I have three files: "Main.cpp" "Secondary.cpp" "Main.h" This is the content of Main.cpp: [CODE]#include "Main.h" #include <iostream> void Engine(); int main() { b = 10; a = 5; std::cout << a << b; Engine(); } [/CODE] This is the … Software Development c++ | |
Hi, Am finding 1 diffculty in jtable pls help me... i want to set jtextfield value in jtable of particular column and also that jtextfield value will be dynamically changing... even i have tried the below code... [code]String mn=jTextField2.getText(); jTable3.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(mn));[/code] but its not working... Software Development java | |
hi, my problem is that : let i m declaring a package P1 and i have defined one class as public in it.now i know that i can use it anywhere. but let if i want to make a second class as public then it can not be possible.but if … Software Development java | |
Have you ever cited the Python documentation? How did you do it? I can't seem to find author names and such information. I've only ever cited books as well. I'm trying to find out who authored the 2.7.2 docs, and how to cite them properly, since I used it to … Software Development python | |
Here is a technique I use for sending an email using GMail. Notice: You might need to change your email settings under [B]Forwarding and POP/IMAP[/B] inside your GMail settings (to Enable POP). Here is a test program for using the class library (shown in the snippet box): [CODE] using System; … Software Development email | |
I'm getting an undeclared error in my main program at line 45. Can anyone find out what is causing it? Main [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <vector> #include "playlist.h" using namespace std; int main (int argc, char*argv[]) { ifstream fin; int lineCounter = 1; string parsedLine[NUM_OF_FIELDS]; … Software Development c++ | |
Hi, I cannot seem to figure out how to search through a created/filled dataset for a certain value which exists in column(1), returning Column(0)'s value into a textbox. My code looks like this: Dim connStringdg44 As String = "server=(local);database=Cricket;trusted_connection=yes" Dim conndg44 As New SqlConnection(connStringdg44) Dim strSQLdg44 As String = "select … | |
Hi Guys, Need help... I am developing an windows application in that one form is to send sms by connecting mobile (GSM). but no idea how to do this. Any help would be greatly appreciated. Software Development | |
Hello everyone, i'm been practice C++ for a while just a new hobby in technology. i start with mathematics with numbers and some cout, cin function in other program like excel i can enter series of number and after that we can: 1. Sum them up 2. Divide them, multiple, … Software Development c++ mathematics ![]() | |
Hi all, I have created a custom datagridview cell type (which allows the user to either enter text or add an image). This is working as I had planned, with one exception... This new cell type, which is set as the CellTemplate, has a button to the right of the … Software Development vb.net | |
I'm trying to figure out how to do this program. A program is required to print and read a series of exam scores for students enrolled in a math class. The class average is to be computed and printed at the end of the report. Score can range form 0 … ![]() | |
Hello, i want to create something like this (watch after 30 sec, - character creation) [url]http://www.youtube.com/watch?v=8u9hmTMP3as[/url] is that possible in C#? can i use 3D Models in C#? Software Development c# | |
Hi, i need to load all buttons(200) text in my vb.net windows form at run time from my database table column. for single button its like button1.text = database value but i want For i = 1 to 200 button(i).text = database value Next i i tried this but its … Software Development vb.net | |
i want to give a filename in commandline itself and want to check whether it is a directory are not.shall i use this command if [ -f $filename ] Software Development shell-scripting | |
Hi there, It's been a long time since I've used delimiters in the Scanner class in Java. If I wanted to have any numbers between an expression, such as xx/xx/xxxx or an infinite amount of numbers between them with just the forward slashes as delimiters, what would the syntax be? … Software Development java | |
Hello everyone, I am working in the latest version of MinGW (downloaded 12/12/2011). I am attempting to compile a .rc file using Windres.exe. I use the command: windres -O coff about1.rc -o about1.res. Windres generates perhaps 100 or more warning messages saying "null characters ignored", and then it terminates with … ![]() | |
Hi, I have a combobox and a datagridview bound to a table in my database.The combobox shows the "ID"s and i want to display a complete row in the gridview based on a selected id in the combobox. Software Development sql | |
Guys, I'm actually almost done. Basically what I have to do is to read from file with a list of words, sort them alphabetically and write them into another file. I am almost done, but the only thing is, the assignment says that we shouldn't change the case of words, … Software Development c++ ![]() | |
[B]I have a question, pls help, thanks very much.[/B] Try to write a C program which can analyze the input of the user in the following aspect. 1. vowels 2. consonants 3 digits 4 white spaces 5 others You must use the logic of pointer to do this analysis in … ![]() | |
Guys I don't know the output of the following loop please help me out [CODE]for ( int = 10; i > 0; i--) { system.out.println ( i*2); } [/CODE] and one more: [CODE]while( a < 20 ) { a += 3; System.out.println( a ); }[/CODE] Thanks! Software Development java | |
I got a snippet off the web of how to download a file from online in c++ console with the curl library. so I installed curl, and copied the code snippet, but it doesnt work. Can someone show me whats wrong? [code]#include <curl/curl.h> #include <cstdio> // link with libcurl. eg. … Software Development c++ | |
Could someone please tell me why is my JScrollPane not aligning together with my JLabel of description? I want my label "Description:" to be right next to my JScrollPane which contains a JEditorPane. [CODE]import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.SplashScreen; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import … Software Development java java-swing | |
Iam using data set and create table adapter then create select some data to be used in my aplication. In my app, i create data table to gain data from table adapter, but i don't know how to get some specific data, ex : item in column "a". Could you … Software Development vb.net | |
hi, i want some problem so that i can write its code.my vacations are there and i m thinking to practice some codes.i have done data structures well and please gives problems on which i can think and implement them. :-)) don't give too much high level problems. Software Development c ![]() | |
Hi All, I have one vb form with two textbox,one checkbox, and two buttons. I am using SQL Database as back end for this form. Controls of my form goes like that: 1. txtGenderID 2. txtGenderName 3. chkIsDefault 4. btnSave 5. btnCancel SQL Table as follows: Table Name: tblGender GsGenderCode … Software Development vb.net | |
I am attempting to complete an assignment but an having some major issues as my java knowledge is basic to say the least. Below is what I am trying to do and below that is the current code that I have. Am I way off base or on the right … Software Development java | |
guys i need help ASAP since i need to submit this miniproject and i need 1 more minor questions need asnwered. the C++ coding is given below, i need to change it to function type but giving out the same output. #include <iostream> #define SIZE 7 using namespace std; int … Software Development c++ | |
hi all! i have here a code [CODE] Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged mycommand = New MySqlCommand Dim daMyName As New MySqlDataAdapter Dim dsMyName As New DataSet Try connection() mycon.Open() With mycommand .Connection = mycon .CommandText = "Select * from finaltickettable where work_group … | |
Hello there I have been given an assignment at Uni to write program (obviously thus im here hehe) The user (customer wishing to purchase a computer) should be able to login by typing his user name and password and pressing the “Login” button. The layout of this first screen of … Software Development gui java java-netbeans java-swing | |
So the program seems simple enough but for some reason when I compile it in the windows command prompt, I get an error that reads "error, cannot find symbol and it point to the period between the list.add(); Any ideas what I'm doing wrong? Thanks! [CODE]// NOTE: THERE ARE FOUR … Software Development java | |
So I'm having trouble parsing a double... Here's my code: [CODE]public class DoubleArray { static Console c; // The output console static final int total = 20; String[] numStr = new String [total]; Double numDouble; public void getAndStoreInput () { int count = 0; do { c.print ("Enter Double" + … Software Development java | |
the question im doing is: write a java program that allows the user to enter a set of numbers and then displays the sum and the average of the values. It should begin by asking the user how many values they will enter. you should use two seperate methods to … Software Development java java-swing | |
Hi, i'm new here so bear with me on this. I have a task, due in on Friday, to read data from a file, do some calculations with it such as averages and standard deviation and then read it out to a file. I'm about half way though but I … Software Development file-stream file-system | |
Hi, so my problem is I don't know how to read more than one line from a text file. say I have string.txt and it contains: Hello Java Hello World Welcome how am I going to read every line of the string.txt? I tried using FileReader and BufferedReader but it … Software Development java | |
So i want to have an application where the user types in a word in a text box and in another text box they put a letter for example "e" and in the third text box they put down what letter they want to replace it with example "f" So … Software Development visual-basic | |
I'm writing a program for my job in which we are keeping track of employees usage of food at work. The form in question interacts with an access database to a binded control with labels and textboxes. This form I'm working on is the user view which doesn't allow them … Software Development vb.net visual-studio | |
How would I go about refining a triangle? So far this is what my code looks like,not finished by far [CODE] class point {public: point(){} point(double i, double j,double k){x=i; y=j;z=k;} ~point(){} double getx(){return x;} double gety(){return y;} double getz(){return z;} bool operator == (point p){return (x==p.getx() && y==p.gety() && … Software Development c++ | |
[code] import urllib from urllib2 import urlopen from gzip import GzipFile from cStringIO import StringIO import re import urllib2 def download(url): s = urlopen(url).read() if s[:2] == '\x1f\x8b': # assume it's gzipped data with GzipFile(mode='rb', fileobj=StringIO(s)) as ifh: s = ifh.read() return s s = download('http://www.locationary.com/place/en/US/Virginia/Richmond-page20/?ACTION_TOKEN=NumericAction') findLoc = re.compile('http://www\.locationary\.com/place/en/US/Virginia/Richmond/.{1,100}\.jsp') findLocL … Software Development python | |
Hi! I am trying to make a program that will put the bands I've played with in alphabetical order. I'm getting the band names from a file on my computer. I am fairly new to python and don't have much experience what so ever. I'll post the code that I … Software Development python | |
Dear friends: I need the vector computation as follows, for example: A=[1,2,3], B=[3,4,5] C=A+B; C=A-B;C=A+alphs*B; Could you please suggest me a C++ numerical library for this kind of computation. Regards Software Development c++ | |
Hi everyone! I joined these forums about a week ago so I could try and learn more about Python, and thankfully I can say that I have learned a bit. Enough to try and create a Mastermind game, although I'm having trouble with converting the code into Pygame and give … | |
Hi there I am trying to a create an Address Book program using an 2d array (only). The address book must store the Names address, postcodes in a 2d array. The Naming format must be : Surname , Firstname (e.g. Family name, Given name). The Address format must be : … Software Development | |
I'm trying to figure out how to do this program. A program is required to print and read a series of exam scores for students enrolled in a math class. The class average is to be computed and printed at the end of the report. Score can range form 0 … | |
Hey, guys. I have A database with some Customers with some parameters. I made the Mapper (the connection class between the data base and the GUI). So... I create an object "Customer" (through the GUI) which has the parameters and then I store the object into another class CustomerList which … | |
[CODE]using Excel = Microsoft.Office.Interop.Excel; namespace program { private void cmdOpen_Click(object sender, System.EventArgs e) { FileSystem.FileOpen(1, inputfile, OpenMode.Input, (OpenAccess)(-1), (OpenShare)(-1), -1); // 1 : excel file Excel.Application MyXl; MyXl = new Excel.ApplicationClass(); MyXl.Visible = true; Excel.Workbook xlWorkbook = MyXl.Workbooks.Open(inputfile, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, … Software Development c c# c++ microsoft-office | |
I am working with a tabbedpane with two panels on netbeans... I have a button action which switches panels, "setVisible()", but when it switches the panels the buttons on the first panel show if you roll the cursor over them. Any settings I can change in order to have my … |
The End.