199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for degamer106

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 …

Member Avatar for degamer106
0
151
Member Avatar for Woodminer

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 …

Member Avatar for msaqib
0
116
Member Avatar for Yustme

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!

Member Avatar for Narue
0
2K
Member Avatar for degamer106

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 …

Member Avatar for Narue
0
463
Member Avatar for perlsu

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 …

Member Avatar for Narue
0
99
Member Avatar for shahnazurs

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

Member Avatar for Narue
0
103
Member Avatar for red_evolve

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.

Member Avatar for guy_richardson
0
166
Member Avatar for alfagirl25

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.

Member Avatar for alfagirl25
0
96
Member Avatar for Gody

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 …

Member Avatar for Lord Soth
0
167
Member Avatar for Kiba Ookami

[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 …

Member Avatar for iamthwee
0
196
Member Avatar for nisaa15

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 …

Member Avatar for divvis
0
140
Member Avatar for harini_b

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 …

Member Avatar for pythonguy
0
112
Member Avatar for augie0216

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)

Member Avatar for augie0216
0
119
Member Avatar for dors_zone

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 …

Member Avatar for Lerner
0
157
Member Avatar for dors_zone

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 …

Member Avatar for Lerner
0
123
Member Avatar for vamsi.rgiit

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 …

Member Avatar for Lerner
0
61
Member Avatar for Rumrunner

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 …

Member Avatar for Rumrunner
0
125
Member Avatar for jack223

[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 …

Member Avatar for Lerner
0
96
Member Avatar for babyjoan

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; …

Member Avatar for Ancient Dragon
0
112
Member Avatar for Phaelax

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 = …

Member Avatar for Phaelax
0
366
Member Avatar for nawal

hi, I want source code to work send data from pc to another pc using telephone(modem). thank you.

Member Avatar for Phaelax
0
114
Member Avatar for helloworld

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

Member Avatar for williamrojas78
0
87
Member Avatar for MAGiC333X

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 …

Member Avatar for MAGiC333X
0
127
Member Avatar for magnumbi

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 …

Member Avatar for magnumbi
0
269
Member Avatar for deutsch
Member Avatar for Lord Soth
0
112
Member Avatar for hemanthjava

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 …

Member Avatar for jwenting
0
1K
Member Avatar for Sun

[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() …

Member Avatar for Narue
0
93
Member Avatar for Layla_2401

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 …

Member Avatar for Narue
0
188
Member Avatar for amen

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 …

Member Avatar for Narue
0
150
Member Avatar for degamer106

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 …

Member Avatar for Narue
0
141
Member Avatar for marioxp

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 …

Member Avatar for Narue
0
175
Member Avatar for seh1

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 …

Member Avatar for Troy
0
103
Member Avatar for acezrwild817

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 …

0
95
Member Avatar for csaha

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 …

Member Avatar for G-Do
0
1K
Member Avatar for WarKirby

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 …

Member Avatar for Lord Soth
0
80
Member Avatar for PCHelp

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 …

Member Avatar for Lord Soth
0
495
Member Avatar for neo69potato

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: …

Member Avatar for neo69potato
0
346
Member Avatar for tazaramya

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 …

Member Avatar for Nilesh Pagar
0
136
Member Avatar for k_satish0101

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 …

Member Avatar for Nilesh Pagar
0
152
Member Avatar for Duke_0064

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 …

Member Avatar for Ancient Dragon
0
148
Member Avatar for pythonguy

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 …

Member Avatar for pythonguy
0
184
Member Avatar for vamsi.rgiit

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; …

Member Avatar for Bench
0
92
Member Avatar for Eng_Girl

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 …

Member Avatar for iamthwee
0
125
Member Avatar for seh1

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 …

Member Avatar for seh1
0
82
Member Avatar for rcwally

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, …

Member Avatar for muhanena
0
243
Member Avatar for vic02

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 …

Member Avatar for vic02
0
149
Member Avatar for srishekh

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

Member Avatar for andor
0
64
Member Avatar for musicmancanora4

Im using an ansi c compiler all the errors using gcc -ansi -Wall -pedantic should work without warnings and errors. Running on unix

Member Avatar for Ancient Dragon
0
90
Member Avatar for Duke_0064

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 ( …

Member Avatar for dubeyprateek
0
150
Member Avatar for maqk

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 …

Member Avatar for max__
0
149

The End.