132,726 Archived Topics
Remove Filter ![]() | |
Aight ppl i am in search of a script which will be helping in my work alot. i need a script, which can read one file and detect changes in it. eg: like i want to track the gain/loss of castles in a game. Rank Name Castle Land Kingdom Strength … Software Development c | |
I have just started doing a little C programming and, looking here and there, I have noticed a lot of people prefers to use <iostream.h> library (and related commands "cout" and "cin") instead of using <stdio.h> library (and related commands "printf" and "scanf") What are the advantages and/or disadvantages (if … Software Development c | |
I would like some help regarding multithreading... i want to know what exactly happens when i start a new thread... i.e how it affects the variables etc. in the program... one query i have is what happens if i start 2 threads starting with the same function.. will their running … Software Development c multithreading | |
Ok I have done this program where there are 2 buttons, one to enter price and one to calc average, so the user enters an randome amount and click the enter price button then user can keep entering more and then click calc average button to get average, but problem … Software Development display java java-swing | |
if the token is separated by character like ':' or '|' how can you use sstream to tokenize it? << moderator edit: split thread from [thread=27724]here[/thread] >> Software Development c++ | |
Hi guys I have a a text box that is initialized with some value, let's say "William". When I run the program, the text box shows "William" of course, but what I want to do is to type something else, let's say "Vincent" and set this value as the default … Software Development visual-basic | |
I have been working on some python code with a friend and for some reason i keep getting this message when i try to run his code, if ar[2]!="client": IndexError: list index out of range I can't see whats wrong and i have never had this message come up before?? Software Development python | |
May please one of you explain me what the hell are these sucking error messages and how can they be fixed that the sucking DevCPP compiler generates out for no reason which I have been trying to solve for two entire days? [Linker error] undefined reference to `wglCreateContext@4' [Linker error] … Software Development c | |
Hello all! Ok here's my problem: I have a Hello World type program that I want to run in steps, and each step is in a new window. When a "next" button is pressed the old window terminates and a new one is created. Now I don't know much about … | |
Think of typing a password. You type your password but what you see is merely a asterisk sign. If you use `getch()`, no problem! Put the problem is that I can't use the getch. See the code: struct Func { char password[9]; char name[34]; char code[8]; }element; do{ gotoxy(21,6); printf("****************************************"); … Software Development c | |
Ok, I've only been working with Python for something like 4 days now and I'm stuck trying to do a certain thing in Tkinter. Now, just to get you into the situation here. I've created a little program that has an entry bar and a go button. It says for … | |
I have heard that it is possible to compile python so that people reciving the script don't need to worry about going to the python website and downloading it. One more thing if you tell me to run something from the prompt I can't for the life of me run … Software Development python | |
Hello there, i am new at C++ and i would like to learn a few thing if you could help me. I would like to learn how to load sounds on C++. I mean having the sound file on my computer and input it on the exe program i create … Software Development c++ | |
hi all have spent a lot of time recently trying to get the attatched programe to run. decided to start from scratch,went through the tutorial for vb6 on main page of functionx , tried a few examples and all are ok,except where i had put in code incorrectly. but this … Software Development visual-basic | |
Hi all! I am getting compile errors when it is Linking. --------------------Configuration: CIRCLE - Win32 Debug-------------------- Compiling... circle.cpp Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/CIRCLE.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. CIRCLE.exe - 2 error(s), 0 warning(s) [code]# include <iostream.h> class CCircle { … | |
i tried this #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { // Declare input stream ifstream fin; int min, max, val; int isFirst = true; fin.open("inFile.txt"); fin >> isFirst; min = isFirst; max = isFirst; while (fin >> val) { fin >> val; if (val < … Software Development c++ | |
This problem is especially annoying because it works on my computer. I think it has something to do with this computer being the one that it was compiled on... Anyways, here's the page: [url]http://hp-h.com/p/gzero14/java/HydraSWApplet.shtml[/url] Since I used basically the same html for some other applet and that one works, I … Software Development java | |
[CODE] string s; getline(ifile, s, '\n'); stringstream parser(s); string temp; while(parser>>temp) variables.push_back(temp); getline(ifile, s, '\n'); while(parser>>temp) terminals.push_back(temp);//Doesn't work the second time. [/CODE] stringstream can tokenize the string s only for the first time. The string s is passed to it through the constructor. How can reinitialize the stringstream object? Software Development c++ | |
I need to have my code modified, but am unsure how to write the code to do it. After the ID and name are poped from the stack, I need the program to automatically display the list created i.e. I don't want to use display as an option. I think … | |
I get very large binary print files that need to be sent directly to the Windows spooler. If the file is less than 2GB, I get LOF (or FileLen) and divide that by a defined buffer size. A segment of the input file is read into the buffer and then … Software Development visual-basic | |
Below is my new code for this julian day program. I have fixed some of the errors I mentioned earlier. However, the day is still one short for the julian day and my conditional if statement seems to be the problem. I have tried a couple of ways to fix … | |
Could someone please tell me how to hyperlink to a page? Say if I had a combobox and the user selected an item, how could I hyperlink to a page? | |
I am pretty much done a shell program I have to write for my operating systems class. The only problem is that I can't seem to figure out how to make this function work. It is supposed to separate out a list of tryable paths that is from the getenv("PATH") … Software Development c first-post operating-system | |
Hi All, I am working on an assignment for this week, and once again could use your help in understanding concept. Basically, a company pays their salespeople on a commision basis, I need to write a program that uses a single-subscripted array to decide how many people are getting paid … Software Development c++ | |
With school out and summer in full swing I decided to learn C++ in order to keep myself busy. I've been playing around and learning a lot. So far I've been able to make a program that solves quadratic equations! Alas, I've encountered a problem I can't figure out for … Software Development c++ java-swing | |
i am programming in Microsoft Visual c++ 6.0 and I have two linking errors that I do not know what they mean. Can someone please help. Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Programming Project 1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. | |
Dear Friends i want help about the Simulate a Linux/UNIX shell, called MASH (for MiniAture SHell) in the C. plz read the the my problem and send the best solution of my problem as soon as possible. Objectives: After the completion of this assignment you’ll be able to: Simulate a … | |
Hi all, I am trying to malloc some memory and then pass the address of the first array into another function however I keep getting the same error (see thread name). [CODE]Error:error C2664: cannot convert parameter 1 from 'float **__w64 ' to 'float *[/CODE] Here is a short version of … | |
please someone give me some idea to write this program Write a C++ program that has class 1) math Math class has only one data member number and member function display that will display the data member number. Write the constructor of your math class that will initialize the data … | |
Hey guys: Can anyone please help me. I am having problems with this program and nned help understanding this. here is the code and the problem. Thanks. =========Mr. President============ Use a text editor such as Notepad to create a text file that contains several integers. The first integer in the … | |
Well, I'm hoping someone can help me.... I've got a web application that queries data from a database based on selections made in previous dropdownlists. The problem is that some of the final queries return only one data item. I'm using the onSelectedIndexChanged with autopostback enabled as my events in … Software Development vb.net | |
Below is my Julian day program. I have to convert a day into julian and then get todays date and tell how many days from the julian date it is. I am having problems with the output of the julian date is off by 1 day and my difference output … | |
Hello Smart People, I'm implementing an Ant Simulator (swarm search stuff) and I'd like to be able to load different "species" of Ants (.java classes that implement an Ant interface). I've been having trouble creating "num" of a certain species and initializing their initial position. If num = x, then … Software Development java | |
hi im writin a simple GUI project usin C++ (Dialog). i have an input file with a list of foods. my goal is to display the list of foods in a ComboBox and then Add some new food and Delete some. But i just cant put the list to a … | |
How can i write a function to acces a serial port and control timeout? Software Development c++ | |
Hi, quick question: Is it possible for vb6 to receive an answer from PERL via a return statement? Let me expand: The thing is, I have a CGI script that I would like to send data to a VB application. I know VB can "call" the script by making an … Software Development perl visual-basic | |
Hi everyone, I am trying to add html tables to a html document and the html table appears but here is the problem in that only certain attributes of the table is being adhered to and the rest ignored. This is what i am doing [code] String table = "<table … | |
I wrote a simple program to print out Testscore in Visual Studio .Net 2003 and got the following messages when trying to run it. 'TestScore.exe': Loaded 'D:\Documents and Settings\pooleb\My Documents\Visual Studio Projects\TestScore\Debug\TestScore.exe', Symbols loaded. 'TestScore.exe': Loaded 'D:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'TestScore.exe': Loaded 'D:\WINDOWS\system32\kernel32.dll', No symbols loaded. The program '[3920] TestScore.exe: … Software Development c++ visual-studio | |
In order to provide a simple "garbage collector" for my programs, I'm trying to write a template smart-pointer class, that may be used like that : [code] #include <ref.h> class Foobar{ ....}; ref<Foobar> sample_manipulation(ref<Foobar> in) { ref<Foobar> f=in; //.... return f; } int main(void) { ref<Foobar> f1=new Foobar; ref<Foobar> f2; … Software Development c++ | |
I have a commondialog on my form, 1 textbox, 1 command button. I want to show the path of a link(link file) on the textbox using the commondialog? how should I? When I write the following code, I get the path of the actual file and not the path of … Software Development visual-basic | |
Hi All: I am new to this List. I am creating a Swing GUI based Word Processor which takes in English Text and using KeyListeners converts it into Unicode Devanagari - the Script used for writting The Hindi Language of India - which is dispalyed in a JEditorPane set to … Software Development display gui java java-swing | |
Hi, I've made a web application, and now I want to be able to distribute it with a copy of MSDE SP4. MSDE has to be installed via command line, and the web application takes a certain database setup. I've got all the scripts and commands ready to install the … | |
I want the timer to set the interval in hours or minutes and not in milliseconds. I get the following error when I set the interval as in minute as Timer1.Interval = 60000 * 5 "Run-time error 380, Invalid Property Value" Software Development visual-basic | |
Hi everybody! The application I´ve been working is almost done, first of all thanks to all for your help. But now I want to do something extra and don´t know if is possible. My application starts when I call a bat file with the javac and the java command to … | |
I have a "dynamic" JComboBox. What I mean by that is items are removed and added on "the fly". The getSelectedIndex() is returning -1 when an item is selected. I looked this up and it indicates the selected item is not in the list....What in the world does that mean? … Software Development java | |
Hi All, I want to update an attribute in LDAP using VB. when i try to do this using the obj.get property I get the message: 'The active directory property cannot be found in the cache'. How to sort out this error' Thanks for any help Software Development visual-basic | |
Hello ladies and gents, I had to do an exercise in wich I was required to compair two standaardtype strings opposits, meaning: name = "Johan", name2 = "nahoJ" The idea was to return a bool value True or False. I did this with the following code I wrote:[code]#include <iostream> #include … Software Development c++ | |
[B]This message is long, just focas on the bold parts which their aint that much, dont mind the smilies Plz help me solve the compile error[/B] [B]An overview of my program[/B] The program takes the results from a html form(questionaire) than either updates the files with the results or adds … | |
Hi everyone, I need help writing a program.. I have no idea how to start off ...can you please help me...I am very lost :sad: Thank you soo much if you can help because I am extremely confused. A parking garage charges a $2.00 minimum fee to park for up … Software Development c |
The End.