199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shonenhype

Write a function IsoTriangle() that takes a size parameter and dispays an isoceles triangle with that many lines. Use the DrawBar() function as a basis. (Hint: Use another function Spaces() to display the leading spaces before the start of the asteriks on each line.) For example, the function call IsoTriangle(4) …

Member Avatar for Narue
0
159
Member Avatar for ANRCCC

I am trying and I don't know what to do. Attached is a aprogram and I don't know what is going wrong. :sad:

Member Avatar for Narue
0
117
Member Avatar for xplst

I've just downloaded the C++ sockets library from [url]www.alhem.net/Sockets[/url], but I can't get my programs to link -- I get a lot of "undefined reference"s.... I'm using g++ version 3.3.3. on Fedora Core 2 (kernel version 2.6.5-1.358). I can get the programs to compile (using the -c flag to g++), …

Member Avatar for grymse
0
3K
Member Avatar for server_crash

I plan on writing an app that will graph polynomial expressions. My question is, what should I draw the graph on? Should I just use the regular frame and use DrawLine(), or is there something like a bitmap, or canvas thing I should use?

Member Avatar for server_crash
0
100
Member Avatar for satimis

Hi folks, I shall start my first lesson to learn Java. I found following sites/tutorials; Tutorial (search) [url]http://onesearch.sun.com/search/onesearch/index.jsp?qt=java+tutorial&uid=6910019[/url] Java Tutorial [url]http://java.sun.com/docs/books/tutorial/[/url] [url]http://java.sun.com/docs/books/tutorial/information/download.html[/url] Java Tutorial Books [url]http://java.sun.com/docs/books/tutorial/book.html[/url] Java Tutorial Sites [url]http://java.sun.com/[/url] Java Tutorial, Trailmap [url]http://java.sun.com/docs/books/tutorial/trailmap.html[/url] Training [url]http://training.sun.com/[/url] Kindly advise which of them shall I stick to at start. Are there any …

Member Avatar for satimis
0
166
Member Avatar for ArcticWolf

Hello All, I apologize if I missed where this might have been covered in the past. I have a website and do not want the .php extension to show up in the address bar. Is there any way to make it show up as a 'normal' .com address? Thank you.

Member Avatar for PoA
0
98
Member Avatar for april_er
Member Avatar for dearlymom

I have been searching for information on CS for about a month before I found this web site. :p After reading "Programing FAQ" I have decided to start with python and then to move onto a version of C(although I have not decided which one yet). Would this be a …

Member Avatar for dearlymom
0
119
Member Avatar for OurNation

Whats wrong with this im just dumb and couldnt figure it out help please //SLOPE import java.io.*; public class SLOPE { public static void main(String args [ ]) { int Y2, Y1, X2, X1; BufferedReader reader; reader = new BufferedReader(new InputStreamReader(System.in)); try { System.out.print("\nY2 ="); Y2 = Integer.parseInt(reader.readLine( )); System.out.print("Y1 …

Member Avatar for OurNation
0
155
Member Avatar for ultimate_fusion

//main method int number = 1; int num = 3; details[] Darray = new details[number][num]; String name = JOptionPane.showInputDialog(null, "Enter the name", "Enter details", JOptionPane.QUESTION_MESSAGE); String DOB = JOptionPane.showInputDialog(null, "Enter the DOB", "Enter details", JOptionPane.QUESTION_MESSAGE); class details // i have default construtors aswell String getName(){ return name; } heres the …

Member Avatar for tonakai
0
91
Member Avatar for sachin kumar

Hi All, I have a build an application which uses file names from a directory. to get these file names I used the following code from MSDN. FILE * fp; String *extension; // Create a reference to the current directory. DirectoryInfo* di = new DirectoryInfo("C:\Sachin"); // Create an array representing …

Member Avatar for steveh
0
123
Member Avatar for Lost Chyld

I need help with breaking out of a loop. I know it's something simple, but I can't remember. Here's my code. for(count = 0; count < inputArray.length; count++) { inputArray[count] = JOptionPane.showInputDialog( null, "Please input a name or exit: ", "Input Name", JOptionPane.QUESTION_MESSAGE); if(inputArray[count] == "Exit") { break; } }

Member Avatar for server_crash
0
103
Member Avatar for dal4488

This is what I have so far and I can't figure out how to get the converted length in my output file so that 312 inches converts to 3 yards, 1 foot, and 3 inches. #include <iostream.h> #include <fstream.h> using namespace std; int main() { ofstream outfile; int centimeters; int …

Member Avatar for blackdove
0
104
Member Avatar for tbartoli

After compiling a QBasic program, an object code file is created (.obj). My question is: How do I look at that file? I've tried opening it with a number of different programs, but all I get is gibberish. Thanks for any help....

Member Avatar for Comatose
0
114
Member Avatar for missy

#include <iostream> #include <string> #include <fstream> using namespace std; void main() { ifstream indata; ofstream outdata; char name [13][20]; float avg[20]; int sum=0, n, i=0, m,p; float davg; char ch; indata.open("a:nameFile.txt"); if(indata.fail()) { cout<<"file not open:"; exit (1); } while(i<=20) { for (i=0;i<20;i++) indata.getline(name[i],20); } for (int k=1; k<=3; k++) …

Member Avatar for Narue
0
115
Member Avatar for roscioeak@direc

Can anyone direct me where to go for doing stacks in C++. I have to make a program using stacks but can you initialize a stack with given values? If so can you give an example?

Member Avatar for vegaseat
0
104
Member Avatar for xsxixtxhx

I have a project that i am working on and i can't get how to get it to work. I have attached the .h and the main cpp file. If any one can be of help please reply or im me at xsxixtxhx on Instant messenger. I need to get …

Member Avatar for kc0arf
0
237
Member Avatar for jasonkit84

hi, My problem is i have created a report using Crystal Report and the font-style is Roman 20 cpi. When i preview the report in Crystal Report, the font-style is still Roman 20 cpi but when i view the report using VB.NET the font-style has changed into another font-style. And …

Member Avatar for AK47
0
218
Member Avatar for PaulaS

Hi, I have a project where we need to scan each pixel from an image. Somewhere in the image there will be a 10x10 red pixel and we need to draw a circle around it. This is the code I have so far: (but I'm having trouble figureing out the …

Member Avatar for server_crash
0
107
Member Avatar for MAD_DOG

Is there any books you guys know of that someone like me that dont know anything about programming can use C++/VB what ever something that is quick and easy to understand. Something really simple something you guys can recommand. Thanks again

Member Avatar for bombe
0
430
Member Avatar for odee

is it possible to create an array then you pass it to a function? That function will change the values in the array then return it back as an array.

Member Avatar for Dave Sinkula
0
122
Member Avatar for Dani

I am taking a Computer Graphics course where we are doing some c++ programming using the OpenGL API. I'm writing a C++ program in Visual Studio.NET, where I've installed GLUT (Open GL Utility Toolkit). OpenGL, itself, apparently comes with VS. The only include that I have in my one-file program …

Member Avatar for Intel
0
1K
Member Avatar for notdumb

I was attempting to initilize bool done to false, then have this program continue to give the user the option to do more check balance functions util they pressed exit, however, my program continues to cycle repeatedly, even after option 5 (EXIT) is entered. Please, some help on how to …

Member Avatar for notdumb
0
173
Member Avatar for tomex

hi every am anew guy in all this stuf however i want to connect to an access 97 data base with a password through visual basic 6 however each time i try to connect it give me an error i put in the correct username and password can some one …

Member Avatar for dimuthubas
0
468
Member Avatar for BrownSuga

I am stuck trying to figure out syntax errors in program. Would appreciate help. Thank You In Advance :D These are the errors: C:\My Documents\myJavaFiles\Homework 2\Inventory.java:40: illegal character: \92 System.out.println("Item Already Exists --" ' +item + '); ^ C:\My Documents\myJavaFiles\Homework 2\Inventory.java:40: unclosed character literal System.out.println("Item Already Exists --" ' +item …

Member Avatar for BrownSuga
0
160
Member Avatar for Asif_NSU

After having us write codes to convert decimal numbers to another base my faculty has now asked me to write codes to convert a number from ANY base to another. He explains that itz simple since i already wrote the program to convert integer to another base. So i just …

Member Avatar for Asif_NSU
0
208
Member Avatar for sidhjn

hello! I am a newbie and probably dont know much. I need to implement a 1-bit adder in c/c++ and then combine this 1-bit adder to make 32-bit adder. I shall be really grateful if you can help. Regards, Siddharth

Member Avatar for Narue
0
147
Member Avatar for ITman

can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently

Member Avatar for ITman
0
115
Member Avatar for dreyes67

I am a new user to VB so forgive any simple questions. I just created a tool that will display the Job Number, Requested by, Status, Group, Operator. As this database has about 50-75 requests added to it daily and with luck we process them all or 90% of them …

Member Avatar for dreyes67
0
197
Member Avatar for ah01

#include <iostream> #include <stdio.h> #include <iomanip> using namespace std; struct person { char name[15]; int Idnum; int *testscores; float average; char grade; } *student, freshman; //////////// function prototype /////////// void allocate_memory(int number_students , int number_scores); void get_data(int number_students ,int number_scores); float validate_score(int score); void print_results(int number_students ,int number_scores); void release_memory(int …

Member Avatar for vegaseat
0
178
Member Avatar for chound

Just to attract your attention. :cheesy: :lol: :cool: ;) Here's the problem: I have this string "flames". Then I get a number from earlier part of myprogram. Let the number be 4. Now 'm' is the 4th character. This should be removed. Then the remaining string is "flaes". Now 'e …

Member Avatar for Narue
0
210
Member Avatar for crypter

Would it possible to have a form when you start a program that asks a username and password. Then the information sent to a server analised and compared to a database for approval to then show another form which then lets you use the program? so basically you start xyz.exe …

Member Avatar for crypter
0
162
Member Avatar for seeplusplus

alright, so i have two files now, main.cpp, and Rationall.h, when i compiled my code it gave me this.... /tmp/ccyeOf6F.o(.text+0x1a6): In function `main': : undefined reference to `rational::~rational [in-charge]()' /tmp/ccyeOf6F.o(.text+0x1c4): In function `main': : undefined reference to `rational::~rational [in-charge]()' collect2: ld returned 1 exit status this is my code......i dont …

Member Avatar for Tripoli178
0
106
Member Avatar for supersonic

What I'm attempting is to have database driven links on my page. It is all ok except one thing and that is this error when my page comes up in the browser. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/admin/public_html/index.php on line 114 Here is …

Member Avatar for paradox814
0
121
Member Avatar for master Blacktop

Konrad Zuse, a German engineer, completes the first general purpose progammable calculator in 1941. He pioneers the use of binary math and boolean logic in electronic calculation. Colossus, a British computer used for code-breaking, is operational by December of 1943. ENIAC, or Electronic Numerical Integrator Analyzor and Computer, is developed …

Member Avatar for brain-nerd
0
423
Member Avatar for Seyha Eng

Hi, I have code to open program that work(on attach files). My problem is when I change code to open another file it error. Ex: Right code: Call Shell(li & "\" & "Program Files\Microsoft Office\Office10\POWERPNT.EXE", 1) Error code: Call Shell(li & "\" & "aa.pdf", 1) Error say:"Invalid procedure call or …

Member Avatar for Comatose
0
395
Member Avatar for ncc1701d

hi I need help with docking app to side of screen. Anyone have idea how to do? I have no clue. Any any terminology, code, tutorials you know of? I use Visual basic. I am NOT refering to permanent positioning with form coordinates and not talking about docking controls within …

Member Avatar for Comatose
0
171
Member Avatar for tones1986

the code compiles but when i try running the .exe it closes. It looks liek for the 2 seconds its up it works, but then it closes itself. What am i doing wrong? heres the code: #include <iostream> using namespace std; int main() { // sets variables to be set …

Member Avatar for bombe
0
602
Member Avatar for cymbalistic1

Hello, I'm new to this site and this is my first post. I got an assignment where I have to do a QuickSort on 100,000 numbers first and then combine QuickSort and BubbleSort so that the BubbleSort comes in for the last 1,000 numbers. The information is to be exported …

Member Avatar for cymbalistic1
0
101
Member Avatar for freesoft_2000

Hi everyone, I am trying to add an undo listener to a jtable but could not get it to work. Does anyone know how to add a undo function to a jtable assuming the default cell editor component is a jtextfield? A small code sample would be helpful Any help …

Member Avatar for freesoft_2000
0
118
Member Avatar for chound

I get 2 strings. I remove all the characters present in both the 2 strings.I count the no. of characters left. How do i do this in C++?

Member Avatar for vegaseat
0
177
Member Avatar for Crescent Cross

Hello there. I'm currently trying to write a Final Fantasy Tactics-type game and I'm wondering if there is a simple way to simulate a 30° (isometric) view of an image or tiles which are 45° (oblique). Here is a simple outline of what I want to do: [img]http://hungrytech.com/publicgfx/45and30.png[/img] I've searched …

Member Avatar for Paul.Esson
0
114
Member Avatar for Geek-Master

I've been playing around with files and streams and just hit a pot hole. My goal is to be able to input time and date into a file when say someone "clocks in/out". Just a little program that will help me keep up with my time in school. [CODE] #include …

Member Avatar for Geek-Master
0
125
Member Avatar for 40ounce68

Well currently Im a student, and very interested in becoming a good C++ programmer. Im currently in a class and is very challenging for me. I mean, I read the book, but have a hard time applying it sometimes...any of you experts have any tips for me. Cause I really …

Member Avatar for Narue
0
98
Member Avatar for 40ounce68

anyone know where i can get the answers for the exercises...Im stuck on some of these...

Member Avatar for vegaseat
0
106
Member Avatar for server_crash

For the AP Comp. Sci. exam, we have to read 150 pages on this stupid program, and my teacher is wanting us to read the teacher's manual of it on the side..Which is another 130 pages...Now, I have heard that the questions on that case study makes up less than …

Member Avatar for AlPhA
0
185
Member Avatar for evilsilver

I am trying to make a program that needs to compare a string. here is a basic program of what i mean, i want it to say "it worked" but it seems to only read as not true. anyone know how to do this? thanx for any help. [CODE]#include <iostream> …

Member Avatar for jimFan
0
137
Member Avatar for SquirrelProdigy

[CODE]SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT); while(1) { ReadConsoleInput(InputH,&InputRecord,1,&InputEvents); if(InputRecord.Key_Event) { if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl; } FlushConsoleInputBuffer(InputH); }[/CODE] [FONT=Book Antiqua] [SIZE=4][COLOR=DarkSlateGray]FlushConsoleInputBuffer() is used to prevent input from echoing, correct? If so, that command isn't doing it's job, I still get echo, and I can't figure out why. Any suggestions? I reposted this …

Member Avatar for SquirrelProdigy
0
370
Member Avatar for Sam Lehman

[code]#include "stdafx.h" #using <mscorlib.dll> using namespace System; #include <iostream> using namespace std; int _tmain(){ char payType; double payRate, salPay, sesTaxes, sesGross, totalTaxes=0, totalGross=0, aveGross, hours; int pwPieces, empCount=1, anotherRound, hourExempt; cout<<"Sam Lehman\nPayroll Output File\n"<<endl; while (true){ cout<<"Pay Type? (type S, P, or H)... "; cin>>payType; while (true){ if (payType == …

Member Avatar for Sam Lehman
0
159
Member Avatar for tones1986

I have this banking program that has a savings, checking account set up. The user has 4 options. Checking, Saving, Balance, and monthly maintenance. The checking option is all correct and never comes out weird...u can deposit everything and withdraw without any probs. If i do that -- then i …

Member Avatar for tones1986
0
149

The End.