199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone, I am doing a simple program with some text in the jtextpane and the text inside the jtextpane span to about three standard A4 papers. What i want to do is to only be able print even and odd pages. I am using currently the java printable interface … | |
It took me about 2 days but I got it lets see if you can do it. Challenge ends on October 27 the program will then be posted for you viewing The program is designed to write a three-structured program in structure form with data members and member functions. In … | |
i can't figure out how to solve this error, i've searched online, but any solutions i've found use terms that are beyond me (as i am still a beginner at C++)..so it's been a little tricky to crack this. basically all i'm trying to do here is find the length … | |
Hello everyone ! I am a China student and I am a programfan. So I wanna to learn program,but there are many english book in my city! I feel study program so hard because my English is very poor! So I want to make a friend who come from you … | |
Recently we have been asked to create a hybrid sort based upon quicksorting down to a certain point and insertion sorting from then on. We are to calculate the efficency based upon previous tests. I had very little problems implementing a quicksort algorithm, but for the life of me, I … | |
Here is what I have so far. #include <iostream.h> int main() { int i, total[3]; int myValue[3][3]; myValue[0][0] = 53000; myValue[0][1] = 5; myValue[0][2] = 1; myValue[1][0] = 89000; myValue[1][1] = 3; myValue[1][2] = 2; myValue[2][0] = 93000; myValue[2][1] = 3; myValue[2][2] = 3; for (i = 0; i < … | |
[CODE]// Calcolo formula per Legge di Murphy ([url]www.andreagozzi.com[/url]) // Inclusione librerie in directory di sistema #include <math.h> #include <stdio.h> #include <string.h> // Funzione Main() main() { // Dichiarazione delle variabili float urgenza; float complessita; float abilita; float frequenza; float importanza; float e; // Impostazione variabile e fissata al valore 0.7 … | |
Hi Everyone, I am writing a program to convert measurements. I need the to program to have a menu. I have different units of measure to convert to one particular one. I think that I need to use a case statement. But I have no idea on how to construct … | |
This is urgent! I need an I/O code by today but I have no idea how to do it. Could anyone help a poor guy like me and maybe have some Java practice by writing a short code using the following information? I'll learn how it works later! Just help … | |
i havent been able to find anyone to help me .... i am looking to create a queue .... i cant use a stack, as that is LIFO (last in, first out) ... but i need a FIFO (first in, first out) .... i have some code for a stack … | |
:sad: I want to do serious C++ and VB programming but schooling is quite expensive, so I want to read and do it on my own. I know there are various text editors...even note pad. Are these editors used for programming, and then copied to a special programming software???? Forgive … | |
dear respected....... would u plz help me to learn graphics in C++.Like drawing lines,circles,ellips etc. Wish u all the best :mrgreen: | |
hi im havin a problem w/ printing a linked list. my program reads two input files and makes two linked lists out of them, and apend the lists and print it out. my input files look like this: 1 2 3 4 5 (input1) 11 22 33 44 (input2) here's … | |
I've written the program out but I'm not sure on how I can get the largest and smallest # to display.. can anyone help? thanks. Write a program with a loop that lets the user enter a series of integers. The user should enter -99 to signal the end of … | |
As a long time Windows C++ developer I now find myself with the will/opportunitty to develop on the Linux platform. I'm intrested in multi-thread development, Socket, ODBC development. Thanks for any help James | |
Hi! I am trying to write the program described below. Below the program I have included the text from the file I call. I have written the program, but I don't know what I have done wrong. Can anyone enlighten me? Thanks *Write a program that will compute the words … | |
// Program 2.25: Distance an object travels in miles // and time it takes to travel that distance // Author: Eric Martin // Date: 9/30/2004 #include <iostream.h> using namespace std; int main() { int distanceInMiles; int speedInMPH; int timeInMinutes; cout << "Computes time to travel given distance and speed" << … | |
Hello all....I can't seem to figure out why the min value won't display correctly. Could someone please critique my program with out actually giving me the code. I am so happy that I finally got my loop to work! I've been working on this all evening. It is a great … | |
Hi, I just started a program containing every single prog we have done for school so far and added some private stuff. Searching through my older files I found a prog which lists all Integers between 1 and 255 and their respective ASCII char, so I decided to include it … | |
Hi, I need to write a program that asks for a series of numbers, and when 0 is entered I need it to display the following: the number of integers in the series the average of the integers the largest and smallest integer the difference between the largest and smallest. … | |
Hello everyone I am knew to the site and new to programming. I am currently taking a C++ class. Everything in the text looks greek to me....Don't worry I am not going to ask how to do my hw.....Does anyone have any advise on the best way to learn and … | |
I'm doing a project on OpenGl and I'm a novice in C++. I knew I needed the header files and the more I've researched, the more problems I see with Windows XP and OpenGl. Any advice would be appreciated. Thanks, Smarkles | |
Hello, Is there any tool which will detect the unused methods of a class in a C++ project? So by using this tool I can reduce my build size by eliminating the un used methods. | |
I'm useless at programming so could someone help with simple programes for calculating the aresa under a curve ie "Integral" and one for reading words from an infile sorting them alphabetically and prenting to an outfile?? | |
Any one working in the field of data mining ??? I need to discuss some issues about it. I need to write c++ code for some algorithms used in data mining. | |
1st time trying to do C++. I need direction of how to write this program. Thank you. Specification: Follow the coding style guide lines of codingStyle.doc A small postal system ships packages within your state. Acceptance of parcels is subject to the following constraints: 1. Parcels weight <= 50 pounds … | |
| |
Hi all, If I want to check if memory has already been alocated to a pointer, and if it has I wnat ot delete it, is this how it would work? theGraph = new MyObject[size()]; if (theGraph != 0){ // or even NULL delete[] theGraph; } This seems intuitive to … | |
I need to make a program for school and I have no idea how to make it. I am supposed to do: [QUOTE]A right triangle can have sides that are all integers. A set of three integer values for the sides of a right triangle is called a Pythagorean triple. … | |
I had such code to copy three 2D arraya around by using pointers like below, but it seems all three pointers are pointing to the same memory address. How can I get it correctly? float **U_past, **U_future, **V_past, **V_future, **U_pp, **V_pp; In construct : U_past = new float*[a]; //a=100 U_future … | |
![]() | this program should output the names in ascending order which entered by the user. i know there is wrong under if(strcmp...) part..because i do not how to order it... can someone show me how to continue.. thank you.. #include <iostream> #include <cstring> using namespace std; int main() { char name[4][50]; … |
First i wanted to say thanks to the ones who help me with my first thread :-) i was able to get that program running with some more coding. now w.the problem i have. Iam trying to write a multiplication program that will help my kids memorize his time table. … | |
I need help in creating a program in C which tells whether the user pressed the Insert, Caps, Numlock, Alt, Ctrol, Left Shift and Right Shift... I would appreciate any help. | |
Need some help. Don't know anything about programming except HTML, would like to know where I should start to learn the language. :?: | |
Need an up to date tutorial for using C++. It has been a few years since I've had my last C++ class and since I don't use it on a daily basis, I forgot a lot that I had learned before. Need basic information and some beyond for programming. I … | |
This is just a general question. I was wondering how you can make programs compile and run quicker? Does it have to do with the primative type you use or what? | |
How do I make a greeting a named constant rather than a literal constant? | |
I have a problem which is outlined below. I get an unhelpful memory dump. I have 2 questions. Why doesn't the memory dump contain the line number as it should. And why am I geting memory dumps without ever using new or malloc or any such functions. This is being … | |
:?: hello everyone, id like to ask for some help. i am a beginner in Java programming. i am doing mastermind game using java. the whole logic of the game is already finished, and my ONLY problem now is :?: HOW will i be able to repeat the whole game … | |
im compiling a who wants to be a millionare game and i am unsure where to start does any one have any ideas??? :mrgreen: thanks | |
Ok, I'll be taking a C++ course soon, and I want to use a class (in college) that was very difficult for me to get an idea of what I'm looking at since browsing around C++ looks very complicated. In comparison to a college level calculus class how does it … | |
the book "Effective C++" have a item introduce cosnt,but a question i dont understand clearly. [code] class GamePlayer { private: static const int NUM_TURNS = 5; // constant eclaration int scores[NUM_TURNS]; // use of constant ... }; const int GamePlayer::NUM_TURNS; // mandatory definition; // goes in class impl.file [/code] why … | |
I have my program until that point and I can't finished, please someone helps me to finish my homework #include <stdio.h> int main () { int x, y; x = 6; y = 2*x*x*x+5; | |
were do i start? i just want to find a text template write code and then compile and learn c++ were do i go about starting on this compiler..i write basic code to start off but it wont let me pick "compile" and i want to know were the hell … | |
Hi i want to convert my C project to C++. so does anyone knows any tool that converts a C program to C++ | |
Could some one help me with writing this code in C++. I'm taking a course called PSP, personal software process. The program i have to write is : store and retrieve a series of n real numbers into and from a file. On entry, the program should accept integer or … | |
1. int *f() { int *m=(int *)malloc(2); return m; } WHY THIS POINTER TO INT TREATED AS A GLOBAL VARIABLE. 2.can a pointer points to another pointer like that int *p,i=2; int *q; p=&i; q=p; IS IT RIGHT. | |
I'm trying to write a program in complex arithmatic for my math class. The text I have gives me the following for addition: typedef struct FCOMPLEX {float r,i;} fcomplex; fcomplex Cadd(fcomplex a, fcomplex b) { fcomplex c; c.r=a.r+b.r; c.i=a.i+b.i; return c; } but my compiler refuses to accept it. it … | |
I really need help I'm student from college and I need to write a C program a) declare two integer variables x and y b) let x = 6 c) find y value use the following algebraic formula y=2x (third power) + 5 |
The End.