132,726 Archived Topics
Remove Filter ![]() | |
I have a program in which i open a a text file, access it's values and create and array with it. for example the text file may contain these values: 1 44 3 4 33 6 7 8 61 10 ; that's 10 integers what c++ tools could i use … Software Development c++ | |
I want to create fairly simple custom control that has group box and checkbox on it. This control should act as normal groupbox control ... user should be able to drag it onto form and then add some other controls to this groupbox (by draging thom on groupbox)... i managed … Software Development | |
![]() | I am having trouble with a project that is used to create a simple library database. The code does compile but during runtime, it throws a nullPointerException. It points to addBook in my main method. Here is my code: [code]public class Library { Book[] books; int numBooks; String address; static … Software Development java ![]() |
OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the … Software Development java java-swing os-x | |
I have a strange bug in vs2008. ostream open fails when called in the following manner: [CODE=c++]ofstream filestr; filestr.open((filename.c_str()),ios::in|ios::out);[/CODE] when called like this it works without a hitch: [CODE=c++]ofstream filestr; filestr.open("blahblah.txt",ios::in|ios::out);[/CODE] Any ideas? Thanks | |
i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!! Software Development gui java web-browser | |
I've managed to figure out how to create tables in a dataset, fill them with data, and link one of those tables to be displayed in a DataGridView. It works great when the selectionmode is by row, row header, or cell, but unfortunately for this project I'd like the user … Software Development dataset | |
Hi I got a code that in pseudo dos something like [CODE] ifstream os; while(os.oef()){ os.getline(buffer,length); } [/CODE] If some condition is met, I'd like to be able to jump back to the previous line, such that the next getline will give the line just-read in, at a later time … Software Development c++ | |
I can quite honestly say I am lost, having learnt HTML during the past 2 years and trying to understand a bit about java, but find myself very confused. Yes could look in books but find them equally confusing the same as when learning HTML and preferred to do more … Software Development api java microsoft-windows windows-api | |
I cant find a decent explanation anywhere! How can i use the serialport component in .NET 2008 to send and receive data. Also whats the common code syntax for this component. If any one could point me to a decent tutorial that would be great! Im fairly new to the … Software Development vb.net | |
Hi, I have some questions on vector. Please consider the code below. I use g++ compiler on Linux. [CODE=c++] #include<iostream> #include<vector> using namespace std; class Sampler { int a; int b; }; int main() { vector <int> vec1; vector<float> vec2; vector<Sampler> vec3; cout << sizeof(vec1) << " " << sizeof(vec2) … Software Development c++ ![]() | |
how to animate object in C#. moving from left to right or vise versa | |
The age old issue of string parsing comes up again ... I have a text file that contains lines that are SUPPOSED to follow a set format, specifically: string, string, long string int string double int The delimiters are therefore: Comma (,) for the first two fields Spaces for all … Software Development c++ ![]() | |
Task: Given input file A, translate the content to produce output file B Hi there, I need help in solving this domain problem. Any help will be appreciated. ====Scenario========== File A: Consists of multiple lines of data whereby each line is of form X;1.9,2;3,4.3; 5,6 Output file B, should consists … Software Development java | |
I have written a shell script below while running this script , we have to give inputs manually, now i want that we are getting inputs in excel file ..can we automate this , this was a project for me , i am alreday late ..please help me soon [code] … Software Development shell-scripting | |
Hi All, I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in [url]http://forums.asp.net/t/268037.aspx[/url] and [url]http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx[/url] but the mail was not … | |
Hi, I have a strange situation to tackle.I have a paging for the website I am developing. there are few records in the table which i want to skip from to display in my list in the web page. But paging works on the total num rows as using mysql_num_rows(resultset) | |
i want to playing mp3 file with vb.net. how can i do this? regard Naruse Software Development vb.net | |
hi i have completed my project in c# in visual studio 2008 i have used shockwaveflash for playing .swf files its working fine .., i have done setuped the project with all prerequests given .netframe work and windows installer all except the shockwaveflash. so i want i want to check … Software Development flash visual-studio | |
Hello everyone, I am not much of a programmer but have some limited experience with vb.NET, so please bear with me. I have written the following code to create a dataset and fill it with three different tables, one of which is empty to begin with but is populated successfully … Software Development dataset open-source vb.net | |
Not sure this is going to be easy to explain but ... I have a class (A) that needs to have access to a map (mapCodes), this map is the same for all instances of class(A), therefore I don't want to create an instance of the map for each instance … Software Development c++ ![]() | |
Iv'e been searching this website forums for the right answer but i didn't find. Im using VS2008 and want to build some application that working with microsoft access database. in the database i have one table call "customers" with the coulmns = "firstName", "lastName", "address" etc.. I want to make … Software Development asp.net microsoft-access open-source | |
[code] string s; cout<< "Enter name: "; cin >> s; cout<<"\n"<<s; [/code] on running this i need: Enter name: Tejesh Kinariwala Tejesh Kinariwala it is showing: Enter name: Tejesh Kinariwala Tejesh so how to get the input till user hits return key, instead of breaking it at space Software Development c++ | |
i've wrote a code that read and write to some files, and i have a segmentation fault when i'm running it in the g++ (in the visual studio i don't have any problem like that..) anyway, i think the fault may come from this line, can anyone tell me if … Software Development c++ file-system ios legal visual-studio | |
Hi i have to make this work... [code=cplusplus] //INFO: -eingabeprüfung auf buchstabe/zahl // -eingabeprüfung auf zahlenbereich // -wiederholung einbauen vill... #include <iostream> using namespace std; int main() { int eingabe; cout<<"Geben sie eine zahl ein> "; cin>>eingabe; if(eingabe>0 && eingabe<13) { switch(eingabe) { case 1: cout<<"eins"<<endl; break; case 2: cout<<"zwei"<<endl; … Software Development c++ | |
Hello, I have a problem with my code and can't see what the difference can be. I am trying to change my JLabel text via a timer using .setText I have 2 small apps to demonstrate my problem. 1 - I have a JLabel within a JPanel within a JFrame, … Software Development java | |
I need a help in designing form in vb.net. In my project I have to design a form to save the company's applicaton form details.the applicaton form is of two page.I have to make the form design catchy so that data entry is easy. A section in the application form … Software Development vb.net | |
![]() | im trying to make a little game and i cant find how to use the keyboard to control it what does the code look like? Software Development vb.net ![]() |
Ive managed so far with this code that amends data to an xml form, but I need to figure out how to remove the bit of code that amends data rather than overwriting it. Ive messed around with the code to see if I could manipulate it myself to get … | |
gives me error main /* The purpose of this lab is to open a text file and then make a copy of it */ #include <iostream> #include <fstream> #include "Interface.h" using namespace std; int main() { //open up file to be read from string input; ifstream in; cout<<"enter file name … Software Development c++ | |
hi,i have a unique problem.actually i wish to put a polarchart developed using JFreechart on the frame that already has components placed on it.What i want to do is to make the particular component overlap the polarchart. How can i do so? i thought of creating the polar chart using … Software Development java | |
I'm trying to write a program that asks the user for a number between 1 and 10, then prints a line of that many “X"s. The program compiles, but I cannot figure out how to make the variable 'total' print X's instead of a the actual number, if that makes … Software Development c++ | |
Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then print that array. Thanks, Derek Software Development perl ![]() | |
Hello everyone, I've been having a problem parsing through a .bin file. Ideally, I want the script to read the .bin file, find the first word in it, write down word 1 somewhere else, and continue on throughout the file, word by word. I've tried similar things such as open … Software Development perl | |
I'm having a lot of trouble finding enough RAM for a program I'm writing on Vista 64 Ultimate system, even though the system has 8GB RAM and only 2GB is used. I tried to see how many 10 million byte blocks I could allocate using malloc(), and the compiled program … Software Development c++ linux-kernel visual-studio windows-vista | |
I have declare a array variable in module, i need to access this variable to ToolStripMenuItem_Click Event. but i can't, when type that variable it shows "Class 'System.Windows.Forms.ToolStripMenuItem' cannot be indexed because it has no default property" Please anyone help me Software Development vb.net | |
How can I send a string from php page to c# windows form using socket? Can you give me some example? | |
Help, am a c++ student who is completely stuck. I know that there are some stupid errors in this, I've been working all day on this and I still can't find them. I'm supposed to create a class, copy constructor, and than create an instance in main and then create … Software Development c++ | |
I have a slight homework problem that is giving me some trouble. We have to write the algorithm for subtraction using different bases as a possibility in a program that uses calculator registers. The following is the provided prototype: bool subtractRegisters( int registerX[], int registerY[], int registerZ[], int base ); … | |
Currently I'm creating application to work with PDF documents, just for challenge. I want to know if there is better solution to my idea of possible approach. I broke down application GUI to four main components toolbar with image icons, jpanel for thumbnail preview, jpanel for single page view and … | |
Newbie post. Please be kind. I am having terrible trouble creating a Audio VU meter user control in VB (Visual Studio 2008), and hoped somebody might be able to help. I need the simplest type of display - just a label on a user control where the width of the … Software Development audio user-interface vb.net visual-studio | |
[COLOR="Red"]The program is given at the bottom[/COLOR] To compile java programs in the command prompt I use the following command: C:\jtemp\MyPack>javac AccountBalance.java -d . Only then are the classes compiled and I am able to run the main() function. When I execute the above command a folder "MyPack" is created … Software Development java | |
Hi there! With reference to the annoyance of this problem, I've spent some time searching the web as well as on here however, with few ways to extract useful threads from those less useful when typing 'RegSetValueEx int' or the like, posting was a final solution. Apologies if this type … Software Development c++ | |
Can anyone give me a qick review about Python Why its good ? Why its not ? What is the most suitable type of project for it ?? (application) And so one Thanks for your help Software Development python | |
Hello everyone, My file has text like: gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 95 20 1 0 68 87 31017559 31017578 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 91.67 24 2 0 63 86 35247737 35247714 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 91.67 24 2 0 64 87 40549054 40549031 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 92 24 2 0 63 … Software Development python | |
can anypone explain me string builder and string with good example ? Software Development | |
[code=c#] using System; using System.Collections.Generic; using System.Text; namespace selectionsort { class List { public int[] arr = new int[10]; public int[] arr1 = new int[10]; public int n,h1; public void read() { Console.WriteLine("array size should be less than or equal to 10"); Console.Write("enter the array size "); n = Convert.ToInt32(Console.ReadLine()); … Software Development | |
Hi, i have one doubt regarding datagridview in windows. i can take one column named "Description". I enter rows more than one for that column. but i want set the size of the column,here my requirement is 500 size for that column. pls help me, how to set the column … | |
how can I use a loop to sum random numbers together? it needs to be able to sum any amount of numbers determined by the user. I can generate the random numbers but adding them is a different story. I tried to make an inner loop (if that makes sense) … Software Development c++ |
The End.