132,726 Archived Topics
Remove Filter ![]() | |
Hello, I am trying to read in a tab delimited text file. Most lines in the file are in the following format: [CODE] Col1 Col2 Col3 data1 data2 data3 data1 data2 data3 [/CODE] But some lines are missing the first value: [CODE] Col1 Col2 Col3 data1 data2 data3 data2 data3 … Software Development java | |
edit: I see a lot of other threads on Daniweb on this. But after 2+ hours of reading about Sound in Java, I'm even more frustrated, so I have some questions. 1. Is the Java Sound API sufficient for the following operations: Playing mp3 audio files, pausing, and fast forward/rewinding … Software Development api audio daniweb-api java | |
I am writing a function that inserts an item into the rear of the queue. [code=cplusplus] template <class T> void Queue<T>::pushBack(const T& item) { QNode<T>* newNode; newNode = new QNode<T>[item]; if (empty()) qFront = newNode; else qRear->next = newNode; qRear = newNode; qSize++; } [/code] It seems like line five … | |
Hi Professionals, I am using Microsoft Visual Studio 2005. I would like to know how to separate content in a richtextbox([B]rtbTo[/B]) in windows form with a comma automatically. For example after copying email addresses from a .txt file and pasting it to the richtextbox([B]rtbTo[/B]), there should be a comma inserted … Software Development vb.net visual-studio | |
Hi, I'm having problems with my find button Private Sub Btnfind_Click(ByVal sender As System.Object, ByVal _ e As System.EventArgs) Handles Btnfind.Click MainFormTableAdapter.FillByLastName(_6776_BDataSet.MainForm, Txtfind.Text) I get the error:Too many arguments to 'Public Overridable Overloads Function FillByLastName(dataTable As _6776_BDataSet.MainFormDataTable) As Integer'. I'm trying to create a find button which allows the user … Software Development vb.net | |
Hi, I'm having problems with my find button Private Sub Btnfind_Click(ByVal sender As System.Object, ByVal _ e As System.EventArgs) Handles Btnfind.Click MainFormTableAdapter.FillByLastName(_6776_BDataSet.MainForm, Txtfind.Text) I get the error:Too many arguments to 'Public Overridable Overloads Function FillByLastName(dataTable As _6776_BDataSet.MainFormDataTable) As Integer'. I'm trying to create a find button which allows the user … Software Development vb.net | |
I am using Dev-C++ in Windows. When given a file's url I want to be able to download it to a variable and then pull data out of the file using string manipulation and use it in my application. I have search Google and I have not found any good … Software Development c++ | |
I don't understand why this program will not compile please help. This is what the program supposed to do. After the correct number is guessed or all five guesses are used and the correct number is not guessed, the user will see a message that shows the secret number and … | |
ok so I want to know how the response.redirect works in one page i do a search for items page1 [CODE]protected void _btnSearch_Click(object sender, EventArgs e) { Response.Redirect(Pages.TradeUp.Default + "?SearchItem=" + Server.UrlEncode(_txtSearch.Text)); }[/CODE] on my "default" page I want to display my results how do I receive my search request … Software Development | |
how can i modify my code so it can handle upper and lower case characters.. for this: cout << "(B)uy, (S)ell, (H)old or (Q)uit: "; cin >> ans; what should i add to the code? i added #include <cctype>. Software Development c++ | |
I have been working with assembly for some weeks now and I want to actually take on a challenge that actually might interest me in the means to learning it better, so I thought I would try and make a maze game something simple, not sure on size yet I … Software Development assembly | |
Yo guys plz can anyone teach me how to disable a button without using MFC. It would be great for the help Software Development c++ | |
Hi, I'm having trouble with a program that I have to write that is supposed to convert a prefix expression to a postfix expression using stacks. The program I wrote seems to compile fine but when I run it, it gives me a fatal error and aborts the program. I'm … | |
Hello all, I have been programing for a year or two and i dont get vectors. I have seen them with numbers but can someone give me an example of vector.erase with letters? like for an RPG: like sword, axe, armor. Then have them chose what they want to be … Software Development c++ | |
Hey. Can someone help me with this parsing function? I'm not sure why it won't work. Whenever I test it with a valid input and output file it simply crashes. [code] void parse(string infilename,string outfilename) { string temp; ifstream infile(infilename.c_str()); ofstream outfile(outfilename.c_str(), ofstream::app); if(!infile) { cerr<<"Infile Not Working!"; } if(!outfile) … Software Development c++ | |
I was Writing a code to connect data base and add the following code to my action.java Connection connection=getConnection("UserBook","UserBook123","catalog","localhost"); String sql="select BookName from book"; PreparedStatement ps=null; ps=connection.PreparedStatement(sql); ResultSet set=ps.executeQuery(); while(set!=null&&set.next()) { System.out.println(set.getString("BookName")); } connection.close(); the error i get is "The method PreparedStatement(String) is undefined for the type Connection" Need to … Software Development java | |
Ok well i need help with my code, the idea is to make something like a DOS Console, the trick is we are not alowed to use dos functions. Well this is what i have so far [code] #include <stdio.h> #include <iostream.h> #include <conio.h> #include <string.h> #include <dir.h> #include <dos.h> … Software Development c++ ![]() | |
Hello, I am trying to create a simple ftp client. I'm following the instructions from [URL="http://www.nsftools.com/tips/JavaFtp.htm"]http://www.nsftools.com/tips/JavaFtp.htm[/URL](option 4) If you take look at JakartaWrapperTest.java, The first line is import JakartaFtpWrapper; So When do javac JakartaFtpWrapper.java JakartaWrapperTest.java -cp commons-net-ftp-2.0.jar I get an error saying [B]'.' expected[/B]. And if I comment out the … | |
I m working on project in which i have to add tab & close tab as that of IE. I m able to do dat,but its not very much clean.Check it out.Plz see if somebody can help me to do it more better. [code] Public Class Form5 Public lSelectedTabPageIndex As … Software Development vb.net web-browser | |
hi all, i want the application to show error message if the searched object is not in the database or if the user is trying to insert the same value again plz suggest some code. Software Development vb.net | |
a.h ------------------ this is one file This contains the following information inside the .h file /*add/root/temp/private/addsolutions.c/*/ int vehicle(int a,int b); int car(int a,int b); My request: I need to read the a.h file uearch for the addsolutions.c which is a header file search in the whole project directory and open … Software Development c | |
Hey, i'm in a bit of a deadline here, so i need your help. I'm trying to develop an application that, upon selection of an event and its respective "listener" (a button), fires the event name and the current time. Thing is, so i can print the event name i … Software Development | |
hi, I have developed a form application that contains a lot of user specified settings that need to be saved. Currently the app is using serialisation/deserialisation to manage and save these properties/settings. Are there any other/better methods/techniques to manage user settings without using a database? Software Development | |
I'm trying to write a GUI program where I want to use both strings and vectors, but the computer won't recognize them no matter where I try to include <string> and <vector>. Can you tell me where in the code I need to put my includes and my std namespace? | |
I made this program that should be very easy but it does not work. When I try to run it, it should take the price and add tax to it but it comes up with a crazy decimal number like: 7.74335e+268. What should I do I tried everything. I #include … Software Development c++ | |
Helo frndz, I'm a nob in c++....So, I want to know about default constructor. How to create? Why default constructor? How to create a no-arg constructor that creates a default triangle??...Plz help... Thnx... Software Development c++ | |
Hey all I'm having a problem with invoking methods through my dispatcher. Not all methods, just the one. Here's the problem code: [code=c#] private delegate void oneArgDelegate(Chart arg); ...Do Work... c = new Chart(); ....Set some properties.... this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new oneArgDelegate(setGraph), c); private void setGraph(Chart c) { GraphArea.Content = c; MessageBox.Show("Graph … Software Development | |
Hi all, I need information of a better Java hosting service (better in terms of performance, security, storage, reliability). I do not want to compromise with performance and reliability/security. So if any of you know such kind of service provider thn kindly let me know ASAP. It would be great … | |
i want to make a project on "project distribution system for any company", for which i need to include database my problem is that where to start ...what to do ....?? can we make this online ..??? Software Development java | |
Hey all I've been developing in c# for a few months now, but to my shame have only recently started looking at threads. And now that I do look at them, I'm having issues... Here's a sample of my code: [code] private void cmdNext_Click(object sender, RoutedEventArgs e) { ... Thread … | |
I know, I know, this seems like an uber beginners question and most likely is. I have had this error several times and always figured it out myself, but this time it won't. GetUserData() returns a void* [code] #ifndef BLABLA_H #define BLABLA_H #include "GameEntity.h" //class declaration left out for simplicity … Software Development c++ | |
I am learning c++, below is an attempt at a simple XOR encryption program. I am am using Dev c++ (Blooodshed Ide) using the ming-gw win 32 gcc compiler blah blah. This code compiles without errors or warnings but it will not produce an 'exe' only a '.o' file, firstly … Software Development c++ encryption ide ios | |
Plz help to print ******* **1sp** * 5 sp * **1sp** ******* Software Development java | |
Plz Help me to print in [B]java [/B] a b a b c b a b c d c b a b c d c b a b c b a b a Software Development java | |
this is two questions: list the order of the threads. i am not sure of the answer but i have included my thinking, thanks. Thread State Priority threadA Runnable 5 threadB Sleeping 5 threadC Sleeping 5 threadD Waiting 5 threadE Runnable 5 ANSWER: A,E,D,B,C Thread State Priority threadA Runnable 5 … Software Development java | |
Hi, I just wonder if this is possible: (semi-pseudocode (won't work as planned)) ofstream fout("my_file.txt"); fout << cout; Looking forward to your reply Software Development c++ | |
hi to all programmer... i have a problem about this program .. an error exist .. [code="java"] import java.io.*; import java.awt.Graphics; import java.util.Random; import javax.swing.*; public class midquiz 2{ // "{" expected public static void main (String [] args) throws IOExeption{ BufferedReader 9new InputStreamreader (System.in)); String name,pass,ans; String pass1="pOLOtAn"; int … Software Development java java-swing | |
i found this code online and im trying to get it to overwrite the original file instead of printing to screen but i have to admit its too advanced for me can anyone help please [code=cpp] #include <iostream> #include <fstream> #include <string> #include <vector> #include <iterator> using namespace std; int … Software Development c++ | |
Wt happened is just i have made a very simple menu driven programme and in that programme wen i use character not matching wid d switch cases , it runs twice...i want it to run once only..i know its becoz getchar(); but y??? [code=c] #include<stdio.h> #include<conio.h> void even_odd(); int n; … Software Development c | |
Hi, hey i need a code to display the text of of runtime generated button in ascending order in windows application c#. example if i have buttons like ab abc asdfsd asasasasas how to get the text in regular order starting from left? thank, suhasini Software Development | |
PLEASE EDIT this code if u can . this is my c++ Assgnment it is about reserving air tickets. if u can help me 2 insert delete & Edit a air ticket functions to the main menu please please please help me my friendz... I wz managed 2 save d … | |
Hi I am making a text game, and I have made up a basic framework. I have 2 questions 1) Sometimes, the python interpreter bugs out, like saying that I misspelt a variable 'Item' as 'item' even though I can see the correct spelling infront of me, and the only … Software Development python | |
Hi, I'm just learning to use C# for the first time for a university paper and for my tutorial I'm wondering if someone could please help me with figuring out how to start modifying the sort method so that it sorts the array of integers into descending order. My code … Software Development algorithm | |
hi guys, how can I retrieve the total record count from a database? I mean is there a method like "rst.recordCount"? or whatsoever? thanks... Software Development java | |
I have a text file, for example: [code]This Is A Text File[/code] This file is on some host. Now I want to get the file to my program, my problem here is, that I found how to save the file(download) but that's not what I need.. I need it to … Software Development c++ file-system | |
hi folks, I have some 247 warnigs are same type warning C4996: 'fopen' was declared deprecated I am using makefile to compile my cpp program in Visual studio 2005. I have added _CRT_SECURE_NO_DEPRECATE in preprocessor definition too. but still I do get the warnings . Could anyone help me? Software Development c++ visual-studio | |
I am able to generate the output file but it does not execute. This is what I do: g++ program.cpp -o program then I can see the program as the output file but when I type program it says: It says bash: program: command not found. So, what am I … Software Development c++ | |
Right, so I'm fairly new to C and have worked in several high-level languages for a few years. Now I've been able to google and work with what I could find, but I have a few questions now. I'm working on a DLL that outputs information. Now I can store … Software Development c | |
Need help guys! my problem is i cannot store file data into an array of structures. I can already read the file data and also tokenized it so as to separate data. here is content of the file that i am reading: 200001, hamburger, 30.50 100000, cheeseburger, 21.00 the name … Software Development c data-structure file-system storage | |
Hello Everyone Thanks for the message of welcome in a previous post. I have many questions but i have sleected this one as it represents my favourite piece of not working code (hahaha) but it has been studied and altered so i got this bugger working .. mostly . Explain: … |
The End.