132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
#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 | |
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 | |
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: " … | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
how do you read in a text file char by char a store in a string? Software Development c++ | |
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++ | |
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++ | |
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 … | |
[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 … | |
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++ | |
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] | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
I'm using Xp. I wan2 kno wat function in cpp 2 use 2 [SIZE=4]HIBERNATE NOT SHUTDOWN[/SIZE] Software Development c++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 == … Software Development java ![]() | |
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 | |
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 | |
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 = … Software Development c++ | |
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 | |
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 | |
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++ | |
![]() | [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++ ![]() |
#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 | |
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++ |
The End.