199,114 Archived Topics
Remove Filter ![]() | |
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) … | |
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: | |
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++), … | |
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? | |
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 … | |
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. | |
how to launch a txt file in vb.net, within a button click? | |
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 … | |
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 … | |
//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 … | |
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 … | |
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; } } | |
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 … | |
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.... | |
#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++) … | |
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? | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently | |
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 … | |
#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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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++? | |
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 … | |
![]() | 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 … ![]() |
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 … | |
anyone know where i can get the answers for the exercises...Im stuck on some of these... | |
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 … | |
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> … | |
[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 … | |
[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 == … | |
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 … |
The End.