132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Boldgamer

[code=cplusplus]/*Make a program that allows the user to input either the radius, diameter, or area of the circle. The program should then calculate the other 2 based on the input. (Beginner)*/ #include <iostream> using namespace std; #include <cmath> int main () { double pi = 3.14159265, radius, diameter, area; char …

Software Development c++
Member Avatar for Dave Sinkula
0
123
Member Avatar for jmsnclr

:-|Hi all, I'm new to programming and I've been learning on my own. I seem to be writing way too much code for simple exercises. I just finished one where all they wanted was to convert your change into a total dollar amount. I went ahead and created a method …

Software Development java
Member Avatar for jwenting
0
83
Member Avatar for lotsofsloths

Ok i just started c++ with no knoledge about any other programming language, so bear with me. I am trying to make a simple program that you enter a password and if it is correct, it says welcome. If it is wrong, then it says try again. Simple? Well when …

Software Development c++
Member Avatar for jwenting
0
115
Member Avatar for shouvik.d

Hi all, we al know the preffered load address of any proj is 0x00400000 and DLL is 0x10000000. now if the OS is unable to use this address it relocates the project. now i have a need to use the Rva+Base address of all the methods available in a class …

Software Development c++ microsoft-access
Member Avatar for shouvik.d
0
182
Member Avatar for HS20064972

I need someone help me and share a programe 2 me.Help me... ok... Peace..:sad: thanks for your idea...

Software Development c
Member Avatar for ~s.o.s~
0
140
Member Avatar for amishosh

Hi! Here's my code: [code] for(i=0;i<N;i++) { for(j=0;j<M;j++) printf("%4.2f ",mat[i][j]); printf("\n"); } [/code] I want it to look like this: 68.85 52.25 32.00 -100.00 -632.25 -26.56 Instead I get: 68.85 52.25 32.00 -100.00 -632.25 -2.56 For life of me I can't remember how to get th alignment right. Anyone? Thanks

Software Development c
Member Avatar for Ravalon
0
86
Member Avatar for Geek-Master

I have custom updates that need to be pushed out ever so often and need all receiving PCs to be booted up. Unfortunately, end-users will shut down their computers when they leave for the day. I need a way to (based on the MAC address) boot up a PC. All …

Software Development vb.net
Member Avatar for Geek-Master
0
525
Member Avatar for lotsofsloths

OK, here is my c++ program that i made with "Visual C++ 2005 Express Edition".... [code=cplusplus] #include<cstdlib> #include<ctime> #include<iostream> using namespace std; int main() { cout << "Welcome To Danny's Game!.\n"; cout << "See if you can beat me.\n"; cout << "The First number below is your number.\n"; srand((unsigned)time(0)); int …

Software Development c++
Member Avatar for ~s.o.s~
0
82
Member Avatar for ryy705

Hi, I want to learn how to build web services with java. I am starting out by installing all the neccessary software. I am following directions from a book. However, tomcat is installed twice in the book's example. The first set of direction is labeled Servlet container and tomcat is …

Software Development java web-server
Member Avatar for jwenting
0
126
Member Avatar for JoBe

Hello ladies and gents, Ive got an exercise in which I have to fully parenthesize expressions using the higher-lower precedence, for instance: a+b*c would become (a+(b*c)) because multiplication has a higher precedence then addition. Here are my solutions for the following expressions: 1) a = b + c * d …

Software Development c++
Member Avatar for ~s.o.s~
0
191
Member Avatar for Marks256

[CODE]#include <stdio.h> int main() { double first_def; double secnd_def; int fibcount; int max; double curfib; int N; printf ("Please enter the number of loops (int value)... "); scanf("%d", &max); if(max <= 0) { printf ("Number must be greater than zero... seting to default 20\n"); max = 20; } first_def = …

Software Development c++
Member Avatar for Nick Evan
0
157
Member Avatar for bhavna_816

There is a querysting for example abc = "<a href=test_table.exe?PFolder=" & oPFolder.Name & "&SFolder=" & sfolder.Name & "&oMails=" & fItem & ">" s.WriteLine(abc) this oPFolder.Name and sfolder.Name contains some words with spaces. suppose oPFolder.Name is Personal Folders and sfolder.Name is Deleted Items. s is the streamwriter for htm page. When …

Software Development vb.net
0
47
Member Avatar for cassyjack

I'm really need help with this one. Im totally lost. I have to crete a class that models a Library. It lets the user add, print, borrow and return books to the Library. I guess my problem is that I really do not understand arrays. I needs to create a …

Software Development java
Member Avatar for Infarction
0
115
Member Avatar for cpato

hey i am a 1 st yr college student in my country and im findin c++ programmin 2 b difficult n i found this site n i wud like to know if ne 1 here can help me with these 3 programs? 1. write a program that prompts for and …

Software Development c++ email first-post
Member Avatar for Nick Evan
0
598
Member Avatar for lotsofsloths

ok, i really want to learn how to use c++, but i can't find a site to download it from!! so if yall can be kind enough to list some sites that would be awsome!! :lol:

Software Development c c# c++
Member Avatar for lotsofsloths
0
173
Member Avatar for cassyjack

I have to rotate numbers an array. Example:`{5, 6, 7, 8} ==> {6, 7, 8, 5}{5, 6, 7, 8, 9, 10} ==> {6, 7, 8, 9, 10, 5}` This is what I have. It works for the most part to rotate the numbersbut I can't seem to rotate the first …

Software Development java
Member Avatar for cassyjack
0
147
Member Avatar for kamatatul

Is there any component in delphi 7 for magnetic strips (atm cards). Any one please help.

Software Development delphi pascal
Member Avatar for jwenting
0
91
Member Avatar for ronakp25

I am using 2 .ear files. One file contains the EJBs and the other .ear file contains the application that calls the EJBs in the other .ear file. now the problem is that when i deploy the 2 .ear files on different machines and run the application it works fine …

Software Development api java
Member Avatar for jwenting
0
113
Member Avatar for itchap

Hi, I'l be starting my graduation project in a few more weeks, and my group members and I still havent found the right topic. We've all been reasearching and all, but we still need more ideas. One of the ideas that we came up with is a text paraphraser. We …

Software Development c++
Member Avatar for Infarction
0
99
Member Avatar for amishosh

Hi! First I'll say that I've searched this forum and read many threads and followed a few recommended links. I still need some clearifacation: I use Borlnad C++ V3.1 which runs in DOS. Can I draw an image in let say "Paint" and then display it with the above compiler …

Software Development c++
Member Avatar for ~s.o.s~
0
172
Member Avatar for bhavna_816

There is a filestream and a streamwriter in Sub Main() Dim fs As New FileStream("c:\OL_Table.htm", FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) //code goes here s.Close() fs = New FileStream("c:\OL_Table.htm", FileMode.Open, FileAccess.Read) Dim d As New StreamReader(fs) d.BaseStream.Seek(0, SeekOrigin.Begin) and there is a class having functions Public Class MailItemClass Function1: …

Software Development vb.net
0
60
Member Avatar for whitemoss

Hi All, Im currently try to write a code to read the data from mysql tables and then write the contents into a text file. Below is my code. I dunt know what's wrong with this code because in the text file created, there is no data from database written. …

Software Development c file-system
Member Avatar for Ancient Dragon
0
255
Member Avatar for batakkeren

Please help me, about make class module to manipulation database ACCESS (*.mdb), so i can execute SQL statement like SELECT, INSERT, DELETE and UPDATE database itself.. I made my own project sample VB6.0 with no class modules at all, i thought my code/script not very powerfull.. Can you help me??? …

Software Development visual-basic
Member Avatar for batakkeren
0
202
Member Avatar for cronous

Hello again, I've been trying this coding for weeks now and have no idea where the bug is.... Could someone help me? :mrgreen: import javax.swing.joptionpane; public class homework7{ public static void main(string args[]){ //prompt user to insert a value of signal array String getsizearraystring = Joptionpane.showinputdialog(null, "enter a value for …

Software Development audio java java-swing
Member Avatar for cronous
0
91
Member Avatar for flageolet

I have made a txt file out of integers and chars that contains numbers and words. When I read the file and get to a line that contains a number, I would like to put it into back into an integer. How do i do this in c++? thx

Software Development c++
Member Avatar for Dave Sinkula
0
141
Member Avatar for amishosh

I want to create the effect of a moving square. I would have to clear the previous position of the square and then draw a new one, right? And if that's tru how do I clear just that portion of the screen leaving the rest of my screen in tact? …

Software Development c
Member Avatar for John A
0
90
Member Avatar for NewVBguy

Hi there, I am trying to import a dbase file into an access database. Is there a way of doing this at a command level? I can do it using recordset but it's extremely slow. Pls help. thanks in advance. Please I need a code. Newvbguy

Software Development visual-basic
Member Avatar for NewVBguy
0
77
Member Avatar for Mix

csc /out : DemoLogo2.exe DemoLogo.cs /out: LogoNamespace.netmodule LogoNamespace.cs Its a command in a book but it gives no reference. I'd like to know exactly whats going on here if anyone can assist

Software Development c#
Member Avatar for Ravalon
0
110
Member Avatar for jemather

I am quite new to Perl, and have not had much luck finding a cause for some seemingly-strange behavior of a Perl script I am playing around with. I am running Perl 5.8.6 on OS X 10.4.8. I have done some perusing, but I'm not quite sure how to describe …

Software Development os-x perl
Member Avatar for KevinADC
0
98
Member Avatar for Sandaseeli

Hello, My work is a data base in acess 2000. In a form for a combo box I have set the rule 'No duplicates' to avoid duplicates as the primary field of the form is a differrnt one. However as the form carries many fields after this thers is no …

Software Development visual-basic
Member Avatar for PirateTUX
0
638
Member Avatar for uu666

Hello! here is what I wanna do: I have a while() statement, and inside of it I have some instructions to repeat. My problem is that, I want somehow to stop that loop ONLY when I press a key... I it's kinda like getch() but getch() waits for a keypress.... …

Software Development c++
Member Avatar for Salem
0
140
Member Avatar for caltiger

Hi, i would like to know if there r any native functions in C with which i can detect a keypress ( independent of the platform ). The same ofr mouse functions as well.. Any function to detect a mouse click? If not, how to detect a key press... ? …

Software Development c
Member Avatar for apurv
0
661
Member Avatar for Shon05

Is anyone familiar with lisp programming? If so can you please respond back. I have a program due and it deals with lisp type checking! I would really appreciate it. ;)

Software Development perl
Member Avatar for indienick
0
489
Member Avatar for gauravji

Hi , I want to create a dll using the cpp file. I have followed some steps which I got from the some forums and tried to create a dll and it throws the following errors. [code] ********************************************************** islicenseviewed.cpp(19) : error C2146: syntax error : missing ';' before identifier 'CALLBACK' …

Software Development c storage
Member Avatar for Ancient Dragon
0
238
Member Avatar for wayani

Hi. My name's Brianne and I just now started this semester taking Programming, Logic and Design. I have a homework problem, and what blows is this class is online, so I have to read the book, and write 100 times to get something down ... and I just don't get …

Software Development c
Member Avatar for WaltP
0
261
Member Avatar for makingit52000

my java applet failed on yahoo.. can someone tell me what to do so as i can start downloading games again :cheesy:

Software Development java
Member Avatar for aniseed
0
67
Member Avatar for amishosh

Is there an output function in C that keeps the cursor ON the last char printed and NOT after it? (Aside from using gotoxy(wherex()-1,y)) Thanks Ami

Software Development c
Member Avatar for amishosh
0
80
Member Avatar for mv6603

I need some help... This might seem pretty simple to some people, but I'm really have difficulty figuring this problem out. I need to add two numbers on using the increment(1+) and decrement(1-) functions.. I have the logic for adding work however I need help printing NIL if the user …

Software Development
Member Avatar for indienick
0
95
Member Avatar for mattyd

Is there an option of some sort in the Dr. Python interpreter that would allow one to re-run the same output results after making adjustments to the code. Example: I run an example of source code and receive an output result. I make changes to the code. I now am …

Software Development python
Member Avatar for vegaseat
0
135
Member Avatar for raydogg57

I have a homework assignment that deals with creating a command line menu, and then selecting items from that menu that do something. the items need to be selected by using either a lowercase or uppercase letter that represents that specific menu item. for example, if i want to print …

Software Development c++
Member Avatar for John A
0
2K
Member Avatar for JRM

For some reason this code is not accepted by the compiler. [code] template<class T, class A> void ShowMap(const map<T, A>& v) { for (map<T, A> ::const_iterator ci = v.begin();ci != v.end(); ++ci) cout << ci ->first <<": " << ci ->second <<endl; cout << endl; } [/code] The compiler says: …

Software Development c++
Member Avatar for JRM
0
676
Member Avatar for sneekula

The department's computer has Python 2.4 and on my home computer (really my dad's computer) I installed Python 2.5. Is it possible to have Python 2.4 and Python 2.5 on the same computer?

Software Development python
Member Avatar for vegaseat
0
114
Member Avatar for cronous

Someone Please help me, I've no idea y it doesn't work?? :confused: import javax.swing.JOptionPane; //Program uses JOptionPane public class Homework5 { //Main method to begin Java application public static void main (String args[]) { int NumberWord1 = 0; int NumberWord2 = 0; //User Enter's the 1st word String Word1 = …

Software Development java java-swing
Member Avatar for cronous
0
124
Member Avatar for sneekula

Since there is so much discussion on one of the threads on zipping/unzipping files and all the associated incompatibilities, is there a way to do this with Python and cut out the middleman?

Software Development file-system python
Member Avatar for vegaseat
0
136
Member Avatar for JoBe

Hello ladies and gents, Gotta few questions if you don't mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could check them out whether they are correct this way. 2) I have to write five examples of undefined behaviour …

Software Development c++
Member Avatar for Ravalon
0
193
Member Avatar for jrcagle

This is part of a short script I wrote to find out whether students had submitted any corrections to work in December or January. [code=Python] import os, os.path months = ['Dec', 'Jan'] # actually a raw_input() files = get_all_files(root_dir) # actually a call to os.path.walk() dates = [] for i …

Software Development python
Member Avatar for jrcagle
0
140
Member Avatar for extofer

What is the easiest way to migrate a project, with about 40 forms, 3 modules, 3 classes, and several designers (Crystal Reports) from VB6 to .Net 2003?? Any ideas?

Software Development asp.net vb.net visual-basic
Member Avatar for waynespangler
0
75
Member Avatar for marcusbris

Hi there i have a problem with my little calculator project, i did everything but i got stuck at the decimal place, What i want the calculator to do is to give out an error when a user try to put in morethan one decimal point eg. 12.30.30 or 12..30. …

Software Development vb.net
Member Avatar for waynespangler
0
106
Member Avatar for professionalnet

Heya i was thinking about trying my hand at programming (once again) so I picked up my trusty ol' VB6...and it hit me.. I have no clue as to where to start, as i've just forgotten about everything i've learned. A great start would be muchly appreciated. I was trying …

Software Development visual-basic
Member Avatar for professionalnet
0
315
Member Avatar for fesago90

Hi, just looking for a quick answer to my problem: How can I read a string from a binary file? for example string buff; binfile.read(reinterpret_cast<char*>(&buff), 10) does not work. Doesn't work either if buff is declared as a c-style string. I'd preferably like to read it into an STL string. …

Software Development c++
Member Avatar for Ancient Dragon
0
202

The End.