199,114 Archived Topics
Remove Filter ![]() | |
Here's a simple program I wrote. [CODE]/* Use a single-subscripted array to solve the following problem. A company pays its salespeople on a comission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $3000 in sales … | |
Greetings! I'm new to this community and so please be gentle with me as I figure out how it works, where things are, and what the general polity is. Situation: Our non-profit's website is hosted in a Windows environment. CGI is not available to me, but there is an ASP … | |
Hi, Im trying to make a function that flip bits. There is not much usefull to find on the net about this. Like an example of such function. Does anyone have a function that flipbits? Thnx in advance! | |
Ok..this problem is kind of confusing because I have to use these 2 functions getc() and ungetc(). What i'm supposed to do is take in input in the form of a string, find all digits, store the digits in the string, convert the string into a digit, and finally print … | |
I would like to know whether the dynamic memory pointer is still available even after freeing the allocated memory. If I want to allocate and deallocate so many times within a loop , I receive memory corruption. Pls help me how I should do.If I call "free" more than one … | |
Hi Friends, I did some labs in my college days with MASM! Now i forgot much of the things.But still i am eager to do assembly programming. Shall i dowload this MASM free? tell me how we can you effective this assembler? Thanks, Shahnaz | |
Greetings. I would like to know if there's any way that I could throw errors within a cfscript block. I have checked the Coldfusion manual, but there are only the try and catch block stated, not the throw function. Please advise. | |
im currently using frameset on my page. the thing is i want to resize the frameset so that it doesnt cover the whole browser window.is it possible n how? currently my frameset consist of header, footer,contents and main. | |
Can anybody help me to how to do locking of folders in Windows XP? By locking what I mean is that, If any user tries to open a particular folder or file that is locked, he should be given a error stating that access is not granted. Also how to … | |
[CODE]//Factoral Thing I made myself #include <iostream> using namespace std; int main () { cout << "*********************"<<endl; cout << "*Michael F Eversberg*"<<endl; cout << "* Factoral Solver *"<<endl; cout << "*********************"<<endl; int x, y; cout << "Please Enter a whole Number: "; cin >> x; y = x; for (x … ![]() | |
HI, Im relatively new to XML and was wondering how I could use DOM to produce a "per shop" report showing a list of the items available in the given shop (shop 1 first then 2), the item description, stock level and calculate a total value of the stock level … | |
Hi, I've encountered a problem iwhile writing a find and replace prg in python. this is my code: [CODE]import re f = file('testfile') while True: line = f.readline() if len(line) == 0: break print line p = re.compile(line) m = p.match('METASERV_HOME') print m f.close()[/CODE] as per the logic : if … | |
I'm confused the instructions say create a class called pizza with two fields PizzaType and Pieces. The Pizza constructor should call two data-entry methods GetType() and GetPieces() Is this the proper code for the constructor: public pizza (string Types, int Pieces) | |
Question: Explain what the following program does. #include <iostream> using namespace std; int whatIsThis( int [], int); int main() { const int arraySize = 10; int a[arraySize] = {1,2,3,4,5,6,7,8,9,10}; int result = whatIsThis(a, arraySize); cout << “Result is “ << result << endl; return 0; } //what does this function … | |
here are the question, a) Write a function named OutOfOrder that takes as input parameters an array of doubles named Arr and an int parameter named size and returns a value of type int. The return value is -1 if the array is in order, meaning that the first element … | |
help me with this code please.this code is for selection sort using linked list.please check it and give me suggestion. [code] #include<iostream.h> #include<conio.h> void main() { struct mylist{ mylist * nxt; int val; }; int a,b,c,d=1,i,j;mylist * t; clrscr(); cout<<"Enter the no&the total no of numbers"; cin>>a>>b; mylist * head=new … | |
Hi, Can I get some help installing PHP on my machine? A while back, I had it working. I was using Microsoft IIS as a server, and I was testing my PHP files by putting them in the wwwroot directory. Something has happened since then because I cannot run php … | |
[Code] Class B { public: int e(); void f(); private: int x; }; class D: public B { public: void h(); void g(); private: float y; } [/code] How many public methods does class D have? is it 2 or 4? void h(), void g() and i'm not sure about … | |
I am to write a program which will prompt the user for a size (NxN) matrix then 1. call a function (generate) that generates the values of the matrix using the formula: X ij = 1.0/(I + J) 2. call a function (transpose) that finds the transpose to the matrix; … | |
The probably isn't the parsing actually, I can't even get to that part yet. The webpage uses a different character set, "windows-1252". But even after setting the reader to use that charset (which exists in the system), I still get the ChangedCharSetException. [code] String link = "myurl.com"; URL url = … | |
hi, I want source code to work send data from pc to another pc using telephone(modem). thank you. | |
can someplease please help me understand what the asc function and the mid function can do. does the asc function find the string and the mid function replace the string with a number. i have had a look in several books but none make sence please | |
Hello, I'm having a pretty weird problem with a program i created, it's going to be a RSA encrypter... I've made a BigNum class that is able to do multiplications, additions, decreament, divisions and modulo on very large numbers... The size of these numbers is defined by a contant (named … | |
Hi everyone, I am new to python and programming in general and I could use some help on converting an integer to a decimal (e.g. 80% to .8). Here is what I have so far but as I'm sure you can tell, it doesn't work: [CODE]elif menu_choice == 2: print … | |
Can you still use BIOS functions win 32 bit programs? Thanks. | |
I am using Apache Tomcat I got the following error when invoking a jsp. type Status report message HTTP method POST is not supported by this URL description The specified HTTP method is not allowed for the requested resource (HTTP method POST is not supported by this URL). My 2 … | |
[COLOR=Navy]How can i make a program in c++ which accept only the following: 1) Any positive number. 2)Character from [A to Z] -in upper case.[/COLOR] [COLOR=DarkRed]Note: this program won't work as desired because idon't know how to get the ASCII of any number or character-by using int().[/COLOR] #include<iostream.h> void main() … | |
Hello Everyone, I'm working on a couple of programs, client/server. I'm using winsock library to handle data transfer between the two programs. I'm having a problem when it comes to sending int values, they must be converted to (char *) since that's the data type of the buffers used in … | |
i input a sentence " i love eat".how can wanto to get c++ to get a full sentence.. [CODE] #include <iostream> #include <string> using namespace std; void echo(string message) { cout << message << endl; } int main() { cout << "Enter your word: "; string word; // place declaration … | |
OK..so here's the problem... I'm supposed to create a program that reads a text file containing 5 lines, each composed of a name, a colon, and three integers. For example: Bill Gates: 10 20 30 Shalla Booger: 80 70 84 Hagar Joe Plinty: 70 90 80 Darth Vader: 60 50 … | |
I am new in programming and my problem is probably notorious but still is a problem. I want build class which can produce object which contain two dimensional dynamic array and member function which fill that array. Question is where I should to create the array, in function or in … | |
Hi, I hope this is a PHP issue as I miss posted earlier (sorry). I have created a page for uploading files onto my computer from the internet using PHP. My page creates a folder to hold the uploaded files in which can be deleted. BUT once the uploaded file … | |
I receive the following 2 error messages when I attempt to Build my application, and I cannot resolve them. C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\Installer\Installer.vdproj Unable to find source file 'C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\bin\install\data.enc' for file 'data.enc', located in '[TARGETDIR]', the file may be … | |
Hi Python Experts [B]I need to convert a code written on JAVA/JSP (Java Tags are also there inside JSP) to PYTHON. [/B] I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP. Any idea how to approach? I am having tough time to achieve … | |
Using Borland Pascal- Making a program to read in names and sales figures from text file and then (amongst other things) find the average of the sales and compare all the sales figures to the average. The problem is, only the last entry in the text file comes out for … | |
I found example how get process exe path: uses PsAPI, TlHelp32; // portions by Project Jedi [url]www.delphi-jedi.org/[/url] const RsSystemIdleProcess = 'System Idle Process'; RsSystemProcess = 'System Process'; function IsWinXP: Boolean; begin Result := (Win32Platform = VER_PLATFORM_WIN32_NT) and (Win32MajorVersion = 5) and (Win32MinorVersion = 1); end; function IsWin2k: Boolean; begin Result … | |
ok basically me and a friend are learning C language and we're totally stuck on this problem in the textbook and want to get around it before moving on. We're totally useless so a nudge in the right direction or any help at all would be awesome. heres the problem: … | |
This script works in ie but NOT Firefox. Can someone help me make it work in both. Script just creates and rotates the url that it uses. :mad: <html> <head> <title>Corvallis Calendar - Home</title> <SCRIPT LANGUAGE="JavaScript" type="text/javascript" > <!-- // var myDate = new Date(); var myMonth = myDate.getMonth(); myMonth … | |
i 'm getting the date in [B]dateField[/B] variable after entering the code for converting the date into Simple Date Format java.util.Date datefield2 = new java.util.Date(request.getParameter("dateField")); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE,dd MMMM yyyy"); GregorianCalendar startDate = new GregorianCalendar(datefield2.getYear()+1900,datefield2.getMonth(),datefield2.getDay()) String reqdt=sdf.format(startDate.getTime()) i 'm not getting the exact date which i entered in … | |
Does anyone have any suggestions as to how I could better this code.(Not too fancy). I'm supposed to use a switch statement. I think the concept isn't bad. But some things are off as far as my opitions displaying correcly. [INLINECODE]#include <iostream> using namespace std; int main () { char … | |
I am using automation desk to run python scripts. This in tern executes scripts using v2.2 interpreter every time i m trying to use raw_input("Enter name ") it fires EOF Error. If i run it in interpreter separately it works fine.Its really basic functionality. FYI: Automation desk dont support script … | |
the specific problem is that there are no errors in the prob but it is giving segmentation fault.plz check it #include<iostream.h> #include<conio.h> void main() { struct mylist{ mylist * nxt; int val; }; int a,b,c,d=1,i,j;mylist * t; clrscr(); cout<<"Enter the no&the total no of numbers"; cin>>a>>b; mylist * head=new mylist; … | |
Hi, I'm new to this fourm I want to ask if anyone can help.I have a program for a GPS receiver it is in C ,for testing I assume the string of GPS message, it doesn't have any errors but it didn't run I don't know why. I used the … ![]() | |
Hi, I have an exam page for printing exams that is print friendly. However some info I dont want appears on the printed page: (1) the pages url and (2) the date still appears at the end of the page when I print it. Also (3) a page count appears … | |
I have the worst time deciding on VAR statements. I am trying to write a program to establish a "bounciness" index equal to the original height divided by the bounce height of a ball. I get the basics of the FOR looping, but my VAR statements just don't make sense, … | |
I've done extensive work developing a large on-line application form, only to find that it will not render properly in Firefox (1.5.0.1) or Netscape (8.0). The panels are overlapping each other and style settings such as backcolor are not propagating to child elements. Yet, it renders nicely in IE. I've … | |
could u tell me the problems in defining a 3D double array. that is double a[1000][1000][1000]; While running the program, it gives segmentation fault errror. Please tell me , wat should be the limit of the array or how to come arround this. Thanks and Regards srishekh | |
Im using an ansi c compiler all the errors using gcc -ansi -Wall -pedantic should work without warnings and errors. Running on unix | |
Hello, I have this program here>> it's a random guessing number game. It works great the only thing I can't figure out, is how to display the [B]best score[/B] at the end of the Loops. The outer loop is suppose to keep track of the number of games played ( … | |
Dear gurus & other members, I m upto make an ARS [ Airline Reservation System ] for my course - ADBMS, the problem is I always have been implementing things like Inventory - I don't know the business process of Airline reservation so concept is not clear - What i … |
The End.