Forum: C++ Dec 6th, 2007 |
| Replies: 1 Views: 4,016 I believe what I have written at the moment is a singly linked list, and I can't figure out how to delete whatever node the user specifies, I've toyed around with it but I'm stumped.
Here's my... |
Forum: VB.NET Nov 29th, 2007 |
| Replies: 0 Views: 910 Public Class Form1
Dim xpos As Integer
Dim ypos As Integer
Dim i As Integer
Dim tempTotal As Double
Dim dblTempTotal As Double
Dim dblSum As Double
Dim... |
Forum: VB.NET Nov 24th, 2007 |
| Replies: 0 Views: 2,102 Private Sub btnPrintListBox_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintListBox.Click
Printer.ShowDialog()
End Sub
My book doesn't discuss how... |
Forum: Visual Basic 4 / 5 / 6 Nov 23rd, 2007 |
| Replies: 1 Views: 1,958 Private Sub btnPrintListBox_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintListBox.Click
Printer.ShowDialog()
End Sub
My book doesn't discuss how... |
Forum: C++ Oct 28th, 2007 |
| Replies: 10 Views: 3,438 while(cin){
if (decision == "B" || decision == "b"){
for (k =0; k < rows; k++){
for (m =0; m < cols; m++)
if (image[k][m] != '0'){
switch... |
Forum: C++ Oct 28th, 2007 |
| Replies: 10 Views: 3,438 I made a discovery as to why I was never getting the else statement. Because it's a char array, the if statement needed to read like this:
if (decision == "B" || decision == "b"){
for (k... |
Forum: C++ Oct 26th, 2007 |
| Replies: 10 Views: 3,438 Yes, it's just taking in numbers and turning them into ASCII and it's supposed to be just ASCII art, nothing more. |
Forum: Shell Scripting Oct 26th, 2007 |
| Replies: 0 Views: 11,895 This is my first time writing a bash script in Linux, basically I want to create a user but not use adduser or useradd.
So, in the /etc/passwd folder I need to put data in, in this way.... |
Forum: C++ Oct 26th, 2007 |
| Replies: 10 Views: 3,438 if (decision == "B" || decision == "b"){
for (k =0; k < rows; k++){
for (m =0; m < cols; m++)
if (image[k][m] != 0)
switch (image[k][m] = image[k][m] +... |
Forum: C++ Oct 26th, 2007 |
| Replies: 10 Views: 3,438 It's an array of chars, I'm going to try and use what you've said to get the program running as I want it to. |
Forum: C++ Oct 25th, 2007 |
| Replies: 10 Views: 3,438 if (decision == "B" || decision == "b"){
for (k =0; k < rows; k++){
for (m =0; m < cols; m++)
switch (image[k][m] = image[k][m] + brightcount)
{
case '0'... |
Forum: C++ Oct 18th, 2007 |
| Replies: 3 Views: 1,426 Thanks for the help, I am now able to save to a file if the user enters one, however it still doesn't work if the user doesn't enter a filename. If that happens, the program is to assume the user... |
Forum: C++ Oct 18th, 2007 |
| Replies: 3 Views: 1,426 This is my first time working with outputting data to a file, so I've got some rough code that I need some pointers on.
else if (decision == "S" || decision == "s"){
cout << "File name? "... |
Forum: C++ Oct 18th, 2007 |
| Replies: 17 Views: 2,504 I'm going to mark this as solved and start a new question thread. |
Forum: C++ Oct 17th, 2007 |
| Replies: 17 Views: 2,504 I'm almost to the point of having this solved, this is my first time working with outputting data to a file, so I've got some rough code that I need some pointers on.
else if (decision == "S"... |
Forum: C++ Oct 16th, 2007 |
| Replies: 2 Views: 1,905 I have a question about adding say integers to an array-based list of numbers.
I know how to add something at the end it would be something like:
values[count] = newValue;
count ++;
What about... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 Okay, I've got bright working, and if that's working then dark should work, but somehow my input loop is goofed. No matter what letter is typed, it brightens the image and nothing else.
#include... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 I'm still trying to figure it out, but it did dawn on me how to fix if the user continues brightening or darkening something, I made two ints, one brightcount, the other darkcount and set them to... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 Ah yes, you were right about the switch. Okay, I've got the program reading the image, using the switch to "render" the image if you will. Now if the user chooses to brighten or darken the image, can... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 Figured that image output problem, I had two extra inFile >> image[k][m] that I didn't need. The image output is fixed. |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 I read up on switches, and it says they're used for strings, not chars, so I'm going to have to do a bunch of if and else if statements then? Also this is what it's putting out for the image:
... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 Hmm, the for loops to output the image to screen just throw it all out in a big mess, it loses its format of rows of 10 and columns of 22. I'll keep looking at it, here's my updated code:
... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 I do need to keep it in memory because after I output what it looks like after being rendered, you know with the whole 0= 1=, stuff, the user can then brighten or darken the image, which will... |
Forum: C++ Oct 15th, 2007 |
| Replies: 17 Views: 2,504 Thanks for the help so far, I believe I'm now ignoring the whitespace or that first line when I'm going to try and read the image. I was told something about using nested for loops to draw in the... |
Forum: C++ Oct 14th, 2007 |
| Replies: 17 Views: 2,504 I have a file that is representing an image, here's the puddle.img file:
10 22
2222888222882222228882
2222888222882222228882
3333333333333333333333
1111111111111111111111
1111144444111111111111... |
Forum: C++ Oct 5th, 2007 |
| Replies: 5 Views: 2,138 Thanks for the help everybody, I have solved the comparing two strings part as well as converting the inputted string to all upper case. Two problems down, yet two remain. For some reason I need help... |
Forum: C++ Oct 4th, 2007 |
| Replies: 5 Views: 2,138 I got the cin loop going with a do while loop, not sure if that was the best route to take with it but it works. My main and biggest confusion is allowing the user to enter a name of an item,... |
Forum: C++ Oct 4th, 2007 |
| Replies: 5 Views: 2,138 Okay, so the premise is that this place contains items for sale, and has five of everything that it sells. The inventory is brought in from a file and with parallel arrays you set up the item names... |
Forum: C++ Oct 3rd, 2007 |
| Replies: 3 Views: 648 Those are the three lines of code I added to the client file and now it reads in as many teams and scores as are typed into the text file it's reading from. |
Forum: C++ Oct 3rd, 2007 |
| Replies: 3 Views: 648 I figured it out, after just goofing around with code for a few hours, it finally works, and I don't even understand how the code I've added really fixes it. Maybe someone can explain that to me... |
Forum: C++ Oct 3rd, 2007 |
| Replies: 3 Views: 648 So I have a program with a specification file, implementation file, and a client file, I'll post all three but I know the problem rests in the client file. What's happening is that it reads the first... |