132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for freesoft_2000

Hi everyone, I have a problem with the fundamentals wit serversockets and sockets in java. In the constructor of the java socket as shown below Socket(InetAddress address, int port) In the above constructor what do they mean by address? In the below java constructor as shown below Socket(String host, int …

Software Development email java
Member Avatar for alc6379
0
118
Member Avatar for matika

#define ENDFILE "CTRL-Z" this end the file whenever the user enter CTRL-Z what i need, i want the user 2 enter CTRL-X to end the program #define ........ "CTRL-X" ( what could i write here) so the program end whenever the user press CTRL-X

Software Development c
Member Avatar for matika
0
191
Member Avatar for wewe

C++ - deals with list Assginment given: Consider a slight variation of the pointer-based implementation of the queue ADT. In this variation, the queue uses a circular linked list to represent the items in the queue. You must use only a single tail pointer. Construct the implementation of such queue …

Software Development c++ display linked-list queue
Member Avatar for alc6379
0
190
Member Avatar for Chester1

Need HELP! This Program that accesses a data base will not print out information from Data Base.I think the Problem is in the SELECT statement.The Primary Key is ID1, I want to Access Primary Key 2, Field Father but when I run it, it will only print out Quote: " …

Software Development c sql
Member Avatar for sergio
0
106
Member Avatar for coolmel55

I'm very new at this but I'm getting some weird error: unexpected end of file while looking for precompiled header directive I don't have much yet but here it is: #ifndef RECTANGLE_H #define RECTANGLE_H #include <iostream> using namespace std; class Rectangle { public: Rectangle(); //constructor ~Rectangle(); //destructor Rectangle(); //copy constructor …

Software Development c++
Member Avatar for coolmel55
0
457
Member Avatar for mohammad

i am new on file(c) if i copy fscanf(nom du file,"%d",&a); from where i want copy th value of a plz send for me a example use fscanf plzzzzzzzz realy i need help :cry: :cry:

Software Development c
Member Avatar for Narue
0
150
Member Avatar for JECMAIL

I have to build a C++ code that accepts 4 separate Hexadecimal inputs and returns in English the human readable for a set of machine code instructions. I can either get my program to accept characters or integers. At this time I have my program set to work on integers …

Software Development c++
Member Avatar for Narue
0
175
Member Avatar for HinJew

Hi, as I posted earlier, what I need to do is get a user to input the temperature in celsius (and if input in farenheit, convert it to celsius first) and the windspeed, and have the program calculate the windchill. I have one error in line 88 of the program …

Software Development c++
Member Avatar for coolmel55
0
117
Member Avatar for wewe

C ++ reading a textfile into linked list text file: Humpty Dumpty sat on the wall Humpty Dumpty had a great fall all the kings horses and all the kings men could not put Humpty Dumpty back together again --------------------------------------------------- the idea is to read in this sentence into a …

Software Development c++ first-post linked-list
Member Avatar for coolmel55
0
106
Member Avatar for Jason Marceau

Hi, I have to write a program that tests if a number entered is prime or not. I have finished all the code to display input prompts and output message Example: " Enter a number: " - " x is a prime number" - " x is not a prime …

Software Development display java
Member Avatar for nanosani
0
132
Member Avatar for Asif_NSU

Hi guys, itz my that projectile game in C which used to be in code snippets sections. Well, as u can see no one was able to compile it and as a consequence it's been thrown out of the snippets :rolleyes: Well, here is the complete program, no codes -- …

Software Development c
Member Avatar for Asif_NSU
0
111
Member Avatar for coolmel55

how do you read in a text file char by char a store in a string?

Software Development c++
Member Avatar for coolmel55
0
301
Member Avatar for asn_vasan

difference between c and c++ languages difference between templates and class,structures in c language and class and structures and templates difference between java and c++

Software Development c c# c++
Member Avatar for Narue
0
148
Member Avatar for HinJew

I have to write a program that takes temperature in celsius (if in farenheit, it converts it to celsius) along with the windspeed and calculates the windchill. I have the program written but I can't figure out what I'm doing wrong in lines 63 and 75. Any help would be …

Software Development c++
Member Avatar for Chester1
0
93
Member Avatar for Jason Marceau

Hi, I have written a program that accepts a positive integer as input and determines whether or not the number is prime, it all works accept when a number is prime it should display " x is a prime number " and continue to prompt for user input ( loop …

Software Development display java
Member Avatar for jerbo
0
148
Member Avatar for bheng

[FONT=Arial Narrow]undefined[/FONT] please help me to make my Java programming project. my teacher required me to make at least a very simple game using java application. Since we're still on the basic Java, however I tried to make my own, I still cannot. Please!!!! anyone can help me to make …

Software Development email java
Member Avatar for Dani
0
145
Member Avatar for chound

I want to break the loop if the user does not enter any value. How do I do that. [CODE] #include<iostream> using namespace std; int main() { int a=1; while(a!=NULL) //how do i phrase this. When the user does not enter any input //I want the loop to exit cin>>a; …

Software Development c++
Member Avatar for jasweb2002
0
145
Member Avatar for Mahen

hi everyone i've created a program on perl and i want to share it with everyone so as everyone can bring his own code. For more information, email me at: [email]neoanderson12@hotmail.com[/email]

Software Development email perl
Member Avatar for alc6379
0
97
Member Avatar for ray96

Hi, I am very new to C, and also to this forum, so please bear with me. :!: :o I am trying to create a console astronomical program, and I need to know how to convert radian numbers to degrees. I would appreciate any help.

Software Development c
Member Avatar for Dave Sinkula
0
137
Member Avatar for macca1979

Hey there, I'm new to java and I need to write a string that i generated in my code to an output file. I'm currently writing the string to the standard output like so : System.out.println("K_"+Receiver+",t"+msgnum+"(R(" +Receiver+",t"+msgnum+"("+out1+")))"); All the types e.g. 'Receiver' or 'out1' are of type string. Could anyone …

Software Development file-system java
Member Avatar for tigerxx
0
95
Member Avatar for jasweb2002

I asked this before but didn't get an answer so I went to talk to my "professor" and he just about made me want to quit programming :( . So a little help would go great lenghs to salvaging this day. Basically I have to right a program that reads …

Software Development c++ queue
Member Avatar for jasweb2002
0
105
Member Avatar for XianBin

I don't how to description this puzzle, just like this: [code] int *fun_num() { int b = 123; return &b; } char *fun_char() { char *b = "123"; return b; } int main(int argc, char *argv[]) { int *pfun; char *pchar; pfun = fun_num(); pchar = fun_char(); cout << *pfun …

Software Development c puzzle
Member Avatar for XianBin
0
146
Member Avatar for willow

New to C++ programming. I am supposed to write a program that will ask the user if they want to print an ascending or a descending triangle. Based on user input, print the triangle on the screen. Only one cout statment may be used and it has to read: cout …

Software Development c++ display
Member Avatar for Dave Sinkula
0
1K
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 …

Software Development c
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]

Software Development c++
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!)

Software Development c
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

Software Development java
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 << " + …

Software Development c++
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 …

Software Development image java java-swing
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

Software Development java
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 …

Software Development visual-basic
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 …

Software Development java
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 …

Software Development c
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 …

Software Development java
Member Avatar for nanosani
0
131
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 …

Software Development c++
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 …

Software Development java java-swing
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 …

Software Development c queue
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

Software Development c google
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 == …

Software Development java
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.

Software Development c
Member Avatar for ari_4u
0
77
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:

Software Development c
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 …

Software Development c++ display
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 = …

Software Development c++
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 …

Software Development java microsoft microsoft-access sql
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 …

Software Development display file-stream java
Member Avatar for nanosani
0
262
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; }

Software Development c++
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] …

Software Development c++
Member Avatar for kohkohkoh
0
128
Member Avatar for Mike23cool

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

Software Development 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.

Software Development c++ first-post
Member Avatar for C#Coder
0
321
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 …

Software Development c++
Member Avatar for caffiene_junky
0
173

The End.