Forum: C++ Sep 13th, 2009 |
| Replies: 19 Views: 535 Microsoft Visual C++ Express Edition (Free) or you can pay for it. But, since you are new, you are no where close to needing to pay for the extra features..... |
Forum: C++ Aug 24th, 2009 |
| Replies: 8 Views: 296 There is a list of problems in this thread (its a sticky, read it). Other than that,
www.wcipeg.com/judge
http://cemc.math.uwaterloo.ca/contests/past_contests.html#ccc |
Forum: C++ Aug 23rd, 2009 |
| Replies: 4 Views: 236 Thanks that got me on the right track! But, the ate doesn't work. I can't overwrite it. When I use ate, no output is sent to the file. I don't know why...
@ Salem : Thanks, for the info. It didn't... |
Forum: C++ Aug 23rd, 2009 |
| Replies: 4 Views: 236 HI, I was trying to learn more about I/O with files in C++ and I can't figure out why this program can't output to the file...
#include<iostream>
#include<string>
#include<fstream>... |
Forum: C++ Aug 23rd, 2009 |
| Replies: 4 Views: 370 VernonDozier: Thanks, I pretty much did the same thing except I just made whatever I wanted to delete equal to "$" and then ignored that element and luckily that worked.
Thanks all for posting! |
Forum: C++ Aug 22nd, 2009 |
| Replies: 4 Views: 223 Here is something:
uses
crt;
var
i, ii, control, divcount, count : integer;
begin
clrscr;
readln(control); |
Forum: C++ Aug 22nd, 2009 |
| Replies: 4 Views: 370 Hi, is there any function or algorithm that can completely remove a string array element?
For example,
string mystring = 'x', 'xx', 'xx', 'xxx';
if I want to remove 'xx' and I know the... |
Forum: Java Aug 19th, 2009 |
| Replies: 4 Views: 754 Thank you di2daer and Thirusha for your help! I finally got it to work. |
Forum: Java Aug 19th, 2009 |
| Replies: 4 Views: 754 To use this, which libraries do I have to import? I get those red lines under the two Bufferedreader and InputStreamReader. How do I fix that? |
Forum: Java Aug 19th, 2009 |
| Replies: 4 Views: 754 Hello, I am new to Java programming and I just got the NetBeans IDE. One problem that I've been having with Java is the input.
package learning;
public class Main
{
public static void... |
Forum: Computer Science Aug 14th, 2009 |
| Replies: 21 Views: 1,580 Perhaps this thread will be helpful :
http://www.daniweb.com/forums/thread56329.html
Also, C++ is NOT the only language that allows serial port communications. MAY BE there is a language that... |
Forum: C++ Aug 12th, 2009 |
| Replies: 16 Views: 403 I wasn't talking about you. I was referring to the original poster...
"which explains how to program ? i saw something like python and C++ and C .... but i don't know what they mean " |
Forum: C++ Aug 12th, 2009 |
| Replies: 16 Views: 403 Clearly, the guy here doesn't even know what is C++ and C... I mean no matter how bad your teacher is, he/she wouldn't be hired if they weren't capable of give AT LEAST the basic knowledge of... |
Forum: C++ Aug 11th, 2009 |
| Replies: 16 Views: 403 Take the Computer Science course if your school offers one. That is the best place you can start from.
Good luck!! |
Forum: Pascal and Delphi Aug 10th, 2009 |
| Replies: 8 Views: 716 When I was a beginer, I was doing random problems in Pascal. Here is one that might help you...
uses
crt;
var
i, control : longint;
input, sum : real;
begin
writeln('Enter... |
Forum: C++ Aug 10th, 2009 |
| Replies: 3 Views: 175 Please post your solution... |
Forum: C++ Aug 10th, 2009 |
| Replies: 7 Views: 319 I guess you just need to implement another option in your menus. Like "Press 3 to go to main menu..." then you can use goto ______; and what not... or you can think of something better.
I don't... |
Forum: C++ Aug 10th, 2009 |
| Replies: 12 Views: 454 I am not sure if you still are monitoring this thread, but when you use <= with ____.length();. It loop one more time. This is caused because I start at 0 and go upto and including the total input... |
Forum: C++ Aug 9th, 2009 |
| Replies: 12 Views: 454 First Person: I was just trying to keep it simple because 'Dr.Stupid' (I feel like I am insulting him but I am not...) is a beginer. So yeah, if I had to do something like this, I would have... |
Forum: C++ Aug 9th, 2009 |
| Replies: 5 Views: 268 In C++, if you compare something like R WITHOUT any quotes, it interprets it as a variable. So, I assume that the user will enter R or r. If so, you need to check like
if (input == 'R')
{
}
... |
Forum: C++ Aug 9th, 2009 |
| Replies: 12 Views: 454 The problem you posted says that you need to display how many time a letter of the alphabet occures in the input. Here is a possible but incomplete solution....
#include<iostream>... |
Forum: C++ Aug 8th, 2009 |
| Replies: 12 Views: 454 Length of a string can be found using _____.length(); {Fill the space with the name of the variable}
You can then use a for loop to check every single character inside the string and compare it... |
Forum: C++ Aug 1st, 2009 |
| Replies: 5 Views: 217 I am not an expert and I don't fully understand the code there. But, I completed a game written in Pascal where I had to clear only selected pixels on screen. Like all the pixels between (25, 25) and... |
Forum: C++ Jul 29th, 2009 |
| Replies: 3 Views: 185 1. Since you are new to C++, I doubt you will really need to use that argc stuff but like that first post says, you can find information if you really need in that link.
2. "If you divide i by 7... |
Forum: C++ Jul 29th, 2009 |
| Replies: 11 Views: 793 really? That last code works on my computer, if I remember it correctly, it turned the text into purple. I am guessing the problem is the compiler you are using. Try using Visual C++ Express Edition. |
Forum: Computer Science Jul 28th, 2009 |
| Replies: 21 Views: 1,580 Have you thought of using a photo cell(or a solar cell) and a laser(visible or invisible)? It can also be used to detect movements. If it suits your needs, then programming and other things can be so... |
Forum: C++ Jul 27th, 2009 |
| Replies: 11 Views: 793 #include <windows.h>
#include <iostream>
using namespace std;
int main()
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 5);
cout << "I take back my first post and ask... |
Forum: C++ Jul 27th, 2009 |
| Replies: 7 Views: 404 Every thing that you can type or have displayed in the DOS shell has a certain number known as the ASCII value. What the problem is asking is "to display all the characters that can be represented in... |
Forum: C++ Jul 26th, 2009 |
| Replies: 3 Views: 424 www.wcipeg.com/judge
Try that website. Although, it doesn't teach you the algorithms but it has A LOT of problems for you to solve!
Good Luck!!
P.S. I am not advertising, its a non-profit... |
Forum: C++ Jul 26th, 2009 |
| Replies: 3 Views: 243 The problem can be easiely solved by ROUNDING the output number to a certain degree.
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double i = 0.546546, ii =... |
Forum: C++ Jul 26th, 2009 |
| Replies: 11 Views: 793 Use the textcolor function (it's not standard compliant) from conio.h library:
#include <conio.h>
int main()
{
textcolor(RED);
cputs("Red text in console!");
return 0;
} |
Forum: C++ Jul 25th, 2009 |
| Replies: 6 Views: 510 I don't think thats possible if I properly understand what you are asking.... |
Forum: C++ Jul 25th, 2009 |
| Replies: 7 Views: 494 If you don't know a lot in C++, why don't you start making simpler games like tic tac toe or Who wants to be a millionaire? As to how to make the games, well TTT is really easy. All you need is... |
Forum: C++ Jul 24th, 2009 |
| Replies: 11 Views: 10,191 I don't know any function that can do that but you can write your own like this!!
#include<iostream>
#include<string>
#include<iomanip>
#include<algorithm>
using namespace std;
string... |
Forum: C++ Jul 24th, 2009 |
| Replies: 8 Views: 4,615 soryy, please delet this?? |
Forum: Site Layout and Usability Jul 16th, 2009 |
| Replies: 1 Views: 393 NVM with all that nonsense.... the problem is the cookie. |
Forum: Site Layout and Usability Jul 16th, 2009 |
| Replies: 1 Views: 393 Hello, I am new webmaster for my high school's robotics team and I don't understand why the pages load differently in IE8 and FireFox.
http://www.team188.com is the website...
Ok, so here is... |
Forum: Troubleshooting Dead Machines Jun 2nd, 2009 |
| Replies: 7 Views: 851 My laptop keeps shutting down when I try to turn it on. It will always stay on until the XP's loading screen appears(the screen where there is a bar kinda thing that makes it look like its loading).... |
Forum: C++ May 7th, 2009 |
| Replies: 10 Views: 1,044 I am pretty sure that problem can be solved by putting that in an 'if statement' if it is solvable, it will else it should output something that you want to output. I haven't tried that though... |
Forum: C++ May 7th, 2009 |
| Replies: 10 Views: 1,044 An easy way to solve this problem is by find the slope of the three lines and checking if any of the slopes happen to be negative reciprocals of the remaining two...
Slope(m) = (Y2 - Y1) / (X2 -... |