- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 3
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am trying to figure out the time complexity for a best case scenario shell sort. I know worst case is O(n^2) and I think best case should be O(n^2) as well because even thought its already sorted it still has to break the array down into gaps and check … | |
I just finished with my first year of Computer Science in college and over the break I wanted to learn how to do output from a computer using a C++ program to control different I/O hardware. I was thinking I would start somewhere simple with something such as turning on … | |
Re: I recently worked on a project involving a website that interacted with an Android App and it was really fun to design. Maybe you could think of something cool like that. A data driven app would be cool. For example we did flashcards. | |
I didn't know where to put this but this seemed to be the best place. I took an internship this summer and found out that I will be doing embedded development in C/C++ and Linux for phones(land line voip stuff). This is bad for me since I have always been … | |
Re: [QUOTE=LevyDee;1208502]Hi, I have a homework assignment to copy the elements of one stack to the other except in reverse order. The algorithm is easy enough for me to figure out and implement. My only question is, I dont really understand how im supposed to add my own function to a … | |
I have the following php code: [CODE]$query = "INSERT INTO flashcards VALUES (null, '".$_POST['front0']."', '".$_POST['back0']."', ".$link.", ".$details.", NOW()); INSERT INTO bundleflashcardlink VALUES (null, ".$flashcardbundleid.", LAST_INSERT_ID());"; $result = mysql_query($query);[/CODE] which gives me the following error: [CODE]DB Connection error: You have an error in your SQL syntax; check the manual that corresponds … | |
I am a complete newbie on Prolog and I had a quick question. I want to write a function that takes no arguments and just does some asserts and retracts. Is this valid? [CODE]turnLeftFunc:- select(currentDirection(dir))->select(leftof(dir,turnDir))-> retract(currentDirection(dir)), assert(currentDirection(turnDir)).[/CODE] This is for a wumpus world implimentation. I want to be able to … | |
Re: I know this is a few days old but heres a good tutorial I like to show my intro students. Hope it helps. [url]http://coutblog.com/?p=5[/url] | |
Re: Narue thanks for that binary search bug that was really interesting I had never thought of that. | |
I am writing a bug tracking system and this is my first time using .NET. I will have a SQL database to store the bugs but I want to have a table on my main screen that will list the bugs from the SQL database and when the bug is … | |
Re: You cant call the constructor of the train class like that. Since you already instantiated the t1 object you want to do something like this [CODE]t1 = train()[/CODE] if you wanted to make a new train title myNewTrain you could do [CODE]train myNewTrain = train(4)[/CODE] I would also like to … | |
I've been recently getting into the world of blogging and I wanted to see if any of y'all had any suggestions for good blogs. Blogs I follow: [url]http://thewashingtonmistress.com/[/url] [url]http://blazingminds.co.uk/[/url] [url]http://biggovernment.com/[/url] | |
Re: He's retired. Most retired people I know don't do much. I know he went on a speaking tour trying to convince students to pursue Computer Science degrees. Like jonsca said I think he's active with his foundation. | |
Re: Sounds more like something you would do in php or asp.net. Check into those. | |
So I didn't know where to put this but I had somewhat of a newbie question. I am trying to create a blog for my friend. Its going to be a full fledged site and I want to store the blogs and be able to search on them later. I … | |
I used to keep up with all this back in HS but ive been so out of it for so long I have lost touch with all the new hardware. I am currently running a core 2 32bit laptop with 2 gig ram and I am thinking its time for … | |
I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is there any way to check if … | |
I am just starting with python and I am trying to write a program that interfaces with flickr. I am using the interface flickr.py found at the following link: [url]http://code.google.com/p/flickrpy/[/url] I am calling the following function: [CODE]myPhotos = myPhotoSets[0].getPhotos()[/CODE] The shell is telling me there is an error in this … | |
I am new to message queues and IPC in general. I am trying to have a process establish the queue and send a message. Then I fork and the child will read the message. The goal is to measure the execution time for different sized messages. The msgsnd is returning … | |
Re: I had that and it was because mspdb80.dll was missing. Check your directories and make sure nothing is corrupt. | |
Re: what text editor in putty are you using? Can you not map your network drive and just open it in wordpad? | |
I am trying to create a 2d array list but it is giving me a compiler error pointing at the first line of the function. I don't really get what is causing the problem. I am pretty good in C++ but Java has some new rules that I am trying … | |
Re: Your problem is in this line right here [CODE]age = (m * 100) + (y * 10000) + (d);[/CODE] I somewhat see what you are trying to do but that's a strange way of doing it. Try three nested if statements. For example to check if father is older than … | |
Re: Draw these out and trace through the algorithm and it will make much more sense. | |
Re: What is Variable? If this is a class that you have written make sure that you are including the file that holds the class in the file that is giving that compile error. When you try to declare your vector it seems like the program doesn't know about the Variable … | |
Re: Definitely read the links provided above but the short answer to your question is that pointers point to data stored on the stack and everything else is on the program stack. But remember, the pointer is on the stack and the data it points to is on the heap. For … | |
Re: [QUOTE=that_fox;1004513]I thought that when I put "point[y]=&sentence2[y];" it was getting point to refer to the memory space instead of the value. And then in the stripWhite function "sentence2[y]=*point[y];" was referring to the value within the pointer. Is that not using pointers? I'm sorry to say I'm confused when it comes … | |
I am a C++ and Java programmer and I just have a couple simple syntax questions that I can't find a clear answer to. Yes I tried Google. [B]Question 1: [/B]I found the following code on another forum. [CODE]typedef struct List { char* Name; char* Address; BOOL is_present }List_info; List_info … | |
I am writing a database API in C++ and I cant seem to think of a good way to handle the errors. For example if certain error conditions are met I would like to set some sort of error flag and allow every class to check that flag. I have … |