199,114 Archived Topics
Remove Filter ![]() | |
I know I am missing a big part of this program but for some reason my mind is not working at all tonight. I need to: > Write a program that asks the user to enter the duration of a baseball game > by first asking for the number of … | |
i am trying to have macromedia flash button send a double or a symbol like (+, =, &) to a java program. the java program will save the input on an arraylist. while the flash button sends doubles it simply puts them on the arraylist, but if a symbol comes … | |
Hi, i am new to java..... i was wondering if someone can hlep me with the code to substitute the use of showInputdialog. currently i am using the following code to recieve Strings, but i do not want to use the java dialog boxes. is it possible to do something … | |
Hi guys, Quick question, I was trying out to determine the second smallest number of 10 random entered numbers, this is what I got: [code] #include <stdafx.h> #include <iostream> #include <iomanip> using namespace std; int main(void) { int s=0,x=0,y=0; cout<< "Input ten random numbers with cin and determine the second … | |
Hey, I've been programming for sometime now and one thing I've never had to do is any sort of "debugging". I was just wondering if someone could help explain to me the process and the purpose of it. Thanks! :lol: | |
I am trying to write a program that computes the area of a right triangle. It has to use a function to compute the area. This is actually a part of a bigger program, but when I couldn't get it to work I isolated this section. I tried looking on … | |
hi "this program is for adding 2 tables with 3 rows and 4 columns" .... so i have done like this...... #include<stdio.h> #include<conio.h> void main() { int a[3][4],b[3][4],c[3][4]; int i,j; clrscr(); printf("\nENTER AN ARRAY:"); printf("\n\nFIRST TABLE:"); for(i=0;i<3;i++) { for(j=0;j<4;j++) { scanf("%d",&a[i][j]); } } printf("\nENTER AN ARRAY:"); printf("\n\nSECOND TABLE:"); for(i=0;i<3;i++) { … | |
here is the code: [code] struct Vertex { Vertex(){} Vertex(float x, float y, float z) { _x = x; _y = y; _z = z; } float _x, _y, _z; static const DWORD FVF; }; const DWORD Vertex::FVF = D3DFVF_XYZ; [/code] firstly, does the word static in the struct Vertex … | |
I am attempting to write a function that determine the area of a triangle. I am not sure what I am doing wrong when trying to determine the area. The error message I am getting is "error-call of overloaded 'sqrt(int)is ambiguous. Can you help me determine what is wrong?? [code] … | |
i need code for sorting number using Declaring and manipulating Arrays. Passing arrays to the functions as parameters. The objective of this assignment is to provide an on hand experience of: o Declaring and manipulating Arrays. o Passing arrays to the functions as parameters. Problem Statement: For this assignment, you … | |
i have sorted data in an array and sent to a file...how do i put this sorted data in a stack. | |
I need to write a JAVA program that converts an uppercase letter to a lowercase letter ... the method declaration should be public static char upperCasetoLowerCase(char ch) ... I think I am missing something in my thought process. Can anyone help? Here is what I have tried... [code] public static … | |
Im writing a program that when given a date in the form of mm/dd/yyyy will calculate how old the person is in years... right now im stuck at getting the data as i cant figure out how to separate the data when it's entered in mm/dd/yyyy format... any suggestions? | |
hi... im a bit new to this forum. i saw it on google and decided to join up... im working on a calender like program for my computer science 102 course. the parameters are as follows: Make a program that, when given the mm/dd/yyyy, can decide what DAY the user … | |
i wrote a program to help input User ID's for a system admin can any one check the code to seewhat wrong with it thank you | |
I keep on getting one error when I compile this. I can't figure out what is wrong with it. Please help. [code] //Write a program that asks the user to enter two integers. //The program should divide the first integer by the second and then display the resulting quotient and … | |
I'm writing a C++ program in Visual Studio.NET. I have an 18" monitor so my resolution is set to 1280x1024, and I'm taking advantage of every inch of this space to do my coding (plus I comment a lot). I'd like to print my documents out without every other line … | |
I have a list of 10 numbers in a array and want to sort them. Basically I am using a "quick sort" and want to swap 2 positions in a array. But Im stuck with the code for how to do this. My code is written below. If anyone has … | |
How can i write an array to file using C++?? i need to write the whole array at once, meaing that the writing function should take a pointer to the array. And the array is holding floating numbers.. What's that fuction name that will satisfy that? How can i do … | |
Alright, i just learned the loops (if then else, for, do while, ect.) and just before it i learned the input and output (cin, cout). Now the tutorial i am using, has no homework built in it, so if anyone would be so kind to tell me something, ill probally … | |
i just want to find out '?','/','', ect, from a char array, can anyone help me to find out what's wrong with the code below? thanks the reture value is not always what i want? static int is_valid_function_name(char *function_name_string) { for( ; *function_name_string !=' \0 ' ; function_name_string++ ) { … | |
The computer is a Dell Optiplex GX270, running Windows XP Pro., and Office 97 Pro. I've had Office 97 running on this computer for a few months and Access was fine. I went to open it and got an error saying it couldn't be opened because there was no license … ![]() | |
I am doing a program in which there are 8 planes seats the user gets to choose whgich seat they want. I created the GUI buttons and what not (fairly easy), but I wanted to make an array....I'm rambling here, because I can't do this program the way I want. … | |
below is what im talking about: int d3d::EnterMsgLoop( bool (*ptr_display)(float timeDelta) ); i don't understand the bool (*ptr_display)(float timeDelta) bit i think its a function pointer parameter type, so that it must point to a function that returns a value of type bool, and it must contain a single parameter … | |
Hi! I have a little problem The program is OK, but I can not print out: QUESTION is how can I print out (class Test). I mean How can I write toString()methode.how can I print out "myTable" and the out put must be like this: Audi blue 180 Volvo red … | |
i've referred a couple of datastructure books and both give different definitions for width of a binary tree. one says its the no of nodes at a level,while another says its the longest path that can be traversed in a binary tree. can any one help me with a recursive … | |
:rolleyes: This is a program where the user enters how much they owe, then they enter how much they are gonna pay, like (30 dollars for a $25.63 amount), and their change is calculated back to them in ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickels, … | |
:p hi ,this is my first visit to theis web , i hope to help me, i need afull c++ programm of game called "pebble chess" , this game can execute on algorthims called "minmax", and iwill describe this game: 1- each player turn consists of moving one or more … | |
I have tried various break statements and I cannot get my program to break correctly. Original program is a nested loop asking user for input for either an ascending or descending triangle. That works. But when I try to add a break, it either runs after entering how I want … | |
Hi, I'm trying to connect to a database using MySQL. Very new at this. I already have an existing table consisting of 2 rows created using phpMyAdmin. The problem (not exactly) I'm facing is when i insert a new row, it seems to insert after the 2nd row, not at … | |
#include <fstream.h> class Person { char emp_name[40]; int Tel; public: void ShowData() {cout<<"Name: "<<emp_name<<endl<<"tel: "<<Tel;} }; void main() { Person s1; ifstream file("c:\\mydocuments\\db_add_tel.mdb"); file.read((char*)&s1,sizeof(s1)); s1.ShowData(); } can anyone telme whats really happening aftet opening the add_tel file. actually i don't know how to makethe screen stay because when i run … | |
I fixed the whole program. :twisted: . I compiled it after each step to make sure there were no errors, if so I corrected them. :mrgreen: . I do, however, have 2 questions. :?: . How do I get the highlighted lines [COLOR=Red]below[/COLOR] to center above the [COLOR=Red]****************[/COLOR] :?: And … | |
When ever i am entering any code it always succeed but i cannot see out put on screen it just flick for few seconds and then come back to complier. for example small prog i am writing #include <iostream.h> main() { cout<<"my name "; return 0: } it should give … | |
:sad: Hi all, been trying to code the following program for ages, if anyone can help please do so. Code a java program that will determine the cyclomatic complexity(CC) of any given java source code module held in a text file. The program is to display the CC. Note- CC=Number … | |
Hi I am writing a toy encryption method objecy oriented program in which user enters a statement, and each character in the statement is replaced by another character which are stored in a 2D array. I have created a static array in which each alphabet has a value in 2D … | |
Alright, I got this assembler class, and we're doing mips, and such. Anyway, I got this problem, see. I have to read in a number in binary (sign magnitude), convert it to decimal, then convert that to a string of ascii characters, and then print them out, with a - … | |
Hello, I am getting strange values in my display for the salary, hourly or commission. I do have to use arrays and wondering if there is a simple fix. Maybe I need a pointer to the array? If anyone has a suggestion, please let me know. Thank you. #include <iostream> … | |
Hi I got one assignment to submit within 2 days.I am suppose to build scanner(lexicle analyser) in c,which will take input from standard input stream and print its class. for example if I input + it will displya "plus",- "minus" I have to run this program in unix environment. program … | |
Everybody, post your very first C++ code up here if you still have it, heres mines with help from the book I am reading and Narue for the help of keeping the window open, thanks pal. [CODE] // // Program to convert temperature from Celsius degree // units into Fahrenheit … | |
Can someone out there help me with this prog. ?? I have been trying to get this for the past 2 weeks !! The question is: Write a program to input an array having n integers. Display the array. Input a number x. Perform the following functions: 1)Delete all the … | |
I have my Project setup like this. +TW TW1 TW2 Before i created the file TW2 i compiled TW1, and TW1 worked fine. When i added TW2, and then compiled it, and started either TW1 or TW2 it said "Project is not compiled". Any idea on how im sposed to … | |
can someone explain to me what does below code do?? [PHP]keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); [/PHP] | |
hi, I have created a registration form. When the user clicks submit it goes to processRegister.asp. This is where it checks whether the username and email already exits in the database. When i enter a email that is already in the database, the error message for the email and the … | |
I have a long and confusing problem (to me) I'm new to C. I was wondering if anyone could help me with my problem. File: Prime.h #include <stdio.h> #include <stdlib.h> int is_prime(int n); File: is_prime.c #include "primes.h" int is_prime(int n) { int k, limit; if (n == 2) return 1; … | |
This is what I have so far, I haven't corrected the input prompt display, nor the output display of the time into `HH:MM:SS`. Please give me any suggestions on the program. thanks! :mrgreen: /* Program definition: The program will ask for and read an elapsed time in the following format: … | |
I have to do a basic program of a calulator(text field at top for display and then all numbers) it does not have to be funtional. I know you can only have one layout manager per container...but I can't get it to work? This is what I have so far..any … | |
please help me about ultrix operating system ultrix history how it handles basic OS functions thread management networking virtual memory synhronization security file system multi programming support future perspective problems in the OS | |
Hello everyone, im glad i have come across this forum, im sure its going to be a lot of help for me! I have been reading through the forum here to try and find some help with a problem i am currently experiencing. My problem is that i am trying … | |
i'm using Dev C++, and when i write a program, it compiles it fine then when i execute it the program window closes after the program has finished. does anyone know how to keep the window open. im running on XP(SP2). i've tried right clicking on the .exe but theres … | |
i'm write a program that asks for a password then if correct will go into a while loop, but for some reason whenever i execute the code and enter the right pass, nothing happens. heres what i've been working on: [CODE]/* This program will simulate a program that could be … |
The End.