- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 7
- Upvoting Members
- 8
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
113 Posted Topics
Re: These practices are very very nice. But could you please provide the best answers too?? By best I mean, the way that it is easiest and most efficient to do it with Python. Editor: People need to actually work out these projects to best learn Python or programing in general. … | |
Re: I'm sorry to tell you that, Dictionaries are not meant to be sorted. There are some tricks though, but I suggest you to use lists or tuples. | |
Hi, I'm trying to output a list of dvd titles along with some of their details. The problem is that it seems I can't get them aligned all pretty well. So I upload the screen shot as well as the code generating it. Please help me out here. This is … | |
Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements … | |
Re: I agree with both other guys, but remember one thing. Talent is something that helps you progress faster but it doesn't mean that will stop you from being a good programmer. Not everyone can have natural talent of Michael Shumacher, but it doesn't mean rest of us should stop driving … | |
Re: How old is your Windows? And by the way, does it randomly happen or when you for example are running CPU/GPU intensive tasks? | |
Re: I personally never check for existance of the file since at least the languages I use (C/C++/Java/Python) create the file as soon as you issue "writre" to stream. If you want to keep the content of the file and add to it, then use append. Append also creates the file … | |
I have an apache server running on Ubuntu server and I've plugged all my external hard disks to it and mounted them so I can access my files using apache file and folder listing. It's good enough for browsing through files and folders, but it's not efficient because I can't … | |
Re: First suggestion: Use switch instead of all those ifs,else ifs... Second suggestion: Don't use system! Third suggestion: Show what you have done so far for delete and why you have failed to finish it, and we'll definitely help you. | |
Hello everyone, I have to code an array that in each row, it has 16 columns! So I called it myself a 17 dimensional array but I was wondering what data sturcture in Python can best represent this keeping in mind that, it should be easily addressable and modifible. For … | |
Dear experts in Python, I have written a binary search method that receives a list of float and one new float item. It needs to look for the proper index for that item to be placed and return that index. To make it simple, I give an example: imagine a … | |
Dear everyone, I'm trying to implement something like gmail conversational view and the way I've designed it is that I store "subject" of the mail + other parties email address (in case you send, other party is recipient, and in case of receiving, sender is the other party). What I … | |
Re: I don't know why you need to know your compilation time but it's not that hard to perform. But in general as you compile once and you always in most cases running time is crucial to programmers not the compilation time. As for running time that I think what you … | |
Re: There are a lot of editors (many many of them) for C. But I personally use either "Eclipse" or "Vim" editors. Eclipse is actaully an IDE but Vim is an editor. You can also configure Vim in linux to compile your program. Both are amazing editors. | |
Re: How much do you know about openCV?? Because this is not that easy to be accomplished yet not that hard either, but don't expect to do it quickly. One more thing, one camera mostly suffices to do face recognition, can you explain why you need to use two cameras??? | |
Re: if you are using C++, you don't need the .h at the end of some of your libraries. Get rid of ".h" at the end of fstream.h and iostream.h. I'm not sure about dos.h and process.h as I believe they are avaialable only under Windows. | |
Re: so, what's the problem??? | |
Re: This is called cheating dude!! You'd better use your brain and solve it. | |
Re: Can you state what part is your problem. I couldn't run your code unfortunately. | |
Re: Man, I'm sorry but, do you really expect us to answer your question? | |
Re: You need to modify your design to avoid complication, somehow, I wrote a code that does what you want. [CODE]import csv import sys ifile = open('trainingSet1.csv', "rb") f = open('train', "wb") reader = csv.reader(ifile) last = '' myString = '' for row in reader: num = 1 for col in … | |
Re: I'm interested to know this too. I guess there should be something related to Javascript as most of the times, pop ups are generated by Javascript. | |
Re: Post your code and let us see what you have done up until now. | |
Re: I am not quite sure in general if exists any automatic locking mechanism, but in this case, as far as I can see there is no locking, not automatic nor manual. | |
Re: Could you please put your code in CODE tags. Makes it easier to read and debug. | |
Re: [CODE]fp = open(filename, "r") #"r" means open in read mode[/CODE] for converting your string to integer: Let's say I have a string "test" with the coordinates: [CODE]test = '20, 10, -5' num1, num2, num3 = test.split(',') print int(num1.strip(' ')) print int(num2.strip(' ')) print int(num3.strip(' ')) [/CODE] | |
Re: You are saying that you don't want to use loops(while, for), then why are you using it yourself?? If you don't use loops, it would make the code large, and dependent to the size of the items you are trying to sort. | |
Re: Where did you get the module graphics from?? I don't have it on my default list of libraries. | |
Re: Please study about C++ standard libraries and namespaces. Your code should be changed to: [CODE] #include <iostream> using namespace std; int main() { for(int i = 1; i < 100; i += 2) //You were missing i here { cout << i << endl; } return 0; //End Statement. } … | |
Re: Could you please post your code, cause I don't know about the modules you mentioned, maybe at least I could find some errors inside the code. | |
Re: Change line 42, 43 to: [CODE]for(i=0;i<=25;i++) letterDisplay[i]=char(i+65);// letterDisplay is formed[/CODE] | |
Re: You can ignore the warning. For line 85, TRUE should be in lower case ----> [CODE]if (isFull() == true)//Lower case!![/CODE] | |
Re: I don't know what you are doing in your code, cause I just know it gets stuck in the first "while" loop as I can see, but I have a suggestion for you. My idea is, make an integer array which its size is the number of ascii characters you … | |
Re: Your code seems fine, but I have a question, how do you realize whether or not the spaces are still there when you print it???? | |
Re: Your question is not clear enough. I don't understand if you want to prompt the user and if after 5 seconds user didn't enter anything, program would say "too late" or you want the program to say "too late" after 5 seconds users entered the key. If you want the … | |
![]() | Re: Please use google, there are very good explanation and examples online. I also have noticed there are very good videos available on Youtube regarding sorting. |
Re: [CODE]fp = open('text.txt', 'r') t = () data = [] line = fp.readline() while len(line) != 0: e1, e2, e3 = line.split(',') t = e1, e2, e3.rstrip() data.append(t) line = fp.readline() fp.close() print data [/CODE] Remember, you can't add or delete from tuple!!!! | |
Re: Please put the code in (CODE) before posting it!! | |
Re: change your function call to: [CODE]fun (&pointar, &circlear);[/CODE] | |
Re: Please remember that it is not a necessity for both fans to be running all the time. Most of the time, one fan is for the CPU and the other is for the graphic card. So if you are not playing games or doing anything that can stress the graphic … | |
Re: you should say [CODE]javac Hello.java // You forgot the extension[/CODE] By the way, your post is not formatted at all, makes it hard to understand and reply. | |
Re: If you mean why it doesn't run, the answer is because it's a class implementation and you need to have another program to use this class. You don't even have main function, so how do you expect this code to run in the first place???? | |
Re: There are so many C++ book out there, countless!!! Look in amazon for good ones, those that have high ranking and large number of readers. I had a glance at [URL="http://www.amazon.com/Beginners-Guide-Second-Herbert-Schildt/dp/0072232153/ref=ntt_at_ep_dpi_5"]this book[/URL], seemed good for a beginner. Most famous online references for C++ that I know: [url]http://www.cplusplus.com/[/url] [url]http://www.cppreference.com/wiki/[/url] | |
Re: First of all, thank you for your easy to read explanation and providing all the code and information needed. Your problem is that you should send the address of your "b" value if you don't want to return anything from your function(Let me know if you still need more information … | |
Re: The pointer I can give you is most of programming languages I know, have NO method to modify the content of a file. However, You can copy line by line from a file to another and make your modification in between. Say, in your case, you read the first line, … | |
Re: I am pretty sure you do know this, but Java is probably one of the few languages that the name of file that you wrote your program in is related to the code inside it. To provide an example, in your case, the name of the file should be reverse.java. … | |
Re: Is the code necessarily needed to be in C?? | |
Re: I do have some rough ideas, but first of all, tell us detailed information about both processors. I'm not interested in graphic cards or ram(they really don't matter is this case), just about the CPUs. | |
Re: please take a look at [URL="http://randu.org/tutorials/threads/"]this website[/URL]. The concept you are using here is not quite right. You don't need to define 2 separate functions to take care of your task. So your general design should be like, create a function which gets the your link address(ex: [url]www.yahoo.com[/url]) as a … |
The End.