- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
Hi, I am new to html and I am reading the html and the css code of the website: http://www.quarryequipments.com/ I notice that if I make the browser size small, the li element in the navigation will not float left, how do I make it out? thanks. | |
Re: try this way: int main(int argc, char **argv) { int m; int arr[6] = {1, 8, 7, 3, 100, 120}; m = f_min(arr, 6); printf("The MIN values is -->%d\n", m); return 0; } int f_min(int arr[], int i) { int m; if (i==0) { return arr[0]; } else { m … | |
Re: input() function means you can input int number or string with " ": like: >>> a=input() "hello" >>> a 'hello' >>> a=input() 100 >>> a 100 your code except a int number but not a string var. | |
Re: this is easy to do : #!/usr/bin/env python #-*- coding:utf-8 -*- matirx = [] for i in xrange(3): print "Enter a 3-by 4 matrix row for row %d" % i row = map(float, raw_input().split(' ')) matirx.append(row) print "The matrix is" for row in matirx: print row revmatirx = map(list, zip(*matirx)) … | |
Re: Well, when you set doubler = f(2) that just create a function which parameter is x so doubler is a function object. now the x is set to be 2, you can change it. When you type print doubler(5) 5 is the y. so you get the result 10. | |
Hi, I have a piece of code here. #include <stdio.h> int main() { // jimmy and masked_raider are just aliases for the same memory address. They’re pointing to the same place char masked_raider[] = "Alive"; char *jimmy = masked_raider; printf("Masked raider is %s, Jimmy is %s\n", masked_raider, jimmy); masked_raider[0] = … |
The End.