199,113 Archived Topics
Remove Filter ![]() | |
[code=c] #include <stdio.h> #include <string.h> struct courses{ char coursenumber[10]; float credit; float grade; }; struct courses list[2]; main() { int i; int count; printf("Enter number of courses to input: "); scanf("%d", &count); for (i=0; i<2; i++) { printf("Course number: "); scanf("%s", list[i].coursenumber ); printf("Credit: "); scanf("%f", list[i].credit); printf("Grade: "); scanf("%f", … | |
Hi I'm playing with a simple class. Looks like everething is fine, my compiler doesn't give me any error but there is no display on the screen. Can anyone tell me what did I miss? thanks [CODE] #include <iostream> #include <conio.h> using namespace std; class BankAccount { public: BankAccount(int dollar,int … | |
“Write a C++ program (use multi-dimensional arrays) that uses an array structures (size 8) to store the following information on a company’s 8 divisions: Division name (such as East, West, North, South, Northeast, Northwest, Southeast, and Southwest) First Quarter sales Second quarter sales Third quarter sales Fourth Quarter Sales Fourth … ![]() | |
I'm using visual studio for the program. When i prompt the user for date like is this format -dd/mm/yyyy . For the program how do i use the data for just the year only not the whole input? ![]() | |
There is a task: Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator. Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 … | |
Hi, everybody. I've made a code of a "for" loop. Once i exceeds 4, the loop must stop. The input is in a JTextField. The problem is that the loop never stops although it exceeds 4. Can anybody help me? The problem is here : public void compare(int x) { … | |
[code=cplusplus] #include <iostream> #include <string> using namespace std; enum SquareState { (blank = 's', X = 'X', 0 ='0') }; class gameBoard { private: const int WIDTH; const int HEIGHT; int* GameBoard; public: gameBoard(): WIDTH(3), HEIGHT(3) { GameBoard = new int [9]; for (int i = 0; i < 9; … | |
I'm using wxDev-C++ to write an auto-clicker program that I'm hoping to release as FOSS one day. I wrote some really neat algorithms that I tested in Java to be implemented my project so it can be used in games and such as that. (It's not school work, just something … | |
Hello! I need some quick help please :-) I have a php form that when a user submits sends an email with there details to us, but then also sends an email to the user, saying thank you for your email etc... I have configured the form and the email … | |
hi i've been trying to parse the argument using getopt i need to have it to be able to handle argv[0] logfile (i ment to take the following argument after argv and put it in variable - like listed in the usage part) but i coudnt get it to work … | |
I want to create new table in Access database during the runtime of my VB code. I am developing a "Library Management System" using VB6. At first i have used SQL statement to do the job. But it worked for once & then it stopped working. No error message was … | |
any one can help me hw to write tic tac toe program using visual studio... | |
[B][I][U][B][I]i am looking for a java project . i am in final year .[/I][/B][/U][/I][/B] | |
Hi, I'm newbie here. I just noticed that HR control panel have no feature to check and repair MySQL database if the database got corrupted. I knew CPanel have this feature and I guess the HR control panel look similiar like CPanel (CMIIW), but no feature for Check and Repair … | |
Hi i just started learning C++ & we were given homework to write code that will show names numbered to six and display the longest name entered. i have managed to show the names going in numeric order just can't display the longest one. Thanks for any future help... (Also … | |
hi, im using msaccess as database. can u plz tel me how to delete records using vb (it should serch nad delete) tkx | |
I have defined some classes which are giving a linker error like the one in the subject. could anyone provide some info on the error, I have understood it has something to do with the virtual table but am not able to figure out what. what makes it more harder … | |
Here is a code I have been trying to finish but can't. I'm very new to this as you probably know by my other post but this program has been giving me a fit. I feel like I have hit a brick wall and it bothers me because I know … | |
Hi I made a function which is suppose to send email, only problem is that I can send the email but its blank so can anyone tell me what I am going wrong. [code] //Function that send multipart emails function email2($TO, $PREMADE, $FROM = false) { //headers for emails //create … | |
How can I get JavaScript to display values and attributes when they are written to input boxes by the script, instead of waiting for a rather lengthy (10 sec) calculation to finish? - IE does not change the boxes at all, until after the script finishes. - FF displays the … | |
hello all, I am trying to compile this canned example in QT4 , but the compiler spews out an error messagethat I have never seen before. The *.cpp file: [code] #include <QtGui> #include "finddialog.h" FindDialog::FindDialog(QWidget *parent) : QDialog(parent) { label = new QLabel(tr("Find &what:")); lineEdit = new QLineEdit; label->setBuddy(lineEdit); caseCheckBox … | |
Hi, I am having a strange problem with a simple process. Heres the code. [CODE] bool areNumbers = true; bool Anything = true; int numBytes = 1; long inCrem = 0; while(gPlacerID != tgPlacers[inCrem]->GetPlacerTypeID()) { inCrem++; if(inCrem == tgPlacers.size()); { Anything = false; break; } }[/CODE] This code is part … | |
Warning: Unexpected character in input: '' (ASCII=92) state=1 in /home/xxxxxx/public_html/index.php on line 1 Warning: Unexpected character in input: '' (ASCII=92) state=1 in /home/xxxxxx/public_html/index.php on line 1 Warning: Unexpected character in input: '' (ASCII=92) state=1 in /home/xxxxxx/public_html/index.php on line 1 Parse error: syntax error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or … | |
Hi, I have been trying to learn java on my own on Linux from command line. Can any one please give me a few very basic samples of code that ask the user for an input (interger/double/float/string all possible data types)? I have downloaded the official Sun Java tutorials but … | |
hi, i'm supposed to create a very simple address program in C & not in C++. my program works but my problem is how to "search & edit a record" and how to "search & delete a record", that is what i lack. this program is really giving me a … | |
Hi, i am new member to this forum. i am trying to solve this problem from past 2 days.but i can't able to acheive it. i able to capture single mouse click over flash(<Embed> object) using onactivate event handler.But it is supported by IE. i want some event in Firefox … | |
Hello all, I got problem to write program concerning in money deposit into bank. i.e : money = 100$, month = 3, interest = 3%/month here we got : 1- Enter money into bank = 100 2- Enter month = 3 3- Total amount = 109.27 4- Total interest = … | |
Hello, I need some content management recommendation which can update easily for 1. news or events 2. image gallery thanks before | |
Hi guys, i am new to java so i started of with basics, but now im stuck at a little problem. I will paste the code and error's below, hoping that some1 could sort em out [code=java] import java.lang.*; import java.io.*; class Sphere{ float radius; int cXcord; int cYcord; int … | |
Hi, I'm trying to use a double click action on a input field. It works fine on firefox, but doesn't work on ie7 saying the object doesn't support the action. My action so far is just an alert box (for testing purposes), is this a known compatibility issue? | |
Dear all Could you tell me what is it-atomic type in Java? I explored internet and book Java in 21 days,but nothing about it. The question was about difference between object reference and atomic type. I found that object reference is an address that indicates where an object's variable and … | |
Hi, just wondering if anyone knows where I could get a tutorial or even just sample code of a delphi application writing an XML file? I've tried google (obviously) but had no luck. Thanks! | |
Hi, I want to update the database from a flexgrid. Is it possible in VB 6.0? I came across an article where it said.. its not possible. But there was a way to do it ... by placing text boxes on the cells of the grid and making those text … | |
Hi I'm very new to this world of programming and am having several difficulties. I'm trying to practice a lot and become more accustomed to everything but I've only been doing this for about five weeks so I'm sure know it's usually a slow start. I would like to build … | |
Hello everybody! I am a beginner in Java and computing at all. I need to make some tasks if you help me,please. So, the first taks is: Write down what is stored in s2 after the following Java code has been executed: String s1= new String("Hello"); String s2= new String("The … | |
I was reading through my java book which is called Introduction To Java Programming Sixth Edition by Y.Daniel Liang and I was reading about databases. I just wondered if java is used in webdesign for the purpose of creating databases and if that was instead of MySql and what the … | |
I would like to make a MUD in C++. So...=) I need to know how i would program it so that other players could attack, see, and trade with each other. I'm gonna host it on my computer, or maybe a remote shell account, so my friends and i can … | |
[code] /* One file can be hundreds of MBs. So, 640 MB in maximum*/ int nMaxByteCount = 64000000; [/code] I read files to get binary info in it. But I don't know the exact sizes before reading. So, I allocate nMaxByteCount for large files first and get support from fread … | |
I want to make like a loading page that shows a progress bar and then displays an enter button so they can enter the website. Something with an ajax like look. | |
Hello, I try to read a xml file with this schema: - <item> <title>some text</title> <link>link</link> - <description> text ok <br /> I can't see this text </description> <imedia:thumbURL>link</imedia:thumbURL> </item> When I write: echo $rss_channel["ITEMS"][$i]["DESCRIPTION"]; I can see text ok, but from <br /> I can't see nothing. I tried … | |
Dim conn As New SqlConnection(connstr1) Dim sql As String sql = "Select * from address1" 'Dim da As SqlDataAdapter Dim cmd As New SqlCommand(sql, conn) conn.Open() Dim ds As New DataSet() da = New SqlDataAdapter(sql, conn) da.Fill(ds, "Address1") maxrows = ds.Tables("Address1").Rows.Count inc = -1 conn.Close() 'If next_record <= maxrows - … | |
hi Friends! i need to open a pdf documents from MsAccess. Please send me the code. Then i need to create a BROWSE button such that BROWSE_BUTTON Text_box When i click the browse button it should work as ordinary windows browse button and when i select some files, the "File-Path" … | |
hi, i wanted to send 2 different email that is 2 different email address,with to different messages in asp.net c# 2.0. by using Cc i can send to different email Address but how to different messages | |
Any one who can give me some algorithms about image deblur? thanks in advance! | |
I am new to DOM and need a little help. I have opened a named page with window.open. Later when the user clicks on the link from the parent page that was used to open the child window, they are confused because they think the function doesn't work. Of course, … | |
hi I am new to this forum and new to using php. Everyone says it is really easy and so far so good until I was trying to display pictures based on the selected option from a drop down menu. so I have 3 options: dromidary bactrian mollie I have … | |
I have no problems connecting strings but if I follow the same procedure for chars then the program blows. [CODE]void Input_Code(char *d1_p, char *d2_p, char *d3_p, char *d4_p, char *d5_p, char *d6_p, char *d7_p, char *d8_p, char *d9_p, char *d10_p, char *full_code_p) { char buffer[12]; printf("Please enter 10 character account … | |
Can someone assist me on creating this program? Thank you. create a program that will allow you to calculate the following: 1) The average gas mileage of a car 2) The range of a given car 3) The cost of a given trip 1) Create a Car.py file that will … | |
Hai friends, Please help me that how can i solve this problem, how can i include AJAX in PHP,Can u tell me that how can i configure system for AJAX. | |
This is the last thing I am doing to my app, and I saved the hardest for last. I have been out here all week beating you guys to death with questions, so if I do not get any replies at all I will understand. I do not need this … |
The End.