-
Replied To a Post in Are computer scientists really programmers?
I have long argued that 'Computer Science' is a poor term for what most people study in college, as it generally has very little to with science in even the … -
Began Watching calling a variable from a function into another function
I have two functions declared in my program, and i want to use the variables in another function to display the matched images. My code is: def messageWindow(): win = … -
Replied To a Post in calling a variable from a function into another function
Can you please post the code you are using to call each of the three functions, and especially the section where the error is arising? Also, who originally wrote this … -
Began Watching C Code Into Mips :)
Currently trying to understand how to convert some C into mips. Is a "return func" different from "return"? Both C codes are very similar yet im unsure how they will … -
Replied To a Post in C Code Into Mips :)
How well do you know C? How well do you know MIPS assembly? In order to understand how to convert from one language to another, you would need to understand, … -
Replied To a Post in Need a best c compiler for free download
Oh, I would add that, with regards to GUI programming, you'll usually have better luck with C++ than with C, simply because graphical user interfaces lend themselves to object-oriented design. … -
Replied To a Post in Need a best c compiler for free download
Oh, of course you can use C to write a GUI program for a Linux desktop environment; most of the ones you are likely to use under Linux are in … -
Began Watching slow down program output
Is there a good way to slow down program output? usleep and nanosleep don't slow it down enough, delay doesn't work, and sleep keeps freezing my program. I am using … -
Replied To a Post in slow down program output
To address the question directly, I would want to know, how long are you setting `sleep()`. `usleep()`, and `nanosleep()` for, repsectively? While `sleep()` takes an argument in seconds, `usleep()` takes … -
Began Watching Need a best c compiler for free download
Hi guys ! I'm using linux OS, and i have gcc compiler in it defaultly. But i can't compile advanced programs which include "windows.h" in it. Can you please provide … -
Replied To a Post in Need a best c compiler for free download
You won't be able to compile anything with the "windows.h" header in it (or the related "stdafx.h" header) for Linux with *any* compiler, as that is a Windows-specific header. If … -
Began Watching how many time the method is called
i wrote a program that have four classes .one of these classes is Date : class Date { public Date(int year,int month,int day) } in other classes there are some … -
Replied To a Post in how many time the method is called
If the goal is to get the number of times a method is called, then the best solution is to apply a profiler, such as [jprof](http://perfinsp.sourceforge.net/jprof.html) or [jvmmonitor](http://code.google.com/a/eclipselabs.org/p/jvmmonitor/). There is … -
Replied To a Post in Read and convert files in python
There are literally thousands of models of stepper motors, solenoids, and touch screens on the market, so that isn't sufficient information for us to help you with. You'll need to … -
Replied To a Post in Read and convert files in python
The other thing I will recommend is that you consider using a `dict` (dictionary, or hash table) to look up the translation values that will be sent to the device: … -
Began Watching Read and convert files in python
Hello , I have to write a code that read a file in python and convert each chaaravter to 1, or 0 and send these digets to a a selonoid … -
Replied To a Post in Read and convert files in python
It is certainly possible, though without the details of the hardware we probably can't help you beyond a certain point. What have you done so far? We cannot and will … -
Replied To a Post in C++
First off, do not hijack an existing thread with an unrlated question. I know that the OP gave this thread an unfortunately generic title, but that isn't an invitation to … -
Began Watching running a python class without creating an object
how do I run a python class without creating an object -
Replied To a Post in running a python class without creating an object
The question doesn't seem to make musch sense. One cannot 'run' a class in Python - a class is a collection of methods and instance variables, and cannot be exectued … -
Began Watching Assignment : choosing robot with rule base system
Hi there, I am planning to create one robot choosing center. But I do not know how to use the idea to execute in python software. my idea is, let … -
Replied To a Post in Assignment : choosing robot with rule base system
What version of Python are you using? If it is a Python 2, then you'll want to add this to the beginning of the file: from __future__ import print_function In … -
Began Watching Overloading a function
My IDE codeblocks 10.05 cant run a program which is overloading functions. Any help please..maybe due to settings -
Replied To a Post in Overloading a function
C doesn't allow overloaded functions. Are certain you don't mean C++? -
Began Watching How does the processor handle assembly instructions
JNZ checks if the Zero flag is set or not. How does it really check it? more assembly instructions? I thought Assembly doesn't hide anything. -
Replied To a Post in How does the processor handle assembly instructions
First off, you have to recall that assembly language is not the same as the machine code; rather, it is a human-readable representation of the machine code, which is actually … -
Began Watching clear the first character of an array
I am trying to clear the first character of my array. The first two methods don't seem to work. The third method seems to but doesn't look like a good … -
Replied To a Post in clear the first character of an array
When you say you want to clear the character, do you mean you want to insert a space character (`' '`), ASCII 0x20), or a null character (ASCII 0x00)? These … -
Began Watching need some help with a project
hi I have a project due this Monday to make an address book. need some help with that.I have some code with me but it is not working. please help … -
Replied To a Post in need some help with a project
Given that the querent dropped off of Daniweb over a year ago, I doubt you will get an answer. -
Began Watching C++
This program is for a car rental agency. Your program will have to compute the total cost of a rental. This agency has two types of cars, and the rates … -
Replied To a Post in C++
We all would be happy to help, once you've shown some work on your own part. We are willing to give advice, answer specific questions, and even show how to … -
Began Watching c++ question
Write a C++ application that asks the user to enter 10 numbers. The program then stores those numbers in an Array. The program should display the Mean , Median, and … -
Replied To a Post in c++ question
First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing … -
Replied To a Post in Rational Class bound error
Which is exactly what you wrote in the `str()` method: def __str__(self): if self._d == 1: return str(self._n) else: return "%d/%d" % (self._n, self._d) -
Replied To a Post in Rational Class bound error
Yes, that's the right spot; that sets the default value for the denominator to one. If you pass just the numerator value, you should get the right result. whole_number_rat = … -
Replied To a Post in Rational Class bound error
Oh, you simply make the number the numerator and set the denominator to 1. -
Replied To a Post in Rational Class bound error
Without the parentheses, it becomes a reference to the method itself, not a method call. -
Began Watching Rational Class bound error
My Rational class code: from __future__ import division import math as _math def _gcf(a, b): # Returns the greatest common factor of a and b. a = abs(a) b = … -
Replied To a Post in Rational Class bound error
Here you have the opposite problem from what you had before: because these are methods rather that properties, you need the parenthese after them in order to call the methods. -
Began Watching hw
1) write a C++ program that reads 50 integer numbers and prints the smallest three numbers. -
Replied To a Post in hw
First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing … -
Replied To a Post in Rational Numbers
OK, that was a somewhat careless mistake on my part; it should have been print ("third: {0}/{1}".format(third.numerator, third.denominator)) without the parentheses (which is the whole point of using a property, … -
Began Watching i need help
Write a C++ program to perform the following: 1) Input a positive integer total that represents the total distance in meters a person needs to travel. 2) Input a positive … -
Replied To a Post in i need help
OK, so write the program, and when you have a question, come back here and ask for some help. -
Began Watching compare two text file and save the output match
I have two text files and I want to compare them and save the matched columns to a new text file. file1: 114.74721 114.85107 114.85107 2.96667 306.61756 file2: 115.06603 0.00294 … -
Replied To a Post in compare two text file and save the output match
From the description you give, what you are talking about is a [diff](http://en.wikipedia.org/wiki/Diff) tool. There are many such programs around, but I am assuming this is an assignment, rather than … -
Began Watching two wire intercom using embedded c program in atmega8
plz help me..with the program for two wire intercom using embedded c program in atmega8 -
Replied To a Post in two wire intercom using embedded c program in atmega8
**rajii93**: I think you missed a few salient points about rubberman's response. First off, he was not seriously proposing that you pay him to do the work (though AFAIK that … -
Began Watching Rational Numbers
Python keeps getting stuck on this line because there is no attribute "numerator" (and I'm assuming it'd say it has no attribute for denominator either). third = Rational(25, 10) print …
The End.