199,114 Archived Topics
Remove Filter ![]() | |
{6,12,4,7,9} How do i write a method name serachMax that receives the list above (as an array of integer) as it's argument and return the largest value in the list and How do i create a method name countitem that receives that list above (as a referenced based linked list … | |
just like a no-purpose hunter, I wandering in Java's world;so honestly speaking,I am just a beginner. now I have a puzzle: in a Java program ,there are so many class files that I have no idea how to deal with them. give some advices,thank you! | |
Hi all, I require some help using ifstream. I want to open a file who's name is made up in part by a user enter string - this is the format of the filename ... [code] "Airports_" << airlineICAO << ".txt" [/code] i did try the following ... [code] ifstream … | |
Hi, I'm a newbie to C++. I use Windows XP Home Edition and VC++ .NET 2003. I have just recently started creating large scale C++ projects with more than one file. I've been having troubles linking the files together. I solved the problem by adding "/FORCE:MULTIPLE" to the command line, … | |
Does anyone use MFC? I have a problem executing graphics functions. [code] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] CMainFrame::OnTimer(UINT idEvent)[/COLOR] { idEvent++; //when a time event occurs do some pointG2.y-=3; //graphics pointG=pointG2; TimerEvent(); [COLOR=#008000]InvalidateRect(NULL, TRUE); //to call [COLOR=#000000]OnDraw[/COLOR] [/COLOR]} [COLOR=#0000ff]void[/COLOR][COLOR=#000000] Csail_boatView::OnDraw(CDC* pDC)[/COLOR] { //graphics functions here //they compile OK //OnDraw is called by the even … | |
hi im a student and hav t mak aproject on c or c++... so if anyone cud help me out | |
Hello Freinds, I am in need of a shell script whiich rsyncs a folder from a server to my machine. My major concern is not a script that rysnc's but it should send a mail if the rsync failed for some reason while copying the files.. For example the remote … | |
I'm writing a utility program. In fact, the program will be a Console application that will contain many static methods, each method being a specific utility. The application will take two command line arguments: filename, and utility name. Of course I want to run the method specified on the file … ![]() | |
Is there any way to get the cuurent time using C in LINUX. I tried with clock_get time(). But i'm getting the same time for a particular amout of function call. The code i've used is given below. Is there any way to get the time in an higher resolution. … | |
I have for instance this function I wrote and want to assure that the argument is a number when I call the function. [code]def hypotenuse(n): "return the length of the hypotenuse of an isosceles triangle" return (n*n + n*n)**0.5 sides = 3.7 print hypotenuse(sides) [/code]Any ideas how to do this? | |
Hi All, The program I am writing is throwing up an error when it runs on this line [code] runArray[counter]++; [/code] i am trying to increment the number at location counter in the array. Is this the correct way to do this? Thanks | |
[B]hello,,,, pls help me ,,, I need some VB Programming about Priority Scheduling Preemptive,,, [/B][B]preemptive priority scheduling with gantt chart tnx.. tnx.. seanx [/B] | |
Hi i am new to the discussion forum and i want to learn cpp. Why destructor with ~ is used in cplus-plus coding for every constructor? Thanks | |
Hi All, I'm new to the forum....med programming experience. I've built a database application in VB4. It works fine in the VB environment. As soon as I convert it to an EXE and install it on my PC at work - it stops working. The first forum (password forum) opens. … | |
Hello: I am new to Macromedia Flash. I have been building some simple movies and games via tutorials and experimenting with Actionscript; I am looking for the method to display an image dynamically against a background upon user-input, say, via mouse selection on an element upon the screen (I have … ![]() | |
1.I'm Using Posix Timers. I Would Like To Kno Whether It Is Possible To Fire Two Timers With Same Signum. The Signal Event Function Is Different. 2. Is there any way to send an argument to the signal event function other than signum. the functions i used for timer are … | |
Hi, I'm having a classic 'doesn't work in IE but works in FF' problem. I have a site [URL="http://learn-croatian.com/"]http://learn-croatian.com/apdejt[/URL] and I wanted to make it easier for me to update metas in all pages with help from php. I'd change the php variables in a central file which is included … | |
I need to read records that I created, written to a .txt file using a code and I d like to know how to use EOF in the code to get the programme to read till end of file, and to display them all as I click next. Code for … | |
For my programming class, I have gotten to the lesson that involves overloading constructors and what not, but I have a problem with mine that I am possitive is a very simple syntax error or something. If anyone could be so kind as to take a look at the following … | |
Hi Java People, I have one servlet , few JAVASCRIPTS, one JSP page. First when I login some processing is done at back in servlet and some variables are set. after login i enter into main JSP page which contains some BUTTONS. On click of every button I have some … | |
I'm getting into Java programming, and find myself at a loss for a good Java IDE for Linux. I'm running Mandrake 9.1 (I tried Gentoo, but I'm to much of a n00b to linux) Can you guys suggest any? Note to Dani: I know about Borland's JBuilder, but I want … | |
I am writing a program which has these require ments 1.Program must be command-line based and interactive, allowing the user to control its operation by entering commands. 2. ability to accept new data 3. ability to search for specific previously entered data 4. ability to save data to a file … | |
dear sir, plz help i am in a thick soup. i am a student in my final semisters of IT and i need to develope a software for my project. Actually i wanted to devepelope a software for the automation of a restuarant. i have learnt VB and i know … | |
im making this game that is called PyTanks. If you want to know more about it please visit [URL]http://pythongaming.py.funpic.org/pythonmadegames.html[/URL] ... Anyway, I ran across this problem, how do you delet or remove a letter from a string. Lets say that my string is- string = "open sesame" I want to … | |
Hello. I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format the following in C? How to describe it, it's like a chain. I have to take … | |
Hello, anyone can help me to complete special grids on picture box. My program is running, but drawing is not so fast ! | |
I want build a staff information system use visual basic as a interface and microsoft access as a database. Please some one help me. | |
Hi there... may sum1 help me... i need to know how to open Access data base from VB6??? THANKS | |
good day!.. i have this soap message that will be sent to a simple service provider simulator.. since this is only a simulation, i there will be only one service named leave (e.g. vacation leave, sick leave, etc.) [code] <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://leaveprocessor.blueprints.jbi.sun.com/"> <soapenv:Body> <ns1:processApplication> <appName>applicant</appName> <leaveType>type … | |
I just started Delphi and wanted to toy around with some of the features of it, so I started to. I made a TRichEdit box on Form1. If I run the application and try to type in the textbox, nothing appears, the cursor keeps blinking, as if I did nothing … | |
need help with command line arguments and creating a package in java. i need to hand this in soon and obviously i cant do it can someone help me. | |
You are to write a numerical base converter. This application will present the user with a menu to select the originating base and a subsequent menu to select the destination base. You will loop through these menus until the user wishes to quit. You are required to break the code … | |
I've been trying to figure what I'm doing wrong all day. I'm becoming discouraged. Can anyone help me out? [code=cplusplus] void stripSpace(string &str) { int i,j,len=str.length(); for (i=0;j=0;i<len;i++;j++) if (str[j]==' ') { str.erase(j,1); j--; } str[j]='\0'; } [/code] I just won't seem to stop until I get this fixed!!!! Any … | |
[B]Hi all how r you !! I miss u all very much .. I make a project of internal web application. This application should have a full mail system (inbox , compose , ... , etc). Can any one help me to create it or to find a free control … | |
Here's my code... i put in some troubleshooting couts, but I can't figure out what's going on. #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { const double INT_RATE = 0.10 ; const double FACTOR = 1.0 * INT_RATE ; const int START_AGE = 16 ; const … | |
i am trying to write a program to take a string and arrange in alphabetic order but iam totally fail to do it please help me | |
Hi, I need to grab a specific information in the /proc/cpuinfo (MODEL NAME) and print it on the screen in python. How do I do that. Thx for helping this newbie | |
this is the code( not a complete code) [code=c] int master(int argc, char *argv[]) { int slaves_count = 0; m_host_t *slaves = NULL; m_task_t *todo = NULL; int number_of_tasks = 0; double task_comp_size = 0; double task_comm_size = 0; int i; xbt_assert1(sscanf(argv[1],"%d", &number_of_tasks), "Invalid argument %s\n",argv[1]); xbt_assert1(sscanf(argv[2],"%lg", &task_comp_size), "Invalid argument … | |
1.'Java is platform-independent'- - What's that supposed to mean though the Java run-time package differs from platform to platform;almost similar to creating different compiler for every different machine for the purpose of executing a C/C++ program? 2.'a machine is big-endian'-what does the statement signify? 3.As the Unix OS is entirely … | |
I am trying to use chinese letters in a c++ program I'm writing. does anyone know how this can be done? I know that: [code]TEXT("[COLOR=#800000]\u03a3[/COLOR]")[/code] will print out a latin letter, so how do I get a chinese character, and perhaps there is an easier way? I need this asap, … | |
How do I change the value of a bookmark in Word 97 from VB | |
Hi everyone, I was trying to load an assembly during runtime from a remote application server using the web configuration file in C#. I created a dll eg. RemoteLib.dll. Then i developed a windows application that uses this dll. eg. testApp. I added a config file "testapp.exe.config" that contained the … | |
I am trying to remove entries if they contain the word "connected" in Perl. My file looks something like below. So In this example, I would like to search for "connected" and if found remove all 6 lines associated with it. If not found, then move on to the next … | |
I want to have radiobuttons with text that is displayed underneath the actual buttons. Is there a way to do this (within the contents of the Radiobutton widget, that is, not resorting to labels)? I know this question is ridiculously simple, but I haven't been able to find anything in … | |
Hello Im using Framesets In one of the frames [code] <FRAME SRC="GetURL.aspx" NAME="inputFrame">[/code] the frame is used to gets a string of html characters The string is called StrResponse [code] Response.Write(strResponse)[/code] displays the html in the input frame GetURl.aspx but I want the string displayed in <FRAME SRC="C:\test2.html" NAME="displayFrame"> any … | |
Hi, I usually only participate in the C/C++ forum but i guess desperate times need desperate measures. Well, i am trying to query an LDAP through DirectoryServices but can't seem to get it right and need ur help in the matter. Here's the code i am using.. [code] strUID = … | |
I don't seem to be able to save a number to a data file: [code]a = 123.44 f = open("data1.dat", "w") f.write(a) f.close() [/code] I get this message: [code]Traceback (most recent call last): File "<string>", line 204, in run_nodebug File "C:\Python25\ZLM\int2file.py", line 4, in <module> f.write(a) TypeError: argument 1 must … | |
Alright, here's what I'm working on now. It's supposed to go through an inputted list of words, pick out actual words and create a numbered list of them, then, where it finds a number in the list, go back in the list from that number, replace it with a word, … | |
i hav calculated a value(years).Now i want 2 merge it with an attribute of table(ml_y2 wher 2 is year).So i want 2 merge ml_y and 2.then i want 2 find the value of ml_y2 frm a table....plzzzzzzzz help me .can i do somthing like this in MY SQL??? |
The End.