199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ginger

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 …

Member Avatar for frrossk
0
169
Member Avatar for chound

I'm using Xp. I wan2 kno wat function in cpp 2 use 2 [SIZE=4]HIBERNATE NOT SHUTDOWN[/SIZE]

Member Avatar for chound
0
301
Member Avatar for ohnbabygal

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!)

Member Avatar for Dave Sinkula
0
94
Member Avatar for tablet

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

Member Avatar for tigerxx
0
209
Member Avatar for deedlit21

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 << " + …

Member Avatar for deedlit21
0
180
Member Avatar for perky_jing

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 …

Member Avatar for perky_jing
0
183
Member Avatar for PeterX

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

Member Avatar for nanosani
0
322
Member Avatar for XxMinionxX

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 …

Member Avatar for Lokinta
0
186
Member Avatar for Maverick

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 …

Member Avatar for PeterX
0
174
Member Avatar for raar

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 …

Member Avatar for raar
0
178
Member Avatar for Typhane20

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 …

Member Avatar for nanosani
0
131
Member Avatar for DevDevil

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 …

Member Avatar for Tekmaven
0
180
Member Avatar for lindsay867

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 …

Member Avatar for felgall
0
128
Member Avatar for shipwreck

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 …

0
115
Member Avatar for jasweb2002

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 …

Member Avatar for jasweb2002
0
74
Member Avatar for hiunnati

Hello, I am new to this site, found reference through google.com. I am attaching a sample code. The variable “file_nm

Member Avatar for Dave Sinkula
0
174
Member Avatar for gino.laudani

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

Member Avatar for Nichan
0
156
Member Avatar for ari_4u

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.

Member Avatar for ari_4u
0
77
Member Avatar for sam_bham

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 …

Member Avatar for sam_bham
0
97
Member Avatar for Bill T

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:

Member Avatar for Bill T
0
137
Member Avatar for billski

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 …

Member Avatar for billski
0
325
Member Avatar for JoBe

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

Member Avatar for JoBe
0
199
Member Avatar for chrisn

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 …

Member Avatar for chrisn
0
206
Member Avatar for Jason Marceau

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 …

Member Avatar for nanosani
0
262
Member Avatar for rackus

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 …

Member Avatar for rackus
0
151
Member Avatar for scott_6169

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

Member Avatar for kc0arf
0
118
Member Avatar for kohkohkoh

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

Member Avatar for kohkohkoh
0
128
Member Avatar for Mike23cool

Can somebody please help me or tell me how to write functions in java.

Member Avatar for nanosani
0
81
Member Avatar for VicLopez

#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.

Member Avatar for C#Coder
0
321
Member Avatar for johnsherman

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?

Member Avatar for ZWheel
0
302
Member Avatar for caffiene_junky

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 …

Member Avatar for caffiene_junky
0
173
Member Avatar for chock

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.

Member Avatar for Deno
0
88
Member Avatar for Kiwiman

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

Member Avatar for Dave Sinkula
0
283
Member Avatar for sarahrasheed

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 …

Member Avatar for fahad
0
238
Member Avatar for bob123452

i was wondering if there was any difference when you code an application using regular c++ 6 vs c++ .net 2003? Thanks

Member Avatar for C#Coder
0
435
Member Avatar for BountyX

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 …

Member Avatar for alc6379
0
134
Member Avatar for pcarlow

I found this [URL=http://www.allsyntax.com/tutorials/view.php?id=3&page=1]PHP Tutorial[/URL] and thought it was very good.

Member Avatar for mikeandike22
0
143
Member Avatar for rdn2113

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!

Member Avatar for rdn2113
0
135
Member Avatar for sarahrasheed
Member Avatar for bigtpsychoboy

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.

Member Avatar for jerbo
0
350
Member Avatar for Ghost

In java, how do you input something from the keyboard - the standard way(don't import anything - or add a file) Thanks!

Member Avatar for Ghost
0
113
Member Avatar for psylocke

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]

Member Avatar for psylocke
0
162
Member Avatar for psylocke

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 …

Member Avatar for psylocke
0
173
Member Avatar for h3rtz

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-

Member Avatar for Stack Overflow
0
963
Member Avatar for nanosani

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??

Member Avatar for freesoft_2000
0
211
Member Avatar for servant7

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+

Member Avatar for servant7
0
223
Member Avatar for daastan

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 …

Member Avatar for Gary King
0
143
Member Avatar for Totallyconfused

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 …

Member Avatar for Gary King
0
193
Member Avatar for mach1

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 …

Member Avatar for Gary King
0
212
Member Avatar for Decency

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 …

Member Avatar for Gary King
0
147

The End.