199,114 Archived Topics
Remove Filter ![]() | |
I am to write a program to read a non-negative integer n and call function add_it() to calculate the sum ... If n is 5, the sum 1+2+3... would be computed. n must be less than 8943923. Use a for loop, rather than the summation formula. I am to put … | |
I'm using Xp. I wan2 kno wat function in cpp 2 use 2 [SIZE=4]HIBERNATE NOT SHUTDOWN[/SIZE] | |
just a quick ques :P lets say i hav five names in my input file. i wanna read the 3rd name in my program. how do i do it? (remember i dont wanna read the whole file..i know how to!) | |
i unable to read a text file into my code i have the right code i think i just can not make it run with no errors | |
Hello, when i try to compile this program (it has three parts) I receive an error message that confuses me. Below are the code and error message. [code] #include <iostream> using std::cout; using std::endl; #include "Complex.h" int main() { Complex x(2, 3), y(4, 5), z; x.printComplex(); cout << " + … | |
HELP.. I have a frame set to the screen size of my monitor, background color is yellow. I have a panel returned by midFrame() (outerPanel) supposed to be located at the center of my frame. i used the setBounds() to place my panel in the center but it doesn't do … | |
Hi! I can not solve this JAVA problem. I tried to write: final int a=100; int nbr=Input.readInt();// from keyboard I try to find (nbr*nbr)>a ex: nbr=11 and 11*11=121 12*12=144 10*10=100 Output must be 121, not 144 but 144 is also >100 thanks Peter | |
Runtime Error 424 object required happens when I attempt to open my program I made,It does it everytime, and it says the defragments are Private Sub Form_Load() and CS1.Scan_On in the code. Does anyone know how I can fix this? Heres the code if anyone can help.. Private Sub CS1_ChatScan(ScreenName … | |
ok the error is that it doesnt recognize the package class. [code] package celsiustofahrenheit; public class CelsiusToFahrenheit { public static void main(String args []) { double celsius, fahrenheit = 0; System.out.println("\n\tEnter temperature in celsius: "); celsius = MyInput.readDouble(); fahrenheit = 1.8 * celsius + 32; system.out.println("\n\tThat is " + fahrenheit … | |
Hi, I want a generate a node that consists of three integers but I want to store these three integers in bits and not bytes e.g if the node has the values 4,3,2 in integers it will be stored as 00000100-00000011-00000010 but if I store them in bits then they … | |
I'm new to java and i'm taking this java class in I have to create a program that prompts the user to enter his/her high school's name, and two decimal number (ie. 5.8, 3.45). what i have is public class FirstProgram2 { public static void main (String[] args) { System.out.println("Martin … | |
Hopefully I will be welcomed to this discussion. I'm a little intemidated by cscgirl... not really. I'm relatively new to .NET, but I've been developing for about 5 years. I don't have any major projects under my belt that haven't been destroyed by new webmasters. I'm realizing that .NET is … | |
For my computer lab class we were given a program with an infinite loop, and I am unsure what to do. Here is the program. #include <iostream> #include <string> using namespace std; int main() { int Total; // running sum of the fraction total int n; // number of fraction … | |
I'm trying to get a 'fish' to move randomly within an aquarium. I've got the fish drawn, but can anybody help me on getting him to move randomly? Any help would be greatly appreciated. -- Shipwreck import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class Fish { public static … | |
Hey Everyone Right now I am writing a file that needs a queue defined as a class. The queue has a function called 'front' that should return a reference to the front element of the queue. Needs to be a reference so the element can be altered. Bloc is a … | |
Hello, I am new to this site, found reference through google.com. I am attaching a sample code. The variable “file_nm | |
import java.awt.Graphics; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; /* * Created on 14-set-2004 * */ /** * @author Laudani * */ public class ProvaPrint implements Printable { /* (non-Javadoc) * @see java.awt.print.Printable#print(java.awt.Graphics, java.awt.print.PageFormat, int) */ public int print(Graphics arg0, PageFormat arg1, int arg2)throws PrinterException { System.out.println(arg2); if(arg2 == … ![]() | |
i want to make a matrix with specified numbers and the time of occurance of the the number is also pre-selected. i cant find a way, please help me. | |
I have no problem to insall php engine in the past and I installed it many times in before. However this the time I got this error message and I don't really how should deal with it. the error message says: ----------------------------------------------------------------------- This application should be called only by the … | |
Im trying to find the circumference of a circle and the area whe i runn the program need help starting and help with area can some one help please Im new and dont have a clue with c :sad: | |
Hi everyone, I am new to C++ (2nd week of classes) I wrote this code in c++ for a project and the instructor wants it as a Class instead. I thought they were both almost the same, but I am having a heck of a time getting it to a … | |
Hello ladies and gentlemen, This is the program: /* berekening_kapitaal.cpp : Defines the entry point for the console application.*/ #include <iostream.h> void main(void) { short int per = 0, tijd = 0; float begink = 0, interest = 0, perc = 0, tot_int = 0, eindk = 0, kapitaal = … | |
I have succesfully set up a Connection and a System DSN and conected to an SQL Server database. I have succesfully created a statement returning RecordSet and executed it. The problem is that when I try and get the data from it, it appears to be empty and gives me … | |
Hi All, I am new to Java and need some help with my first assignment: > Assignment 1: Taxation Calculator > Specification > Write a program to calculate the tax of an employee. The program should > prompt for a salary and age, and work out the required tax from … | |
Hi... This is my first post in here... here goes... I'm stuck at trying to understand how does round robin work. I understand that round robin is an algorthim that allocates an amount of timeslice to each process to provide a best possible fair allocation of CPU processing time. Each … | |
Can you please tell me why I get an error message while trying to run this program?? #include<stdio.h> int main( ) { printf("Hello %s World""SBL"); return 0; } | |
![]() | [color=red]1. I wonder whats the problem. Has no error and warning.. but can not sort names. Why? Whats the mistake(s)? "red color"[/color] [color=blue]2. why if i use [color=mediumturquoise]tolower[/color] the character.. got problem...whats the problem? "blue color" [/color] thank you in advance... [font=Comic Sans MS]#include <iostream> #include <string> using namespace std;[/font] … ![]() |
Can somebody please help me or tell me how to write functions in java. | |
#include <iostream> void main(void) { int= toys toys= 62 int= dolls dolls= 99 total= toys+dolls } cout <<"We have about" << toys<<dolls<< end; This is the program I came up with so far. | |
I'm trying to pass the value from a radio button to a second, and then a third page. I can pass all other values with no problem, but no value comes from the radio button. Any ideas? | |
I have recently downloaded Dev C++ software and have been exploring the different header files. I wrote this very simple program (it had like 35 characters total) and every time I go to compile it I get a "Found Virus" alert. The thing that really gets me is that this … | |
Hai All, To run the program we use F5 Key and for Pause we use the Ctrl + Break and for Debug we use F8 , is there any key like this to Stop the program running. Thank you, Chock. | |
Hi everyone, I'm doing a beginners C++ paper at Uni and I'm stuck. Basically I need to read data from a file and then display it on the screen. So far I've got: Correct headers will be called..... int main(){ char filename[30]; FILE *in; printf("Enter file you wish to open\n"); … | |
write a c++ program that will be used in a grocery store.the program reads a whole change amount in dirhams and prints how many 500 dirham bills,200 dirham bills,100 dirham bills ,50 dirham bills ,20 dirham bills ,10 dirham bills 5 dirham bills ,and 1 dirhams coins should the cashier … | |
i was wondering if there was any difference when you code an application using regular c++ 6 vs c++ .net 2003? Thanks | |
Another Program needs to launch my program, but for some reason becuase its lauching it, my program looks for all the required dlls and program files with in the direcotry of the program launching it. I do not want this, and despertly need a fix, any suggestions? Additionally, is their … | |
I found this [URL=http://www.allsyntax.com/tutorials/view.php?id=3&page=1]PHP Tutorial[/URL] and thought it was very good. | |
Just wondering about the best way to capture keyboard input from a CEdit or CComboBox control. Any ideas from those who have already invented this wheel would be appreciated. Thanks! | |
Ok so i need to take seconds and turn them into Hours, mins, and the leftover seconds. The problem is i dont know how to use the remainders(Ex: if i had 3.98 how would i use the .98) any help is appreciated. | |
In java, how do you input something from the keyboard - the standard way(don't import anything - or add a file) Thanks! | |
here is my program and hope u could help me solve my problem on how to repeat this whole game program when the player chooses the the Yes button which indicates that he'd like to play again. [CODE]a:\master1.java[/CODE] | |
hey guys, i am on the process of finishing this program it is supposed to be finished already only that I do not know how am i going to repeat the whole game after the user chooses the Yes Button from the message box. i hope u could help me … | |
ey there! i have a problem here regarding this maze stuff... i think using getch and gotoxy is not complicated. our teacher says he will give extra points to who can finish this.. can it be done using switch? a simple code would be much appreciated. - h3rtz- | |
I want to input a string Suppose the string was : String s = "sani"; Now I want to make "sani" the name of an object of one of the class. Suppose the name of the class is myClass. I want to : myClass sani = new myClass(); Any ideas?? | |
i have copied a c++ source code in the net and its using graphics.h and my compilier(visual c++) cannot see the directory can anyone help me please! Godbless+ | |
Hi .. i was trying to install MySQL apache server and php4. i did instal MySQL and Apache and they did work fine on.. but php didnt get install properly, i installed MySQL and Apache on D. and Php in C drive its a same hard disk though, do u … | |
And I need help with setting up and installing PHP as well. :D Ok, fact of the matter is, I am SOOOOO lost and confused that I am about to give up on the whole thing!! I've got the PHP files upload to the hosting site, and I followed the … | |
Dont laugh... :o I recently purchased a php nuke template at the template monster and dont know how to upload it properly to my server. I have all the required bits and pieces running but there instructions are a bit vague Hi Willie, To install a PHPNUKE theme you need … | |
i've been trying to install apache and every time i do: make install the final step in installing it... then i update the httpd.config file and i try to start the server it gives me the following error: mod_sock: unable to bind to 0.0.0.0:80 cannot open log files.. im installing … |
The End.