199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for freesoft_2000

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 …

Member Avatar for Narue
1
152
Member Avatar for hopeolicious

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 …

Member Avatar for alc6379
1
121
Member Avatar for GoldenGreg007

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 …

Member Avatar for GoldenGreg007
1
147
Member Avatar for navyblue

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 …

Member Avatar for smarkles
1
274
Member Avatar for Jpowers22

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 …

Member Avatar for subtronic
1
3K
Member Avatar for HollywoodTimms

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

Member Avatar for Narue
1
484
Member Avatar for trashed

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

Member Avatar for trashed
1
191
Member Avatar for simpsonjr

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 …

Member Avatar for server_crash
1
115
Member Avatar for theon

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 …

Member Avatar for server_crash
1
188
Member Avatar for jaeSun

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 …

Member Avatar for jaeSun
1
291
Member Avatar for adzidzor

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

Member Avatar for vegaseat
1
172
Member Avatar for mishu1516

dear respected....... would u plz help me to learn graphics in C++.Like drawing lines,circles,ellips etc. Wish u all the best :mrgreen:

Member Avatar for vegaseat
1
202
Member Avatar for ohnbabygal

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 …

Member Avatar for Narue
1
196
Member Avatar for wangstarr

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 …

Member Avatar for Narue
1
146
Member Avatar for jlopes151

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

Member Avatar for Narue
1
125
Member Avatar for HinJew

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 …

Member Avatar for Narue
1
114
Member Avatar for stefanusr
Member Avatar for Narue
1
152
Member Avatar for dcving

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

Member Avatar for Narue
1
171
Member Avatar for tj

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 …

Member Avatar for chound
1
260
Member Avatar for Anu

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 …

Member Avatar for chound
1
129
Member Avatar for the b

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

Member Avatar for the b
1
128
Member Avatar for tj

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 …

Member Avatar for anthmaina
1
271
Member Avatar for smarkles

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

Member Avatar for smarkles
1
241
Member Avatar for vivekgalatage

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.

Member Avatar for Chainsaw
1
150
Member Avatar for Tomás

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

Member Avatar for kc0arf
1
106
Member Avatar for fahad

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.

Member Avatar for fahad
1
83
Member Avatar for beezybeem

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 …

Member Avatar for Stack Overflow
1
151
Member Avatar for vudatalark
Member Avatar for Chainsaw
1
296
Member Avatar for littletimmy

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 …

Member Avatar for Dave Sinkula
1
201
Member Avatar for Transworld

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

Member Avatar for Transworld
1
7K
Member Avatar for lin-da

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 …

Member Avatar for Dave Sinkula
1
99
Member Avatar for kohkohkoh

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

Member Avatar for Dave Sinkula
1
114
Member Avatar for big buc's fan

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

Member Avatar for big buc's fan
1
177
Member Avatar for johnny2k

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.

Member Avatar for johnny2k
1
133
Member Avatar for shortd81

Need some help. Don't know anything about programming except HTML, would like to know where I should start to learn the language. :?:

Member Avatar for shortd81
1
178
Member Avatar for majuti

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 …

Member Avatar for vijay choudhari
1
125
Member Avatar for server_crash

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?

Member Avatar for cosi
1
387
Member Avatar for cford
Member Avatar for alc6379
1
115
Member Avatar for littletimmy

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 …

1
139
Member Avatar for psylocke

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

Member Avatar for nanosani
1
104
Member Avatar for Elektro

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

Member Avatar for Elektro
1
102
Member Avatar for A Monkeys Uncle

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 …

Member Avatar for Killer_Typo
1
2K
Member Avatar for XianBin

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 …

Member Avatar for FireNet
1
222
Member Avatar for alexmejia92

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;

Member Avatar for Dave Sinkula
1
84
Member Avatar for xxraveteddyxx

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 …

Member Avatar for Chainsaw
1
117
Member Avatar for vivekgalatage

Hi i want to convert my C project to C++. so does anyone knows any tool that converts a C program to C++

Member Avatar for Chainsaw
1
197
Member Avatar for jwilcox

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 …

Member Avatar for jwilcox
1
191
Member Avatar for Sukhbir

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.

Member Avatar for let us c
1
152
Member Avatar for fyrphnx

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 …

Member Avatar for fyrphnx
1
108
Member Avatar for alexmejia92

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

Member Avatar for Chainsaw
1
329

The End.