428 Posted Topics
Hi there, today I have written my first PHP script (and it even works, how cool!) and I have few questions. Here's the script [CODE]<?php $to = "[email protected]"; $subject = "Comments on page"; $message = $_POST["comments"]; mail($to,$subject,$message); echo "Thank you for sending your feedback. That will help me improve the … | |
Hi there, I have developed (with some invaluable and greatly appreciated help!) a comment box using Java script (see bottom of this page [url]http://www.antobbo.webspace.virginmedia.com/webediting/documents.htm[/url]) but I would like now to be able to receive comments via email. At the moment if you click on the comment button it opens the … | |
Hi there, could anybody kindly tell me what the "a" (in the 1st line)is in this css and what is used for please? It is driving me insane and I can't find anything anywhere (apart from the w3c schools that says that the a is to order things alphabetiacally??) [CODE]#nav-menu … | |
Hi there, I am doing an exercise from a c++ book, but I get few errors that I can't seem to be able to fix, and I am not quite sure why. The exercise goes:" In a right triangle with dimensions side1, side2 and hypotenuse, find all Pythagorean triples for … | |
Hi ya, me again. I have done some more work on my website [url]http://www.antobbo.webspace.virginmedia.com/webediting/our_web_standards.htm[/url] but I am having an issue with the content being pushed down by the navigation. Now, I read few tutorials on float but I don't seem to be able to find the answer there. I presume … | |
Hi there, I have done a small exercise (ex 4.17 on C++ how to program - deitel and deitel) which basically is about writing a program that uses a while statement to determine and print the largest number of 10 numbers input by the user. The program should use 3 … | |
Hi guys, I seem to have a problem with the margins in the website I am developing. The spacing looks different in IE and Firefox and I don't understand why. here is the CSS code: [CODE]h1 { text-align:left; font-size: 1.7em; font-family: Arial, Verdana, sans-serif; } #banner { background:#81A594 url(typewriter.jpg); background-repeat:no-repeat; … | |
Hi there, it's been awhile :$ I have just completed a small easy exercise which was to create an Account class, providing a constructor to receive the initial account balance, add some money to the initial balance and withdraw some money (providing that the amount of money to withdraw is … | |
Hi guys, I am having some problems with the navigation of this website I am involved with. The issue I have is on the left hand side navigation. I can't get the buttons to sit neatly on the top of each other, it looks like there is some space between … | |
hi guys, I am working on a project for my school, and I was wondering whether I can get some guidance and tips on how to tackle it. Here’s the problem in brief: I was asked to develop a program so that users can input the data values of 2 … | |
Hi guys, I am having a nightmare with a small website I have built. Here's the visual_impairments.htm page: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title> Visual impairments </title> <link rel="stylesheet" type="text/css" href="style.css" > </head> <body> <div class="banner"> <h1>IT and Disability</h1> </div> <!-- BREADCRUMB TRAIL STARTS HERE, EVERY … | |
Hi there, if I call a double function like [CODE]double MyPrice( ) { return cost; }[/CODE] (value "cost" assumed to be set to 7.00 why this function returns 7 and not 7.00? thank you | |
Hi there, I have a question about header files/source files in Visual C++ (I use visual c++ 2005 express). I used to put all my code in one single .cpp file but now I have a test program (done by my tutor at Uni) which has 3 files: 2 .cpp … | |
Hi there, I have a question about a really simple program. The code below doesn't work, the compiler comes back with "fatal error C1083: Cannot open include file: 'ofstream': No such file or directory": [CODE]#include <iostream> #include <ofstream> using namespace std ; int main( ) { ofstream myfile("newfile.txt") ; myfile … | |
Hi guys, quick question. Does the structure [CODE] try { } catch { exit(0); } [/CODE] require the preprocessor directive [CODE]#include<cstdlib>[/CODE] to be declared at the beginning of the program? The thing is if I don't declare it the visual c++ compiler works fine but if I try in Unix … | |
Hi all, I am trying to make sure that users can only input integers in my program and no other types. Here is the program: [CODE]#include<iostream> using namespace std; int main() { int numbers[9]; int k; cout<<"Enter 9 numbers: "; for( k = 0; k<9; k++) { cin >> numbers[k]; … | |
Hi there, I am working on a palindrome program which is here: [CODE]#include <iostream> #include <string> using namespace std ; int main( ) { cout << "Insert the word to test: " ; string word ; string test ; int i ; int j ; cin >> word ; cout … | |
Hi guys, I have a problem with a program: #include <iostream> #include <string> using namespace std ; // Uses a class with "public" member variables, so directly accessible class Student { public : string name ; int reg ; } ; int main( ) { const char NL = '\n' … | |
Hi there, quick (and I am sure) simple question on a program I have just created. here's the code: [CODE]#include<iostream> using namespace std; int main() { char letter; int counter=0;//set the counter to 0 for (letter=65; letter<=122; letter++) {if ((((((letter==91)||(letter==92)||(letter==93)||(letter==94) ||(letter==95)||(letter==96))))))continue; counter++;//increment the counter in the loop if (counter==27)//counter condition … | |
Hi there, I am trying to get my head around the bubble sort but I don't seem to get it. Now I have a program written by somebody which performs a bubble sort and I am trying to understand it but no much success. Here is the code: [CODE]#include <iostream> … | |
Re: That doesn't look right. The code should be in this format: [CODE]#include <iostream> #include <conio.h> using namespace std; int main () { cout << "**********" << endl; cout << "* *" << endl; cout << "* *" << endl; cout << "**********" << endl; return 0; } [/CODE] cout is … | |
Hi guys, I have just written 2 versions of this simple program: [CODE]#include <iostream> using std::cin; using std::cout; int main () { cout << "This program counts from 10 to 0. \nGuess the missing number.\n"; int n; int f; for (n=10; n>0; n--) { if (n==5) continue; cout << n … | |
Hi there, could anybody tell me how to compile a program and run it using Visual C++ 2005? This is what I have done: -File, New, Project; -In the menu, I choose Win 32 and then Win 32Console application; then I give a name to the project and save that … | |
Hi guys, I am having problems with a simple program I wrote, here's the source code: [CODE]//seventh #include <iostream> using std::cout; using std::cin; using std::endl; class Maths { public: void enterInstructions( int instructions ) { cout <<"I want to do a: \nAddition\nSubtraction\nType your choice here: "<< instructions << endl; } … | |
Hi there, I am experiencing a problem during the program execution. Here is the program: [CODE]#include <iostream> using std::cout; using std::cin; int additions (int a, int b, int c) { int k; k = a+b-c; return k; } int main() { int s; int x; int y; int z; cout … | |
Hi there, I am trying to get my head around this simple program, but there are things that really don't make sense... here's the program: [CODE]// Fig. 3.5: fig03_05.cpp // Define class GradeBook that contains a courseName data member // and member functions to set and get its value; // … | |
Hello there, can anybody help me with this? I have a simple program like the attached. What I would like to do is to come up with an executable file that I can email to myself and execute on another machine. What happens at the moment is this: I wrote … | |
Hi there, I am new to C++ and trying to get my head around it. I am writing really simple and small programs and I have Visual C++. Now, can anybody summarize how I can run a program I wrote with C++ on Visual? The guide that comes with the … |
The End.