132,726 Archived Topics
Remove Filter ![]() | |
I am new to C# from java. In java I am able to use a decorator for a File object where I can have the file instance as a member variable and add the methods with the operations I need to perform on the file. This seems to be a … Software Development | |
HI everyone. :) .I hope you can help me my function . I want the user to enter number of level "There are two levels" and then display students records in that level sorted by id .the one I wrote sorts then displays so the output is wrong .I tried … | |
Hi Suppose I have my program reading from a file with the following contents: 0.000,-0.073,-0.127,0.034,-0.034,0.146,0.098,0.029,-0.093,0.088,0.107 -0.005,-0.049,-0.112,0.039,-0.039,-0.059,-0.083,-0.020,-0.103,-0.068,-0.073 0.000,0.015,-0.049,0.010,0.308,-0.020,-0.054,0.225,-0.029,0.288,0.132 -0.005,0.020,0.068,0.088,-0.005,0.098,-0.044,0.098,0.073,0.098,-0.151 -0.005,-0.005,0.020,-0.015,-0.239,0.010,-0.024,0.181,-0.015,0.312,0.103 -0.005,-0.049,-0.044,0.044,-0.117,0.010,-0.054,0.244,0.034,-0.024,-0.103 0.000,-0.137,-0.122,-0.107,-0.601,0.093,0.020,-0.068,-0.205,-0.078,-0.039 and then I use StringTokenizer (delimiter ",") and feed the numbers into a vector. [CODE] File myFile = new File(strFileName); //Pass the file content to strFileName BufferedReader br = … Software Development java | |
Is there a way to turn off auto indentation on the ide Eclipse, with every new line it is tabbing one space in, I don't see the option in preferences. | |
hi, Im just a newbie in java, I really want to learn but sometimes I lost my guts to learn coz Im always stuck on something, for example in JTextField UI, I want the UI to accept just a numeric input and prompt the user when the input is not … Software Development java | |
I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following … Software Development file-stream java | |
I don't know how to solve this problem in my code voro.cpp(200): (col. 5) remark: LOOP WAS VECTORIZED voro.cpp(395): same problem voro.cpp(423): voro.cpp(427): I am using intel compiler 10.1 to compile my code the code works fine on dev C++ 4.9.9.2 and V C++ 2008 200 [CODE] for(j=0; j<3; j++) … Software Development c++ | |
hola, I really need your help on this. I tried to do k-way merge sort in c# and finally I ended with this: [CODE] public ArrayList MergeSort ( ArrayList arrIntegers ) { if (arrIntegers.Count == 1) { return arrIntegers; } ArrayList arrSortedInt = new ArrayList(); int middle = (int)arrIntegers.Count/2; ArrayList … Software Development c# | |
hello every body i have a problem with a c program . the question that ( [COLOR="Green"]write a c program that reads a real numbers untill error then calculate the sum and the average of all numbers [/COLOR]) i have solve it with a while looping . and i need … Software Development c | |
I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements … Software Development java java-swing | |
hi, The page we have opened (e.g [url]www.daniweb.com[/url]) and after we are login in to it then after typing the address in the address bar their is a change in the url. Here we copy the address and we are giving that now then the html source what we have … | |
hi everyone i'm novice in vb.net and got stuck with this problem want to add a record in table and used the following code Adodc1.Recordset.AddNew() Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text Adodc1.Recordset.Fields("UrduWord2") = rtfUrdu.Text Adodc1.Recordset.Update() the problem is with the line: Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text and showing following error msg Error Property 'Item' is … Software Development vb.net | |
I successfully created my own help file using the VB 4 help complier. Now I need the code to call my help from my program. Does anyone know how to do this? Software Development visual-basic | |
I made a game, and my friend told me: It doesn't work on linux. I thought it was because when you use VK_SOMETHING that is a value that windows returns when that key is clicked. So... Is their a substitute that I could use, a different function or something that … Software Development c++ operating-system | |
Here's the problem: I've got a datagrid that uses a datagridviewcombobox column that I want to populate with enumerated values from a MYSQL database - specifically, when the program starts, the DataGridView is populated with the names of students (Get1Click) - I then want to add a string variable from … Software Development dataset vb.net windows-server | |
Why do I get this error/incorrect syntax? Do you know how I can fix this? [QUOTE] comparison between signed and unsigned integer expressions [/QUOTE] [CODE=cplusplus] for ( int j = 0; j < item.length(); j++) // error ocurs here if ( item[j] == '_' ) item[j] = ' '; [/CODE] Software Development c++ | |
Hi there, im new to VB and am trying to work out how i can check that my database connection info is correct before i connect. error example with incorrect info: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or … | |
A university has few seats vacant for the new academic yea in the various departments. Students from all over the country send in their applications to the admissions department. The applications will be processed & students who have cleared the test criteria will be admitted to the department. It has … Software Development java | |
I m surprised and wanna know that how the compiler understand the sequence of how data was entered. as i didnt use any space any tab not a new line, how it can point to the original value from a single line..????????? find.txt contain the following line with out spaces … Software Development c++ file-system ios | |
presently iam running my application using the following url [url]http://127.0.0.1:8080/project[/url] without giving the above ip address & port number, can any one suggest alternate way like [url]http://daniweb/project[/url] thnx rajesh Software Development java | |
hi, i have an exception nullreference was unhandled.herewith i have enclosed the code and what message i haved while executing. Imports System.IO Imports System.Net Imports System.Text Public Class Form1 Public Sub submitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submitButton.Click Dim Str As System.IO.Stream Dim srRead As System.IO.StreamReader Dim … Software Development assembly vb.net visual-studio | |
hi, I've a bug in the following code, i don't know where it is?? is it in the design itself, or the code needs threading especially in the "Swing". The following code is a part of simple word game that display a word with it's correct meaning among wrong ones, … Software Development java java-swing | |
I am extremely new to python (programming in general too). I am the rooms director for a large hotel. The reason I am attempting to learn python is to create simple programs to help streamline some of the easy, but lengthy processes done by both my front office and housekeeping … Software Development python | |
Hi everybody, I want to compare 2 tables contents. My tables are: Table1 ------------------ ID || Value ------------------ 1 || forum_list1 2 || Message_list1 3 || Search1 4 || Search5 5 || Search11 6 || Log_out 7 || LOG Table2 -------------------------------------------- ID || Value1 || Value2 --------------------------------------------- 1 || rd_forum_list1_no … Software Development perl | |
Hi all, I have a core java application, I am getting the below exception when ever i run this application. I have a java file named Oracpt.java which takes all variables like username password and url from setttings file which from config file. becoase of this below exception im not … | |
Which JDBC driner is used to connect a java client application to a database over aTCP/IP connection? Software Development java | |
have written a shell script in which I use fastmail to send emails from the shell script. It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs. … Software Development email shell-scripting | |
Hello, I have XML , I am trying to create a xslt on these xml. <Qxml> <Qxml> <Net> <Property Name="DOCTOR" SName="DOC" LongDesc="YYY DOC" Code="666" STC="1"/> <Property Name="ENGINEER" SName="ENG" LongDesc="XXX ENG" Code="777" STC="2"/> <Property Name="TEACHER" SName="TEA" LongDesc="ZZZ TEA" Code="888" STC="3"/> <Property Name="CLERK" SName="CLE" LongDesc="TTT CLE" Code="999" STC="4"/> </Net> </Qxml> </Qxml> I … Software Development xml | |
Hi experts, I've been researching about convert an aspx to pdf but nothing seems to help me. I found crystal reports but my layout is not just gridview only. In my aspx, it includes textboxes, labels, tables, gridview. I need to print them to a pdf format automatically. Due to … Software Development pdf | |
Hi fellas I'm having problem in querying ArrayList with Linq. I'm using VS2005. I installed Linq Preview (May 2006) setup to enable Linq in VS-2005. I created a Linq ASP.NET WebSite Template and wrote the following code. [CODE]using System; using System.Data; using System.Data.DLinq; using System.Configuration; using System.Collections; using System.Collections.Generic; using … Software Development asp.net | |
I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm … Software Development java | |
Hello, I am looking to make a program that will generate prime numbers. The program has to start at a specific number, ex: 3698741 and then end at another specific number, ex: 9874123. The numbers may never have duplicate digits, ex: 9874122. There will be a set of rules as … Software Development c++ | |
Hi, I want datagridview in windows application(C#.net), type in "this is the first line allows the 50 char", if you press "letter" and type "this is the second line", the current cell and go to the cell right below it. What I want is, when I press "letter" and type … | |
Hello, How can I define fixed size of structure in c#.. e.g. [code] struct xyz{ char localc[12]; short localshort; }; I had made a c# structure like this [StructLayout(LayoutKind.Sequential, Pack = 2,CharSet=CharSet.Ansi, Size = 14)] struct xyz{ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public char[] localc; short localshort; } xyz abc = … Software Development c# | |
Hi, I am trying to read data from csv and process the data using c# code and send the data to database. I read csv file using Oledb jet engine connection. It works in my local machine. But does not work in the server, same code, same settings and the … Software Development | |
ok, i am just learnig c++ and i was wondering if it is possible for a feature in a program to be actavated by a certain sound. for example i run this program below on one computer and another program exacutes a function when the sound at 1000hz is herd … Software Development c++ | |
Good day.! How to get the last day of the current month and store it in a variable.? Thank you for giving time.? Software Development visual-basic | |
![]() | Hey guys, I want some of your help.... How do I make a keylogging application in Python [I]without [/I]using pyHook? Any other module for that? I heard that learning about [I]threading [/I]will help...is it true? Thanks guys... Software Development python |
i'm suppose to write a program with two classes, the first class takes two numbers and adds them together. the second class has no methods but has an object called add2. this is what i got class Adder1 (object): number1 = int(input("Give me a number:")) number2 = int(input("Give me another … Software Development python | |
[code=python] total = 0 max_score = -1 min_score = 100000000 total_numbers = 0 x = 0 y = 0 print("Enter a list of numbers, (Enter -1 to stop) ") print ("Press the enter key after entering each number") print ("End the list by entering -1") print () number = int(input("")) … Software Development python | |
Hi. Before I start I'll just let you know that this isn't for school, I'm just doing python as a hobby which I have pretty much taught my self. I'm working on a project, it is the "cheat!" card game written in python, currently CLI but when it is bug-free … | |
Is there a different version if IDLE for Python 3.0(Python 300, Py3k)?? If there is, how do I download it? Software Development python | |
![]() | Can anybody gimme a link to a good msvcrt tutorial, because I want to learn getch() badly! Software Development python |
Hey all, I just recently got into wxpython for my job and I ran into a snag. When print previewing (using the demo code) there seems to be an insane amount of pages, yet only a few of them are viewable. So my questions are: 1) Why is there an … | |
![]() | I wanted to make a Python prog just for fun, to get a pattern like: [CODE] * ** *** **** ***** ****** ******* ******** ********* **********[/CODE] So, basically, I started off by making a script to simply print [CODE] *****[/CODE] using a loop. Here's the code I used: [CODE]import time … Software Development python |
How do you specify a certain path for the import thing to import? such as [icode]import "E:\Tom's Personal Project\engine\shared.py"[/icode] Any help would be appreciated :) Software Development python | |
I'm running a portion of code in a loop. It accesses a global variable only to print it, and that variable is never changed after it is set in the __init__. However, the first print statement occasionally will fail, but the second one does not. Any ideas as to why … Software Development python |
The End.