please help, when i compile the following code i get errors not sure what they mean though. very new to Linux and C++
#include <iostream>
int main ()
{
int localVar = 5;
int * plocal = &localVar;
int * pheap = new int;
*pheap = 7;
cout << "localVar: " << localVar <<...
Hi all,
i want to move my website from XP over to a redhat 9 but when i went to http://apache.mirrors.rossfell.co.uk/dist/httpd/
i did not have a clue which to get. could some one please point me to the correct one.
i would like support for:
PHP
SSL
thanks
The tougher it gets the more you...
Hi all,
Thinking of developing a network programme that we would like to be able to use on different platforms (Linux and Windoze) and i was wondering how portable this programme is likely to be. The assumption is that the programmes would have to be compiled on the appropriate platforms. Any...
Hi all,
I have a question but not sure if I am in the right forum, so please let me know if there is a more appropriate one to ask the question. I am messing with c++ from a book (C++ for Linux) and when I compile the programme below with the command “gcc cplus.cpp –o myoutput” I get stuff...
Hi all,
Now that I have finely got the usb flash stick mounted(thread619-769729) my question is can I just unplug the device or should I use some un-mount command, the reason I am asking is when I unplug the device the files stay in the /mnt/usb directory, I am using RH9.
Thx
The tougher...
i am trying to get red hat to print to an epson on an xp machine, the epson is a usb printer. does anybody know what port i should tell redhat that the printer is on and which queue i should use networked cups, networked unix, networked windows smb, networked jet direct? thx
A quick question. I am thinking of developing a program that will test an IP address to see if it has an FTP site with anonymous login. My question is should I use C or are there better options. This is purely a self development project!
I am having problems accessing the following array can some one please show me how to do this (newbie). I am trying to access the array from a class called AccGui and the array is in a class called AddAccount. The array is created as shown
private void makeAccount()
{
String accNum;
String...
What is the quickest way to convert a String to float. I a managed to do this but the code covers about 20 lines, is there a string method to do this? At the moment my string is converted to a string buffer and then to type float. thx
Hi all,
I am doing the dive log tutorial from the java website but the problem is that they are packaged and this is causing me a problem, here is one of the lines that I am having problems with
tabbedPane.addTab("Favorite Web Site", null, new WebSite(), "Click here to see a...
i am using a BT voyager 100 ADSL modem with XP. I have tried to connect to Internet with mandrake but was unable. I looked for a driver for the BT voyager 100 but was unable to find 1 i could only find one for the BT voyager(older model). i am pretty new to Linux but i would have liked to have...
can anyone tell me why i get the return value of $counter
if ($counter%7)
$i = "1";
elseif($counter%6)
$i = "2";
else $i = "3";
return $i;
this is the first time $i is used.
I am trying to add the values from the account method but I don’t know how to call it or how write the first line.
creditAccounts()
{
if theAccountNumber == 1001{
theBalance += 1000;
}
if theAccountNumber == 1002{
theBalance += 500;
}
return theBalance;
}
I am trying to test...
Hi all, I am trying to teach my self some java to enhance my website which at the moment only uses DHTML, php and JavaScript. I am currently trying to make a new object of an account (I think) ie I want to add a new account number, amount and name but I get a duplicate of the first printed to...
The powers that be whant a page counter but the counter always returns 1 like TRUE I think because even if I put 2 in the text file, it is over written with 1. have a feeling it is to do with the array as I haven’t just got my head into how they work in php. Any suggestions would be appreciated...
can anyone see why this query does not work
$dbcon = mysql_connect($DB_HOST, $DB_USER, $DB_PASSWORD)or die ("Could not connect to database students part 1");
//select the database
mysql_select_db($DB_NAME, $dbcon) or die ("Could not select database part 2");
//create the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.