- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 20
- Posts with Upvotes
- 18
- Upvoting Members
- 17
- Downvotes Received
- 10
- Posts with Downvotes
- 6
- Downvoting Members
- 8
95 Posted Topics
| |
Re: This code will let you read and write from a binary file. [CODE]Imports System.IO Module Module1 Sub Main() Dim Stream As FileStream Try Stream = New FileStream("test.dat", FileMode.Create) Catch E As Exception Console.WriteLine("Error creating test.Dat") Console.WriteLine("Error {0}", E.Message) End Try Dim BinaryStream As New BinaryWriter(Stream) Dim Age As Integer = … | |
Re: You should check first to see if the file has been opened. [CODE]ifstream inFile;[/CODE] [CODE]if (!inFile) { cerr << "Unable to open file input.txt"; exit(1); // call system to stop } [/CODE] Once you have done that, read from the stream the same way you do cin. [CODE] int sum … | |
Re: I played a demo version of Torchlight and that was fun. There is also Maple Story, Ragnarok as previously mentioned, Dungeons & Dragons Online, Guild Wars. I am waiting for Final Fantasy XIV. Can anyone give a review of FlyFF? I've had a few people mention it was pretty good … | |
Re: The reason you get a syntax error in that code is that you have an extra bracket. Try the following code: [CODE] 1. package org.temp2.cod1; 2. import java.security.*; 3. import javax.crypto.*; 4. import javax.crypto.spec.*; 5. import java.io.*; 6. 7. public class Code1 { 8. 9. 10. byte[] plaintext = new … | |
| |
Re: You should try to search the forum before asking for help. [CODE]#include <iostream> #include <stdio.h> #include <conio.h> #include <windows.h> using namespace std; int main() { int m, s,h; cout << "A COUNTDOWN TIMER " << endl; cout << "enter time in hours here" << endl; cin >> h; cout << … | |
Re: [QUOTE=John A;886649][URL="http://en.wikipedia.org/wiki/Telnet"]telnet[/URL][/QUOTE] Telnet is not a browser. It is a protocol that can be used within a browser. | |
Re: I watched an hour tech video on the Google "Go" programming language and not having any experience with Python, I could only relate to the similarities between C and C++ which there are quite a few. However, I thought some of the syntax in the language should be addressed as … | |
Re: ^ Has a lot of posts > enjoys programming V can play an instrument | |
Re: There are a couple things you can do: 1) Use TextRenderer.DrawText() and not Graphics.DrawString() You did not specify if you were using .NET 2.0 or not, but if you are then you should use the TextRenderer class. The other method in the Graphics class does GDI which is not very … | |
Re: What modem do you have? It might be a driver issue with Windows 7. | |
Re: [QUOTE]Trivia question: What is Gallagher's first name? [/QUOTE] Peter | |
I have been searching on craigslist, auction sites, and doing research on what is a good car to get. It would be great if anyone knows anything about these cars, so please share your experiences. Even better if you have personally driven one or owned the car in the past. … | |
Re: I like to wear jeans and a polo or dress shirt depending on if I am going to work that day. | |
Re: The answer to your first question is to create a table using HTML. This [URL="http://www.tizag.com/htmlT/tables.php"]link [/URL]should help you out with the basics. As to the second part of your question, you need to fetch the data in rows and display it in the table. | |
Re: The root is going to be at index 0, left of element at index i will be 2i + 1 and the right will be at 2i + 2. Give those numbers a try. | |
Re: That is odd. Back when I was programming in college, you were not allowed to write any code until the flowcharts and pseudo-code were done. They also had to be approved by the teacher. | |
Re: Yes, all you need to do is set the [B]maxlength [/B]property in the textarea. [CODE]<textarea name="mytextarea" maxlength=100> [/CODE] | |
Re: You can also use LAMP. sudo apt-get install apache sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install mysql-server sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin For the full installation guide, check[URL="http://www.howtoforge.com/ubuntu_lamp_for_newbies] here[/URL] | |
Re: Your query is not being executed because there is no call to mysql_query in the code. | |
Re: You set the form variable to an array. From there, you can get the value using: [CODE]$form_arr= array(); $form_arr = isset($_POST['form_var']);[/CODE] | |
Re: I agree with the other posters who said it is difficult to answer this question, but if I had to narrow it down to my best quality it would be that I'm a hard worker. | |
Re: I did better than I thought... got 11/20 Also should add that I eat a lot of candy when i get a chance. There is often a deal at the local grocery store where if you buy 3 candy bars, you get another 3 free. I still have to control … | |
Re: I don't follow a lot of blogs, but I do like to stay updated on this one: [URL="http://www.thegeekstuff.com"]http://www.thegeekstuff.com[/URL] Other great sites include: [URL="http://www.digg.com"]http://www.digg.com[/URL] [URL="http://www.thinkgeek.com"]http://www.thinkgeek.com[/URL] | |
Re: Happy New Year everyone! Let us hope 2010 is better than 2009. | |
Re: Can you post the code you have? That would help to see what you are doing wrong. | |
Re: The first step is to create a form. You would have a few controls, one for the student number, and another for birthday. I suggest a text box to enter the student # and a set of combo boxes (one for the month/day/year) and then a submit button to handle … | |
Re: Hello, kind of excessive with the exclamation marks wouldn't you think? Anyway, nice to meet you. | |
Re: > Here is the coding: <?php $host="localhost"; // Host name $Username="root"; // Mysql username $Password="root"; // Mysql password $db_name="test"; // Database name $tbl_name="Users"; // Table name // Connect to server and select databse. mysql_connect("connection", "username", "password")or die("cannot connect"); mysql_select_db("test")or die("cannot select database"); // username and password sent from form $Username=$_POST['Username']; … | |
Re: I think this is a great idea especially since I love challenges. It will also encourage people to get more familiar with programming in general. The challenges need to be simple, not too complex so that someone new to the language can jump in. | |
Re: I am not sure how well this will answer your question, but unused objects are handled by the garbage collection mechanism. If the objects no longer have references in the code, they are destroyed. There is no real way to tell when an object has been destroyed though, so an … | |
Re: I did a quick google search and found the answer on the GameDev.Net forums. You need to link with the following: -lwinmm -lgdi32 | |
Re: [QUOTE]can anyone explain to me what return does? I know that return(0) stops the program at any given point, but what does returning others do?[/QUOTE] Well, [B]return[/B] is used to give the return value of a function. When you use return 0, that means that the program was successful. If … | |
Re: Take a look at FPDF. This [URL="http://www.fpdf.org/"]link[/URL] should work. | |
Re: I will help you out, but first please try to make your post more readable next time. It would probably help to type more slowly and preview what you have written. The LCD refers to the "Least Common Denominator" so if we take a sequence of numbers: 5, 10, 20 … | |
Re: [QUOTE]nstalling java on my firefox explorer get right to the end of the installation and it gives me an error message saying "error 25099. unzipping core files failed"[/QUOTE] Step 1 : Completely delete content of the following directory: C:\Program Files\Java\jre6\ (or alternate directory if you chose a non-default install location) … | |
Re: C++ is my language of choice, with Java second. The language I dislike since "hate" is such a strong word would be VB. It just takes longer to write an application. | |
Re: This is a tough choice, because I don't fare well in the heat but I have to go with summer. I don't like the freezing temperatures in winter. | |
Re: So if I understand you correctly, all that you want to do is compare the two textboxes and see if they match. [CODE]If textbox1.Text == textbox2.Text [/CODE] | |
I accidentally posted something that was unrelated to helping a fellow user out. There was no way to delete it and I am not sure if I lost reputation points because of that. Anyway, the point is people make a mistake. I try to help out everyone that I can. … | |
Re: The steps you need to take are: create a variable that holds the word, make a textbox for the user to put in a guess. You can use echo to print out the remaining letters and the function [B]substr_replace[/B] to replace the letters with asterisks. For the hidden field, set … | |
Re: [CODE]#include <windows.h> PlaySound("file.wav", NULL, SND_ASYNC | SND_FILENAME); [/CODE] You didn't mention what compiler. | |
Re: You would add a level field to the users table and use a switch/case or a series of if statements to check what access the user has. Once you determine that, send them off to the appropriate form. I would create a separate query with the username and level to … | |
Re: You are going to need to walk through the directory and use functions in the string library to find certain strings. I found an example at this [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608"]link [/URL] of what you are looking for. | |
Re: You can use mysql_fetch_array() or mysqli_fetch_array() to return the result as an array. ![]() | |
Re: That is handled by the operating system and browser. There is a [B]font-smooth[/B] property in CSS3 but it is not finished yet. | |
Re: You can use a JOIN to link the two tables together. This [URL="http://dev.mysql.com/doc/refman/5.1/en/join.html"]link[/URL] will explain the different types of joins. |
The End.