|
thanx mark for the websites
I searched them before, but i have a problem
i don't know how to store the option in the select menu , and how to retrieve them from the database
:S :S 
|
|
|
|
|
How to turn the command as follow into a makefile?
g++ ex1.cc ex3.cc -I /usr/local/include -L /usr/local/lib -lrcs -o ex3
Thanks in advance!
|
|
|
|
|
GNU's an introduction to makefile should get you started. A simple makefile (not tested) for this will look like:
#makedepend flags
DFLAGS =
#Libraries to link
LIBRARYPATH = /usr/local/lib
INCLUDEPATH = /usr/local/include
LIBRARIES = rcs
#Compiler flags
CFLAGS = -Wall
CC = g++
PROG = ex3
#each module will append the source files to here
SRC := ex1.cc ex3.cc
OBJ := $(patsubst %.cc, %.o, $(filter %.cc,$(SRC)))
#linking the program
ex3: $(OBJ)
$(CC) -I$(INCLUDEPATH) -L$(LIBRARYPATH) -o $(PROG) $(OBJ) -l$(LIBRARIES)
%.o:%.cc
$(CC) $(CFLAGS) -c $< -o $@
depend:
makedepend -- $(DFLAGS) -- $(SRC)
.PHONY:clean
clean:
find . -name "*.o" | xargs rm -vf
rm -vf ex3 In reality, you don't have to specify /usr/local/include and /usr/local/lib in the paths. These paths are there in the GCC's search path and it does a search in these paths to find the include files and libraries.
Best wishes,
Navaneeth
|
|
|
|
|
Any Python Gurus online?
If so please help me with the following error. I am the middle of writing a program and every time it runs the Python core crashes. After debugging and stepping through code the following block of code precedes the crash:
x = 16
while x > 0
x = x * x
Whats the error?
lol.......
|
|
|
|
|
Mike Stratton wrote: x = 16
while x > 0
x = x * x
Have you looked carefully at these statements?
|
|
|
|
|
The answer is simple really, I actually purposely created this code while learning python via MIT OpenCourseWare.
This code creates an infinte loop with the number calculations increasing beyond Pythons capabilities very quickly.
I thought it was kind of funny as the code says:
x is equal to 16
If you find that x is greater then 0 then do the following:
redefine x as is equal to 16*16
Second loop:
x is equal to 256
if you find that x is greater then 0 then do the following
redefine x as equalt to 256*256
Third loop:
x is equal to 65536
if you find that x is greater then 0 then do the following
redefine x as equal to 65536 * 65536
A few loops and python cannot compute.
|
|
|
|
|
x = 16
while x > 0:
x = x * x
You were just missing a :
and statements under a while, or for, or if, etc
must be indented
try it now
Mike
|
|
|
|
|
<br />
x = 16<br />
while x > 0 :<br />
x = x * x<br />
Pavan Pareta
|
|
|
|
|
Is this supposed to add some value here?
|
|
|
|
|
The value added is a good laugh.
I am just having fun learning to code.
|
|
|
|
|
And the purpose of posting the question was what?
|
|
|
|
|
post = "function"
while input = 'function?':
print 'That was funny!'
else:
print 'That was Stupid'
|
|
|
|
|
My purpose was to try and find other programmers that share my enthusiasm for learning.
Have a good day.
|
|
|
|
|
This answer is partially correct.
Yes I forget the operative of : when typing this but the real problem is that it creates an infinite loop that causes Pythong to crash.
|
|
|
|
|
If you understand why it crashed, then it was a worthwhile exercise.
Clue: the infinite loop isn't why it crashed. It crashed after just 3 iterations, so there must be something else happening here. (Another clue: think powers of 2)
|
|
|
|
|
I would have to say it is neither the infinite loop, nor the multipication. The reason for the crash is quite clearly evidence of the programmers inability! 
|
|
|
|
|
This question was rhetorical, and intended as a joke.
Looks like my humor is about as good as my programming skills and grammor.
----- Just excited to be learning about Python -----
|
|
|
|
|
I for one thank you for the test.
I know c and pascal and... but just learning python. this exercise was vary useful for me and I got several loops (18) before the system bogged down for 1 min and the printout started to mess up.
|
|
|
|
|
As wampserver2 comes with php 5.3.0 but it is not compatible with Joomla 1.5, so, I need to install php 5.2.9 on wamp server2 and delete php 5.3.0
Plz help
|
|
|
|
|
I too used wampserver2 sometimes. I'm curious why you want to delete the latest version? I have no problems with it.
Sir.Dre
|
|
|
|
|
FWIW: I'm running XAMPP 1.6.6 which has PHP 5.2.5, which I downloaded and installed 17 months ago. (I had WAMP before that).
Not sure which PHP currently is part of XAMPP, you should be able to find out here[^], and maybe older versions are still available.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
|
Hi...
I have create or install zoomla successfully.
But now i can't understand,from where i have to start.
How can i integrate my php project to zoomla?
suppose if i want to add my gridview page of my site in zoomla what i have to do?
what about spider and zoomla integration?
Kindly help to solve this issue.
Thanks.
PUJA FALDU
|
|
|
|
|
Hi, does ubuntu linux is the secure operating system for the end user and the server (in compare to the other operating system)?
Thank in advance!!!
|
|
|
|
|
It's Linux so yes! Ubuntu is based of Debain GNU/Linux which is one of the most stable and secure Linux distro out there! Ubunutu is a little more cutting edge, there is excellent support for it on the Ubuntu forums.
I have Kubuntu 64bit (Ubuntu + KDE desktop) running on my box at home and on my laptop.
Kind Regards,
Rajinder Yadav
web: devmentor.org
Do Good! ~ Share Freely
|
|
|
|