132,726 Archived Topics
Remove Filter ![]() | |
Hello! im new here and i have a problem regarding programming. We are required to compute for the distance of a certain city to another city...for example whats the distance of new york to los angeles..then the program will compute its distance... the output of the said program should be … Software Development c | |
Hello developers, Im still practising my programming with coding a calculator after some reading on the basics of Java. Could really use a pointer or two here. I wrote a calculate function(calculateResult). The error message I got says that the function cannot be applied on the 'number2' argument. (on line … Software Development java java-swing | |
hi friends... i have some doubt regarding the output at the console. what we generally have is that the output is written on the console and the cursor moves always forward. But what if in some special case we want to back track the cursor a few characters of lines … Software Development c++ | |
I'm am trying to write a program that will do the factorail of big numbers and yet i still can not figure out why it does not work. when i do the factorail of 5 i get 20 it should be 120 and i cant figure out where the bug … Software Development c++ | |
Hi all, I'm training at college in VB.NET, I'm not that far along, but know the basics. My father is in the IT dept at a printing firm. A programmer developed a fairly simple "Label Printer" application for his company in VB6. They've been running it on the shop-floor computers … Software Development laptop printer vb.net visual-basic visual-studio | |
Write a java program that uses inheritance to extend box. Use the extend keyword to include weight. // use the super keyword to access the variables //of the parent class, remember that only weight(m) //was declared in this class but the other three //were declared in the parent class so … Software Development java | |
I have a test soon and are having troubles with the following questions.. 6) A local variable is a: (A) variable declared in a field (B) public statement of a variable in a method (C) private statement of a variable (D) variable declared and used within a single method 9) … Software Development java | |
Hey all, sorry to bother you but I have been wrecking my brain with this issue. I have been programming php for several years and needed some portable console apps so my natural choice was to go to c++. Now I got stuck when trying to create an sql query … | |
Hi Group member, Am a beginners programmer. i have a task of extracting data from a text database, split and write it to another specify folder.Pls i need a code to do this. thanks Software Development visual-basic | |
Dear all, Could you please help me? I would like to know whether it is the same or not. Is it the same "mouse click" and "mouse Press"? I want to detect the mouse is pressing with API. Which API should I use? I actually want to know the detection … Software Development api visual-basic | |
// I want to dislpay my cout in an acsending order by ssn // here is the program [code=cplusplus] #include <iostream> #include <cstdlib> #include <string> #include <fstream> #include <math.h> #include <ctype.h> //Ebrahim Sharif //ECE 370 //1-16-2008 using namespace std; void getPersonalInfo();//function prototypes int Str2Int(string InpStr); long Str2Long(string); void lookupPerson( char … Software Development c++ | |
Hello friends !!!!! I want to do a project similar to [COLOR="Red"]alarm clock[/COLOR]. If I have written some timings in a string or some thing, whne the current time of clock equals to the timings given it should display the next time given in that string to the user in … Software Development vb.net | |
Hi, I have this app running fine on my pc with connecting to SQL server on my localhost using windows authentication. Now I am going to deploy it on my client's server where SQL Server 2K DB is on server "abcd" with SQL Server credientials (No windows authentication) My problem … Software Development client-server sql vb.net web-server windows-server | |
Hi all, I am fed up of doing this week scheduler for my project...i am trying and trying but seems to go nowhere..I thought of asking u people for any ideas...(windows application) My project is online ticket booking and i have a admin screen where he can schedule movies for … Software Development c# | |
I want to read Xmlfile and extract its contents to display on form in textbox using [B][COLOR="Red"]vb.net2003 [/COLOR][/B] How to use the XmlTextReader to read the contents of an XML document and extract the contents, if can be done.... :icon_cry: | |
hi, I am doing a lab assignment for my C++ class and it wants us to use serveral pointer indirections for each variable. The program runs but then crashs and it seems to occur during the second iteration of a for loop in the arrayGet function. I'm not sure why, … Software Development c++ | |
hi all, Is it possible to run visual basic's .exe file or application from vb.net application If yes then can anybody tell me how n can tell me code for that. Actually i want to run vb application from vb.net if possible then please tell me as soon as possible … Software Development vb.net visual-basic | |
Hi, I am new to C# and I would like to know is there any way to create User Mode Driver Framework using C#. thanks, Hari Software Development | |
Greetings, I'm quite new to C++ and i got a problem with my program. It seperates words in a string using the strtok() function. These words are then put into an array, which means the array can contain multiple same words. I'd like to copy different words from this array … Software Development c++ | |
I want to get a new Graphics card for my PC and although I know how to do the physical part of putting suff in I don't actually know how to go about looking for one and how you can judge how good one graphics card is compared to another … Software Development visual-basic | |
Hello, I just downloaded the PPM Repositories module from [url]http://search.cpan.org/dist/PPM-Repositories-0.11/[/url] How do I include the repositories in my PPM? I read the documentation but it didn't make any sense to me. I have PPM 4.01. Software Development perl | |
How do i create a progress bar like in windows 98 it is colered and is on the startup screen here is the picture [IMG]http://i17.tinypic.com/6lja70n.png[/IMG] can anyone tell me how to make it please? Software Development visual-basic | |
Hi, I have been recently programming a application in visual basic 2005 express edition. My program is like windows which has programs inside. So i have these buttons in my program that link to other programs. The only problem is that i wanna create a taskbar. I have put a … Software Development visual-basic | |
Hi, I wrote a function in 'C' as follows. [CODE]void myfunc(int x,int y) { asm mov ah , 0x02 asm mov bh , 0x0 asm mov dh , y <=Error Here asm mov dl , x <=Error Here } [/CODE] It shows the error "Invalid use of Opcode and Operand". … Software Development c | |
First off, the standard disclaimer: I am pretty new at shell scripting, and my work at this point is mainly hacked-together ideas and pieces from other people's. Thank you in advance for your tolerance. :) I am using Ubuntu Linux 7.10 Gutsy, which has the bash shell. I wrote a … Software Development shell-scripting ubuntu | |
Hello everyone, i have the following code [CODE=cpp]#include <iostream> #include <conio.h> using namespace std; int main() { cout<<"\nPress Any Key To Continue "; getch(); return 0; }[/CODE] it compiles fine on my windows xp using microsoft visual c++ , and i can run the resultant executable file with no problems … Software Development c++ ![]() | |
[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty … Software Development java | |
Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks. Software Development java | |
hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance ! Software Development java | |
Hi ! I'm trying to find the substring in a shell script as given: [code] #! /bin/bash HTML="<html><body>OK</body></html>" OK="OK" OFFSET=`expr index $HTML $OK` OK_LEN=`expr length $OK` var1=`expr "$OFFSET"` echo $var1 var2=`expr "$OK_LEN"` echo $var2 INPUT=`echo | awk '{ print substr("'"$HTML"'",var2,var1) }'` echo $INPUT [/code] But on running it does not … Software Development shell-scripting | |
[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; class Matrix { public: Matrix (int =0, int =0); ~Matrix (); Matrix (const Matrix&); void operator = (const Matrix&); Matrix operator + (const Matrix&); Matrix operator * (const Matrix&); Matrix operator - (const Matrix&); int* getMember(int =0, int =0) const; //returns pointer … Software Development c++ matrix-multiplication | |
I am writting a program that needs to access files in MyDocuments folder of the user running the program. I am aware of GetUserName() but the program is being run as a service and so GetUserName() returns SYSTEM. Could anybody help me with how to get a list of all … Software Development c++ | |
Hi. Below are two pieces of code. This first one works fine: [code] char str[] = "Hello World"; char *b; b = &(str[3]); *b = '3'; printf("%s\n", str); [/code] However this second one results in a segmentation fault. [code] char *str = "Hello World"; char *b; b = &(str[3]); *b … Software Development c | |
Just getting into XML and other X-stuff so this may sound little silly as I'm thinking more ahead of I'm currently reading and able to do, but here it goes...:twisted: Take simple example of CD collection. Currently with use of XSL i'm able to display my XML document as table … Software Development javascript xml | |
I have a C++ program I am debugging in Visual Studio 2005 IDE. It uses a DLL. I have the source code for the DLL. Now, suppose I want to debug and step through the DLL. How do I attach this to my current project? Actually, I can already debug … Software Development c++ ide visual-studio | |
Hi all, Plz helpme out with this error. I am trying to Port my C++ compiler from Sun C++ compiler to GNU gcc 3.4.2 and i am getting below errors..Guys any idea how to solve this. [code] In file included from /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/include/c++/bits/stl_algobase.h:72, from /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/include/c++/bits/char_traits.h:46, from /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/include/c++/ios:46, from /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/include/c++/ostream:45, from /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/include/c++/iostream:45, … | |
I would like to ask for the looping statements and conditional statements syntax and some samples for me to easily understand... And also, How can I edit numbers to have its decimal points like float and double in other programming language. I'm really noobie with Linux so can someone please … Software Development shell-scripting | |
I am using BCB6 so I hope this is the right forum. I am using asyncpro's TApdComPort component for serial communication. I need to send 12 bytes and receive 22. I can send the 12 bytes using putblock(..). But I can't figure out how to reeceive my data. Also, I … Software Development c++ | |
hello friends i want to clear screen after inputing data before it displays what ever the program intend to do. is there some function or special character to do that ? secondly i want to increase size of fonts where i type my program. i try to look around but … Software Development c++ | |
hi all, i have a problem with pthread programming. function_1(){ . . rc = pthread_create(&thread, &attr, my_function, (void *)&my_data); . rc = pthread_create(&thread, &attr, my_function, (void *)&my_data); . } As the above “`function_1`” do, the “`my_function`” can be executed any number of time according to our need, but the problem … Software Development c | |
I hear alot of people saying not use: [code] system("pause"); system("cls"); system("title"); [/code] I think you get what I mean, so I'm trying to make functions that will replace all of these, and for my first installment I'm going to show you how to replace system("pause");. Here is what I … Software Development c++ | |
Hello , need some help on following code: HH = DateTime.DateDiff("h", "01/01/2008 12:30:00", "01/01/2008 15:00:00") MM = DateTime.DateDiff("n", "01/01/2008 12:30:00", "01/01/2008 15:00:00") SS = DateTime.DateDiff("s", "01/01/2008 12:30:00", "01/01/2008 15:00:00") MsgBox HH & ":" & MM Mod 60 & ":" & SS Mod 60 the result shows : 3:30:0 im expecting … Software Development visual-basic | |
Hi I am newer to programming and need a bit of help with this program. You all have helped me in the past with my programs but this is a very complicated array of structs program and I don't really understand it very well. OK, heres the directions. The distance … Software Development c++ | |
![]() | For a given list, I would like my output to have the line "Deleting node with value ..." for each node. My destructor function works for a 2-element list, but for a 3-element list it deletes a certain node more than once, and for a list of any size greater … Software Development c++ ![]() |
Hi there folks, Very new to java and I have what I hope will be a simple question... I have JDK 1.5 installed on my C: drive and my source on my E: drive (flash drive). I'm trying to run the source and I always get NoClassDefFound errors when I … | |
This is a past exam question that I'm doing for revision. I didn't think this was going to be as tricky as it turned out. I would just appreciate some advice on how I can make it more elegant/professional/etc.. I'm sure this has been discussed before and there are some … Software Development c++ | |
Hello there, I am trying without much success to display multiple columns from a database where the selected data is dependant on specific common data. I have tried using an SQL statement with a Jet 4.0 OLE DB connection. SELECT Name,Date,Action FROM Track WHERE SerialNumber="1" with the output displayed in … Software Development display visual-basic | |
I have the following example and need to parse only the numbers from the string: From: EG2594 To: 2594 or, From: EG2594_1 To: 2594 Then I need to add a P to the extracted numbers, so it would end up as: P2594 as my output. What is the best, simplest … ![]() | |
Ok im pretty new to coding in general and have two questions. 1. I downloaded a python script that packages my programs into an executable however im running Windows Vista(i believe this to be the problem) and when i try to run the executable i get a win32 error. 2. … Software Development python windows-vista |
The End.