132,726 Archived Topics
Remove Filter ![]() | |
[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++ | |
:-|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 | |
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++ | |
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 | |
I need someone help me and share a programe 2 me.Help me... ok... Peace..:sad: thanks for your idea... Software Development c | |
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 | |
![]() | 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 ![]() |
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++ | |
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 | |
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++ | |
[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++ | |
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 | |
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 | |
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 | |
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: | |
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 | |
Is there any component in delphi 7 for magnetic strips (atm cards). Any one please help. | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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# | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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' … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ |
The End.