199,114 Archived Topics
Remove Filter ![]() | |
How can i find out the Max and Min value from a Vector, what's the function can i use to do that? max_find() e.g. double x[]; double x_max; double x_min; x_max = max_find( x ); x_min = min_find ( x ) ; | |
normally we read text file like this.. $filename = "D:/Point/Point.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); if i want read text file on LAN computer. how to write path name of the text file?? | |
Hi folks, Perl === Please advise how to add 'bold', 'italic', 'colour', etc. such features to the printout. Can HTML syntax work on perl? I tried seeming not applicable. TIA B.R. satimis | |
hey ya'll i've made this code (simple, bc that's what i am) and i think it would work except for the tiny problem that i always get the error that the switch statement is illegal, but i don't know what to put instead (when i do run the program, it … | |
I have built a SDI project in Visual C++ called HelloSDI. I used a book I bought to learn about Windows applications. The project compiles 0 errors and 0 warnings. The project has a simple dialog box added to it. When I run the program up pops a window that … | |
Greetings......... I bought a basic application that doesn't print out a hard copy properly. The sellers of same can't figure out what the problem w/their code is. Would like to get a "bare bones" Qbasic app without mortgaging my very being. Am I asking too much, or is my need … | |
guys, i need your help. please... i need to make a function which compares 2 values if they are equal up to 1,2,3,4,5 significant figures. it needs 3 parameters: x1, x2 (the values to be compared) and sf (the # of sign. figures) i think i need to subtract x1 … | |
Ok, for a lab I have to write the UNIX more filter in C, but I have got everything done execpt one thing. I only hvae it to where it can read 20 lines at a time. But what I want to do is if argv[1] == -Pxx where xx … | |
i want to do aprogram to convert from octal to binary and vise versa i tried many but without aresult help me blease | |
Howdy All I know next to nothing about PHP, just very basic stuff. I have a PHP Mysql driven web site that I would like to change the look of. I am looking for a program that I can point at the PHP file and will show me the HTML … | |
Hello everybody! My name is Given and I'm new to these Forums. I have been given an assignment by my c programing teacher and I don't know where to start can somebody helpme? I have attached my question here. | |
I'm currently stuck in my program. I'm supposed to create a new method that inputs a message string and takes each letter and converts it into a two dimensional array of 1's and 0's. For example the letter 'H' would be 10001 10001 11111 10001 10001 My thoughts were to … | |
Hello, I have a project which involves basic implementations of linked lists, in C. First though, I have to read the information from a file, which contains all different types(int, char, float) which is my problem...after i read the information into the nodes, it should be smooth sailing.. I was … | |
How did Dani get the "Search" link to go directly to the advanced search page? Also does the Search field (see the purple-colored bar near the top of the page) perform the same search as on the search.php page? | |
Well first some background, this hasn't happened before but last night I had some trouble installing a shoutbox mod so I undid all the steps I had performed I have also installed a search engine friendly mod successfuly which makes php links html links even though I know ipb supposedly … | |
I go to make my program and I get those warnings. I know that they are linked to the exceptions my program throws during execution which terminates my program another godamn debug error. The problem is that when I double click on the warning, it brings me into the complicated … | |
I get an error message that reads: "Your web Browser does not support Java Applets or Java is not enabled in web browser Preferences." It is there a way to correct this problem? I am new to Java. Please give me a detailed explanation if possible. I am running "Windows … | |
Hello All I am new at this website and I hope I can be a good memeber. I have a question about C programing language. I need to change the decimal point of a double for example: If I have a doubles with 5 decimal digits 123.45678 234.12345 34.34567 I … | |
I made a text editor with very basic funtionalities. I wrote it all in one class because I really wasn't sure what to put into other classes. Right now the code is pretty messy and I want to rewrite it. I was wondering if anyone could give me some input … | |
I am working on a time card program in Visual C++ (FYI: I am VERY new to this, so, please, be gentle with me) :) It compiles with 0 errors and 0 warnings, but when it executes I get an error message that the program needs to close. When I … | |
i have a super class called employee1 and subclass fulltime whenever i run it i get this error: javac employees/FullTime.java employees/FullTime.java:3: cannot resolve symbol symbol : constructor employee1 () location: class employees.employee1 public class FullTime extends employee1 ^ 1 error can anyone help plz | |
I'm trying to find a site where can download a java sdk1.4 for windows 98. I've tried the Sun site, but i keep getting an error page. Any ideas? | |
Hello all from javaDumb! I'm in my first java class and this is my first post so please be patient. I'm suppose to use StringTokenizer to search a document and replace some text, but the book for this course only explains how to print the text to the screen as … | |
[B]Intro[/B] [i]This tutorial provides a brief introduction to C++ data types.[/i] [b]What is a data type? [/b] When we wish to store data in a C++ program, such as a whole number or a character, we have to tell the compiler which type of data we want to store. The … | |
Hello, This is my first post. Anyway.. I am having trouble with my c++ program. My assignment is to read from a file a 2-Dimensional array. However, when attempting to do so with my code, which i'm guessing is faulty, I keep getting this error while using Borland Turbo C++ … | |
Hello everybody!I am a new to C.My lecture asked us to write a program with pointers.But I do think I get stuck on pointer's stuff.Can anyone please do me a flavour?It is kinda urgent stuffs. The following are the questions: Write a program to dispense change.The user enters the amount … | |
Hello, I need to create a program that will read in a weight in kilograms and grams and will output the equivalent weight in pounds and ounces. I need to use 3 functions: for input, calculation, and output. I also need to have a loop that will let the user … | |
I can't figure out how to keep it from running off the array and going crazy. I tried a few functions, but they either get rid of my output or funk it up. I want the knight to be a 3 the kill spots a zero and everything else a … | |
I'm a little lost here. I'm trying to read from a file named source.txt located in the same area as my program. If i could figure this out i could continue with the rest of the program. I'm just getting a blank screen so i know i'm way off heres … | |
Can anyone help me on strings??? I am a newbie and I have a problem dealing with string(school thing). ---------------------------------------------------- A program that checks if the substring "the" exist in the string inputted by the user. * Use a function for checking. ----------------------------------------------------- I'm in a big trouble right now... … | |
[img]http://www.computersforpennies.com/error.gif[/img] testing wether this post works, trying to host the image from my site since i dont know how to do it using his form for threads [B]If the image shows, could you tell me what that debugging error means[/B] | |
I ran my C++ program and got these error messages. I have no idea what they mean. :?: Will somone please help. error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main fatal … | |
hey I've been getting this error: [COLOR=Red]Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource [/COLOR] This is what it said that is causing the problem: [B]$stafflist=mysql_query("SELECT id,name,sn,email,title FROM staff WHERE man='Yes' ORDER BY id");[/B] Can you please tell me what is worng ASAP. Thank you | |
This program is a word counter. But my logic is all messed up when it comes to the counting. I am not too sure on how about fixing it. The project compiles yet does not work properly. I still haven't figured yet how to count lines or characters properly. [code] … | |
plz guide me soon so that i submit my assignment on saturday | |
New boy -easy question - doing a tutorial and the compile and run work but the only time I see the program partially running is when I put in a cin - I have looked but I cannot find how to put in a pause and allow me to see … | |
I am a java programmer trying to understand a c++ oddity that I ran into. My c++ program writes a few MB of data using ofstream. Just before the program ends I close the ofstream. However when the program terminates, the amount of free memory on my linux box has … | |
I am trying to write a program that takes a series of numbers input by a user and performs some calculations on it. While I have most of the code put together and working perfectly fine, I haven't been able to write code that will refuse the users input if … | |
Becuase windows sucks [i]edited by moderator[/i]. BGI Graphics are not soupported under it. What Can I use insted of graphics.h? | |
Hey there can anybody help me look for a copy or program a simulation of a Round Robin Algorithm... The program should accept the following from the user... 1) Quantum Time 2) Burst Time 3) Arrival Time 4) The number of Jobs.. If you can... please help everyone else avail … | |
Hi everyone, I have a project for my class. I have to write a function that accepts a c-string as an argument and returns the number of words contained in the string. For instance, if the string argument is "four score and seven years ago" the function would return the … | |
Hi everyone, I am new to this forum. Thanks in advance to anyone who tries to solve this. I wrote .JSP reports along with two other members of my team. We each wrote some reports in our separate IPLANET sessions. In order to move them to system test we have … | |
Hi, I'm supposed to create a program that does the following: A corporation has six divisions, each responsible for sales to different geographic locations. Design a divsales class that keeps the sales data for a division, with the following members: an array with four elements holding four quarters of sales … | |
Hi, everyone I am new to asp.net and just installed asp.net in my computer(on windows xp pro sp1). but when i created a asp file and requested in a browser, it couldn't run properly. here is the code: <html> <body> <h1> The date is <% Response.Write(DateTime.Now.ToLongDateString()) %> </h1> </body> </html> … | |
Does anybody have a source code for the MORE filter used on Linux, because I am curious as to how it works. | |
Hello everyone, If I am using two threads, the task of one thread is to read the first 1k bytes from a specific file and the task of second thread is to write (maybe modify without the change of 1k length, maybe append some additional bytes making the file larger, … | |
Hello everyone! I sure wish I would have known about this place befroe now, it would have saved some long nights. I am having probems with arrays. The situation is this read all the lines from a file and store it into an array. Once you do this, you have … | |
[FONT=Arial Black]undefined[/FONT][SIZE=2]undefined[/SIZE] hi every body. well i am a new member and i hope that i am doing things the right way . well my problem is that i am a first year students and obvoisly i am studying c++. but i got an assignmet to do. i wrote the … | |
Hi everyone, I have a textpane with some text inside and trying to search for a particular text in the textpane by highlighting it. Basically i the main function that does this is as follows TextPane is an instance of my JTextPane public void findtext(int pos1, String str1) { //This … |
The End.