132,726 Archived Topics
Remove Filter ![]() | |
hello. Am having a hard time intepreting this java error. The last post made somethings clear but I dont know what am missing. I am getting the error "cannot find symbol construtor Student(java.lang.String, java.lang.String,char,boolean,int,int)" Iam getting the error on this line of code [code] Student studentObj1=new Student("mark","251461",'m',false,3,5);[/code] Here is the … Software Development java | |
I'm drawing onto a PictureBox, using the code [code=VB.NET] Dim XPrev, YPrev, XCur, YCur As Integer Private Sub picCanvas_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picCanvas.MouseDown 'Setting the previous points for line drawing XPrev = e.X YPrev = e.Y End Sub Private Sub picCanvas_MouseUp(ByVal sender As System.Object, ByVal … Software Development vb.net | |
Hows it going everyone. Im pretty sure theres a simple way to do this, but cant figure it out right now. Im still relatively new to vb .net, and have a function that reads a csv file into a datatable and fills a datagrid. But what I want to do … | |
this is the program: [code=cplusplus] #include <iostream> using namespace std; int main() { double f0, speed, f1; f0 = 2e-10; speed = 75; f1 = ((speed + 6.685e8) * f0) / (6.685e8 - speed); cout << "The return frequency corresponding to 75 miles per hour is " << f1 << … | |
Hello experts ! I'm a newbiee to this shell scripting! I try to write a "diff" kinda script which compares two text files and echos the differences. The only different is, my script doesn't care about the character "x" in the first file , being replaced with any other character … Software Development file-system shell-scripting | |
I am relatively new to XSLT, but I have a problem which seems very strange to me and I hope you will be able to help me out. I have an xml file which contains information about the x and y sizes of sheets in a document and x and … | |
Howdy guys, I would like to know weather it's possible to add html links within a listbox ? I have had a quick play around and yes i can insert the link as static html link ("http://thisite.com") but not clickable. Or if so use the tooltip to some how launch … Software Development html-css | |
I have a class that has functions which use <stdio.h> and <stdarg.h> to take in indefinite arguments, and one of the member functions taking in filenames. There's another function (call it the "do" function) where I want to read from ifstreams created from those indefinite number of filenames. I can … | |
:confused: I have to modify a hangman game to open a sequential file, read thru the file and count the no. of words, generate a random no. from the file and read the word from the file corresponding to the random no. and use it in the game, as well … | |
I have this problem. This program runs well except that it skip the value of the first item in list. I think it is because of the cin.ignore(). But if I don't use the cin.ignore(). The cin will only read the first input and none after that. Help? [CODE=cplusplus] #include … Software Development c++ | |
[code=c#]StreamReader reader = File.OpenText("mystations.txt"); string line = reader.ReadLine(); while (line != null) { // string[] stationtxt = line.Split('\t'); string name = line.Split('\t')[0]; string url = line.Split('\t')[1]; string desc = line.Split('\t')[2]; Image img = Image.FromFile("c:/pictures/"+ name + ".jpg"); line = reader.ReadLine(); dgLogo.Image = new Bitmap(img); dataGridView1.Rows.Add(name, url, desc, img); //(stationtxt); } … Software Development | |
I really need help. I'm pretty new to c++. I want to send a simple keystroke to notepad (not really notepad, but I'm using it while I learn). I might have forgotten something, I don't know. I have a feeling it's some retarded mistake... [CODE]#include <windows.h> #define VK_A 0x9E void … Software Development c++ | |
hi guys, how to detect that the text in the JEditorPane has been changed to tell the user before exit the application. Software Development java | |
I'm writing a Win32 application for Windows XP with Visual Studio 2005. It is a console program, and I'm trying to find the HWND attribute of my console. I need this because I need to use it as a parameter for a function. So, thanks to the MSDN library I … Software Development api c++ visual-studio windows-api | |
Hi, I am currently trying to create a program where I input a file called "exp.txt" that contains two columns: 1) date 2) expenses. There are 100 rows. Essentially I'm trying to read a file containing DATE-EXPENSE pairs and find the average EXPENSE between two specific Dates. Eventually, I will … Software Development c++ | |
I'm relatively new to C#, having migrated over from C++, so I'm a little confused about the use of variables. I have a class called User located in the program's main namespace [code] // In User.cs namespace TestProgram { class User { public string name; public int id; public User() … Software Development | |
Part of the code from the program I'm having trouble with. The deletion of array element for this doesn't work properly. Can anyone tell me why? I can't spot any mistakes though zzz, [CODE=cpp]cin.ignore(); delStudentCounter = 0; cout << "Please enter ID to delete student: "; cin.getline(delStudent, 50); for (int … Software Development c++ | |
[code=c] #include<stdio.h> #include <stdlib.h> #include <time.h> #include<conio.h> const int LOW = 1; const int HIGH = 150; int main() { int grid[30][30]={0},x,j,i,die; int data_points, tempx, tempy; for(x=0;x<150;x++) { tempx = rand() % 30 + 1; tempy = rand() % 30 + 1; data_points = rand() % (HIGH - LOW + … Software Development c | |
This seemed like it would be easy when I decided to do it but it turned out to be a bit more difficult than I would have thought. Basically, I've got a file. data.txt that is full of data formatted like this name|value and in side a script i've got … Software Development perl | |
Ok , I'm new here and looking for help already. I am working through Sams teach yourself VB.net and I've lost a form! Well not quite but i am trying to get to my form in design view and I just cant seem to get to it. It opens when … Software Development vb.net | |
Hi, I am new to Perl and I appreciate if someone can help me. I have a tab delimited file that contains 100 columns and 300 rows. The first row is the ID. I need first to read the file into a matrix or a table and delete the columns … Software Development perl | |
There is one detailproblem that always occurs when I read text from a file and then putting this text to a multilined richTextBox. What happens is that the text begins on Row number 2 in the textbox and not on the top(Row 1). It seems that a linecharacter perheps is … Software Development c++ | |
doubt on garbage collection How the garbage collection thread is called. Who calls the garbage collection thread. Is it jvm itself. Is it called by jvm when ever we start running a program. And when we say that garbage collection is an automatic process then why do we implement [code]System.gc()[/code] … Software Development java | |
Dear all, I am trying to print out some outputs defined by my own in different function calls and classes into a debug file, I saw in one source code using macros like: #ifdef DEBUG_OUTPUT #define debug2 printf #else #define debug2(arg1,...) #endif and with a call to this macro like: … | |
Hi, I've got 2 problems with sh: 1) I have a list of logins, seperated by a space (in a logins.txt file, like so: login1 login2 login3). I'd like to display those login names which are online AND on that list. So I made a list of those online: users … Software Development file-system shell-scripting | |
Which is better? We're designing a new autonomous robot for the competition we attend during the summer and this is one of our topics for design. I want to do a dual-processor, multi-core computer to run the software. Some others want to do distributed computing (between two laptops). Am I … Software Development c++ | |
I've been trying to compile a program I wrote with QT on a Mac for about a week now and I can't get it to work for the life of me. I'm very confused because the code compiles just fine on a linux machine using a core 2 duo, and … | |
Hey I got a form which has no form border style. The problem is, when I run my maximise code the form covers the whole screen including the start bar. Is there anyway around this? Obviously when you click the form border's maximise button it fits nicely with the start … Software Development vb.net | |
Hello, I'm having an issue trying to get the data from several TextBoxes in FormB to FormA. In FormB I use a string to gather the data from the TextBox like so: [CODE=csharp] private void asBtnOk_Click(object sender, EventArgs e) { string asRate = asBoxRate.Text; } [/CODE] Then I go to … Software Development | |
Hi there! First off, let me say I HAVE Googled the subject, but all provided functions... didn't work. Simply put, I want a function that closes my Python script, and then reopens it. I tried making my own, which would open the same file, sleep 2 seconds, and then close, … Software Development python | |
Hi all, as a web developer, I am working on cross browser usage. I know, I know, there are websites that take snap shots. The issue is a bit more indepth. I've got stuff that LOOKS alright in most browsers but don't exactly function properly (some javascript stuff, some dom … Software Development javascript web-browser | |
Hi all, first of all I'm totally new to this programming thing. I've just started a degree course in IT and struggle a bit with getting the right code to do stuff. Are there any books anyone would recommend to someone who thinks "Dim" is what lights do? Oh yeah … Software Development vb.net | |
The following program is to produce the sum of Even and Odd array element. The program works properly when I use int instead of double. But getting errors when using double. Could anyone tell me what is the problem? Cus I wan it by using double array. and I don't … Software Development c | |
Hi..look this mi module [CODE] Module Module1 Sub Main() Dim nume As New numeros Console.WriteLine("Numeros aleatorios") Console.WriteLine("Escriba numero 1") nume.setnumero1(Console.ReadLine) Console.WriteLine("Escriba numero 2") nume.setnumero2(Console.ReadLine) Console.WriteLine("Escriba numero 3") nume.setnumero3(Console.ReadLine) Console.WriteLine("El menor numero es {0}", nume.numeromenor) End Sub End Module [/CODE] this mi class [CODE] Public Class numeros Private numero1, numero2, numero3 … Software Development vb.net | |
I am working on a simple "test 123" java program for a RoboJDE robot. I keep getting a semantic error when I compile. The error reads ***semantic error: "private" is not a valid modifier for al ocal variable*** ***semantic error: "staict" is not a valid modifier for a local variable*** … Software Development java | |
Hey Guys, I am currently making a VB.net version of the Classic Ski Free at the moment. (which is going really well) But I got a issue where I got a panel on the main form (the player movement area) and when I full screen the application obviously the panel … Software Development vb.net | |
i m starting to learn c++. i m trying to do a console app. this is my code but i encountered a problem with it after i key in num1 and num2 the total will be display for about a few mili seconds and the console terminate itself. if i … Software Development c++ | |
hello frds, I have write table in xml file and want to execute query from xml direclty. how I perform. My way is --- first I write two table "ftable" and "stable" in xml as "ftable.xml" and "stable.xml" then create query as " Select id,name from ftable UNION Select sid, … | |
Hello, I have a query regarding a DOS command. I know this link is not the right place to ask queres about DOS but didnt find any another link in this forum. I need to send Cntrol +C to a running Exe (running on Windows) using a batch file.Can Any … Software Development | |
Hi, I'm using a program called FunEditor which compiles in C++. I doubt many people have heard of this program, but if you have, I would appreciate the help. I'm working on creating a Mario-style platformer game, and am trying to make a function where if the Player collides with … Software Development c++ | |
Hi everyone! I am making a simple chat program in batch (it doesn't use the net send command). It consist of a main DOS window that you chat with called PM, a .txt file called Log that stores what you say, and a DOS window called PM LOG that prints … Software Development | |
Hey Guys, I'd like to try using function and procedures on my project, I tried to write them on different unit say unit2 to be used in unit1. I find a difficulties using them in unit1. thanks in advance! Elva Software Development pascal | |
Hi all, I am very new to Unix. Please help me to write a script. Here is the discription of what the script should do: The script won't need to be horribly complex; it's to check to see if the hawkagents(a process) on a server have been restarted since the … Software Development shell-scripting unix | |
Why static data member 'int' could initialize in class body? but 'double' can't? eg: [code=cplusplus] class Example { public: static double rate = 6.5; //wrong... static int versize = 20; //right } double Example::rate = 6.5; //yes [/code] What reason by design that syntax ? Software Development c++ | |
kindly expalin the following doubt on run method can you explain how run method is called and who calls the run method. Also can you explain that if a main method has one more thread then how the scheduling is done.How the priority is set for main and the other … | |
Hello wonderfull people of DaniWeb i need a little question answered can i manipulate another aplication? here is what i want to do Put a message on the screen if a program is detected as running i know how to detect it but i dont know how to send a … Software Development | |
I had come across some strange behaviour while i was looking at some java code. These are as follows:- 1. here is the first observation The output of this is false but not [code] str1 == str2 [/code]false.can you tell me why? [code] String str1 = "shobhit"; String str2 = … Software Development java | |
I am working on an assignment for my Data Structures and Algotithms in C++ class. My program will take a user input string and determine if it is a palindrome. I have to use stacks in this program. My program compiles with no errors but the following warning is displayed: … Software Development c++ | |
Is there a function that will remove the last 4 char of a string? trimend works but i have to specify which chars. what if i dont know what the chars will be. I still need to remove the last 4 chars. any ideas? Software Development |
The End.