- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
59 Posted Topics
Re: I hope you already know what an array is. You can access an array's item by specifying its index, for example a[1] = 1. However, for linked list, you cannot do that. It is because each "linked list node" usually has two parts, data and [B]reference[/B] to next item. To … | |
Re: For pseudocode you dont have to write in any specific programming language. Just write for example : [code] i = lastitem...firstitem [/code] | |
I want to know what software is used to draw these graphs with labels and 3D perspectives? Image attached ![]() | |
Re: Take a look at this site [URL="http://www.cplusplus.com/forum/beginner/5619/#msg25047"]http://www.cplusplus.com/forum/beginner/5619/#msg25047[/URL] | |
Re: you can apply any sorting algorithms to your database, changing the normal comparison < = > to compareTo. | |
Re: Why dont you use string for both name and city? Try changing it to string also | |
Re: a look through this website may help [URL="www.cplusplus.com/reference"]www.cplusplus.com/reference[/URL] | |
Re: I dont think thread sleep is what you should use, you can use a timer instead. [URL="http://www.techusers.net/96/example-timer-control-vbnet"]http://www.techusers.net/96/example-timer-control-vbnet[/URL] | |
Re: You can use visual studio to develop your software : [URL="http://blogs.msdn.com/b/vbteam/archive/2011/08/02/temperature-monitoring-using-vb-net-and-the-micro-framework-and-a-netduino.aspx"]http://blogs.msdn.com/b/vbteam/archive/2011/08/02/temperature-monitoring-using-vb-net-and-the-micro-framework-and-a-netduino.aspx[/URL] What do you mean 'interact' ? | |
Re: Which part did your program stuck at ? You can set breakpoint so that you know which line goes wrong | |
Re: You could read the link below to know how to input from file [URL="http://www.cplusplus.com/doc/tutorial/files/"]http://www.cplusplus.com/doc/tutorial/files/[/URL] After that, you can input each line as a string then find for the character in the string | |
Re: You can use loop for [B]ctr[/B] variables. Also, you should you a shorter variable name for myvector ( I change it to [B]m[/B] ) so as to save some space. [CODE]for (int ctr = 0 ; i <= 2; i++) { if (xmin >= m[ctr].x && xmin <= m[ctr+1].x) { … | |
Re: You should think of an idea on what you are trying to achieve so that it will be easier for others to help :) | |
Re: First, I assume that a sentence or a line will end when the user presses enter after input. [CODE]#include <iostream> #include <stdio.h> using namespace std; int main() { char s[100]; scanf("%[^\n]",&s); printf("%s",s); return 0; } [/CODE] The use of scanf here is very useful , \^n means exclude ^n character … | |
Re: [ICODE]#include <iostream> #include <string> #include <stdio.h> #include <vector> #include <algorithm> #include <list> #include <map> #include <fstream> using namespace std; struct Point { int x,y; }; bool myobject(Point x1,Point x2) { return (x1.x<x2.x); } int main() { ifstream infile; infile.open("input.txt"); int n_points = 0; infile>>n_points; vector<Point> myvector; vector<Point>::iterator it; for (int … | |
Re: A simple hangman game should be easy enough :) Find some simple games which can keep him excited | |
Re: You can make a simple vocabulary learning system similar to flashcards. Each card ( item ) has two sides and your program can have features like add cards, test cards, delete cards, etc. | |
![]() | Re: You can just separate your compare function from your struct. For example : [CODE]struct Point { int x,y; }; bool myobject(Point x1,Point x2) { return (x1.x<x2.x); } [/CODE] Just remember to put struct before compare function ![]() |
Re: I guess it's because you are trying to compare an object to a value | |
| |
Re: First off all, your code for linked list is quite complicated so i didnt read all. But there are some tips: - Reverse both numbers ( i think you have done it) - Multiply manually by hand, step by step, find the algorithm. Pay attention to carrys - Get it … | |
Re: First, minutes cannot exceed 59. So, for example 7 hours 62 minutes should become 8 hours 2 minutes. So, [CODE]int plusHour = result.minutes/60; result.hour+=plusHour; results.minutes%=60; [/CODE] For operator overloading,just take a look here [URL="http://www.cprogramming.com/tutorial/operator_overloading.html"]http://www.cprogramming.com/tutorial/operator_overloading.html[/URL] | |
Re: First you need to write the login code. You can take a look at these two sites, I find it pretty helpful [URL="http://social.msdn.microsoft.com/Forums/en/Vsexpressvb/thread/f93c1d5e-ad8f-4706-8679-7fd2d1cd56ae"]http://social.msdn.microsoft.com/Forums/en/Vsexpressvb/thread/f93c1d5e-ad8f-4706-8679-7fd2d1cd56ae[/URL] [URL="http://www.hassan-ahmad.com/2009/11/vb-net-login-to-website-programmatically-example-code/"]http://www.hassan-ahmad.com/2009/11/vb-net-login-to-website-programmatically-example-code/[/URL] Then you can continue with your ping | |
Re: You could write a Sub ( method ) which has two parameters. For example: [CODE]Sub update(ByVal pictureBox as PictureBox, ByVal newImage as String) pictureBox.Image = Image.FromFile(newImage) End Sub [/CODE] | |
Re: Correct spelling is "definition" :) Just find the definition here [URL="http://en.wikipedia.org/wiki/Computer_virus"]http://en.wikipedia.org/wiki/Computer_virus[/URL] | |
Re: [URL="http://crypto.stanford.edu/pbc/chunked/ch02.html"]http://crypto.stanford.edu/pbc/chunked/ch02.html[/URL] I think it shouldnt be difficult to translate c into vb.net :) | |
Re: The definition of distinct is quite vague but the way I understand is 1-2-3-4-1 and 1-3-2-4-1 is different, meaning order is important. In order to find distinct cycles of length 4, you need to have 4 distinct vertices and the last vertice is the same as first. Hence, 6P4 = … | |
Re: The way I see the problem is shown through the picture, you can see the link or attachment [URL="http://ni6.upanh.com/b2.s15.d1/cd956edc31b0835b1aa9dec8d1dc8ce1_40970086.untitled.png"]http://ni6.upanh.com/b2.s15.d1/cd956edc31b0835b1aa9dec8d1dc8ce1_40970086.untitled.png[/URL] So, you can set two variables, int firstElbow, secondElbow; where value of 1 = up and 2 = right, 3 = down, 4 = left for example So if firstElbow = … | |
Hi all, I'm having an "assignment" in which one criterion is : - Inserting data into an ordered sequential file without reading the entire file into RAM I don't know how to this. Could you show me how to write methods/API/code in Java, anything is fine with me. Just to … | |
Hi, I want to get the network utilization percentage which appears in task manager . Is there any libraries that provide that info ? | |
I have seen and used many sites that offer leech service such as rapidleech. It basically lets you download file from other host very fast, but can anyone explain how exactly does it work ? | |
Re: Most likely the boot file is corrupted, I think the error should appear as "Boot\BCD" . One way is to insert the original windows DVD ("Windows Installation Disc" and a "System Recovery Disc") and launch repair, it will repair the boot file for you ( from own experience ) You … | |
Are there any ways to get the information about windows update ( number of updates, history, status ) by using an application ? That is, to check using a software rather than manually . Moreover, are there any ways to fake/change those information ? For example, change the status of … | |
Re: Since bubble sort is efficient, you may want to look into some optimizations of bubble sort; there may serve better purpose Example : Bidirectional bubble sort [URL="http://en.wikipedia.org/wiki/Cocktail_sort"]http://en.wikipedia.org/wiki/Cocktail_sort[/URL] | |
Re: Is it a console program or GUI program ? Does the program receive input from file or keyboard ? If from keyboard, any indications of end of input ? | |
I encountered a css font specified like this : [CODE]font: 81.25%/1 arial,helvetica,sans-serif[/CODE] I want to know what "81.25%/1" means . Thanks :) | |
Please refer to the attached image [ATTACH]22297[/ATTACH] I want to create an application which provides toolbar 'button' like BatteryBar. Thanks for your help :) | |
Re: There's a book called "Introduction to Algorithms" , very comprehensive but also quite difficult at some point :) | |
Re: Resize your pattern to smaller size : 1x1 or 10x10 is also fine. Then use CSS : body { background: url("images/pattern.png") repeat scroll left top transparent; } More option here : [URL="www.w3schools.com/css/css_background.asp"]www.w3schools.com/css/css_background.asp[/URL] | |
Re: priority queue with some adaptation , but O(n) is quite hard | |
Re: As there are different resolutions, using [B]percentage[/B] instead of pixel. One possible way is to work out the pixel first, then calculate the percentage of pixel over your current resolution. This way it should look proportionally the same on other resolutions as well. | |
I made a button in pts and now want to use it as a button in a program. Is there any way to change the image of the button to the one i made or make it function like a button ? tkq | |
The thing is that I'm living in hostel and they use cisco router with web authentication. Normally after successfully connected to the network, I've got to enter name & password at the browser (1.1.1.1/login.html) to get redirected. However, the problem is now is that when connecting to the router, I … | |
Re: You may add in the two Else(s) below _textbox.clear() . If you have several textboxes, you may want to create a procedure to do the same for all of them. | |
Re: hv u tried to boot from external drive ? if u can so yr drive got some prob | |
I want to write an application that can detect whether a value in CSS/HTML file has changed or not, how can I do that ? Please post example code / import as much as possible. Tkq | |
I want to write an application that can detect whether a value in CSS file has changed or not, how can I do that ? Please post example code / import as much as possible. Tkq | |
Can someone tell me whether I can customize this highlighted part in the attachment ( using Windows 7 ) |
The End.