Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 27
Search took 0.01 seconds.
Search: Posts Made By: seymour_glass
Forum: C# November 4th, 2007, 03:43 AM
Replies: 7
Views: 1,837
Posted By seymour_glass
I had'nt thought of reversing it. Someone...

I had'nt thought of reversing it. Someone pointed out to me that I should probably convert my value popped off the stack to a string

i.e.

object nextItem = operatorStack.Peek();...
Forum: C# November 3rd, 2007, 01:44 AM
Replies: 7
Views: 1,837
Posted By seymour_glass
No, I tried it both ways. If I use a...

No, I tried it both ways.

If I use a single '=' i get the ": The left-hand side of an assignment must be a variable, property or indexer." error.

If I use '==' I get an error stating ":...
Forum: C# November 1st, 2007, 09:37 PM
Replies: 7
Views: 1,837
Posted By seymour_glass
Actually, I fixed that before I posted the code. ...

Actually, I fixed that before I posted the code. I copied this code out of my old thread. My bad. Anyways, I think I've figured out the differences in variable type, but the...
Forum: C# October 31st, 2007, 02:46 PM
Replies: 7
Views: 1,837
Posted By seymour_glass
implicit conversion

Ok, my current problem is that in my switch statement(below) I am having trouble with "implicitly trying to convert one type to another". At first I made a initiated a char that I used like


...
Forum: C# October 30th, 2007, 01:48 AM
Replies: 11
Views: 2,039
Posted By seymour_glass
anyone? Im definitely still having this problem,...

anyone? Im definitely still having this problem, iv'e really been to busy to even work on it, but im stumped. And, ahead of time, I know im a moron....

AKA
Seymour
Forum: C# October 25th, 2007, 12:14 AM
Replies: 11
Views: 2,039
Posted By seymour_glass
Ok, my current problem is that in my switch...

Ok, my current problem is that in my switch statement I have having trouble with "implicitly trying to convert one type to another". at first I made a char that was equal to myStack.Pop to switch...
Forum: C# October 24th, 2007, 12:08 AM
Replies: 11
Views: 2,039
Posted By seymour_glass
.........I apologize. I fixed it just moments...

.........I apologize. I fixed it just moments later.

making my method static makes it compile and I have checked to see that my stack is operating properly and all that.

Why do I need this to...
Forum: C# October 24th, 2007, 12:00 AM
Replies: 11
Views: 2,039
Posted By seymour_glass
Ok, sorry about the double post. I've got the...

Ok, sorry about the double post. I've got the returning a value thing fixed. However I dont understand the issue with:

: An object reference is required for the nonstatic field, method, or...
Forum: C# October 23rd, 2007, 11:49 PM
Replies: 11
Views: 2,039
Posted By seymour_glass
Point taken, by both of you. I think that...

Point taken, by both of you. I think that planoies recommendation will fix the problem while allowing me to do what I want with the returned string. However I still cannot get the GetLine method to...
Forum: C# October 22nd, 2007, 11:04 PM
Replies: 11
Views: 2,039
Posted By seymour_glass
the problem with that is that I need to keep the...

the problem with that is that I need to keep the readline from the streamwriter in a variable so that I can use it later. Essentially what I am doing is the shunting yard thing. Gotta read an...
Forum: C# October 22nd, 2007, 07:54 PM
Replies: 11
Views: 2,039
Posted By seymour_glass
accesibility.....

OK while I understand this is not a complete program, Im just trying to read an expression from a file and the pop each letter of the expression onto a stack. This code, however, does not compile...
Forum: C# May 1st, 2007, 09:17 PM
Replies: 3
Views: 1,199
Posted By seymour_glass
I knew that this might be a problem. I...

I knew that this might be a problem. I understand that I can't use a console readline being a windows app, however, I cannot seem to grasp this. If i have '3' in the TextBox and press plus, my...
Forum: C# April 30th, 2007, 03:18 PM
Replies: 3
Views: 1,199
Posted By seymour_glass
stupid question...

Ok, I am making a simple calculator. All I am looking for is a method which acts like a Console.ReadLine, so that I can enter a value twice into a textBox during the same Click Event...

i.e...
{...
Forum: C# April 26th, 2007, 10:18 PM
Replies: 1
Views: 1,122
Posted By seymour_glass
never mind...ive figured that part out...now..to...

never mind...ive figured that part out...now..to the NEXT part.
Forum: C# April 26th, 2007, 08:01 PM
Replies: 1
Views: 1,122
Posted By seymour_glass
Using classes

OK I am making a calculator pretty much similar to the windows calculator. It uses buttons 0-9 and +, -, *, /, Clr buttons. In writing a class that would look something like:

public class...
Forum: C# April 6th, 2007, 12:50 PM
Replies: 6
Views: 1,517
Posted By seymour_glass
OK i got everything working good except that it...

OK i got everything working good except that it randomly crashes having something to do with the array, it indexes everything except the last one, and sometimes(why?) crashes as soon as i compile it...
Forum: C# April 5th, 2007, 09:21 PM
Replies: 6
Views: 1,517
Posted By seymour_glass
I cant tell if what you wrote is what i meant, or...

I cant tell if what you wrote is what i meant, or vice versa.

My objective is to simply split that readline() into two parts. The line it is reading will consist of "FIRSTNAME LASTNAME" , which...
Forum: C# April 5th, 2007, 05:36 PM
Replies: 6
Views: 1,517
Posted By seymour_glass
split method....

The MSDN library says this is the format. However my compiler does not like it. I keep getting all kinds (like 13 errors) of crap about missing ;, ), or ].


string s =...
Forum: C# April 2nd, 2007, 08:14 PM
Replies: 2
Views: 1,066
Posted By seymour_glass
Yes. I get a problem between converting the int...

Yes. I get a problem between converting the int to a string...

also it occurred i am going to need an index for which array i am on. something like:

if (householdIndex < 15)
{...
Forum: C# April 2nd, 2007, 04:12 PM
Replies: 2
Views: 1,066
Posted By seymour_glass
arrays of structs

I need to enter data for 14 people with 3 fields of data for each. I have made my struct, and declared my array. I am, however, a little confused about where to start with "parsing" the fields from...
Forum: C# February 6th, 2007, 04:43 PM
Replies: 5
Views: 963
Posted By seymour_glass
OK one more thing. How do I check an input for a...

OK one more thing. How do I check an input for a specific number of characters?
I understand the concept, it's the syntax i am unsure of.
Forum: C# February 5th, 2007, 10:27 PM
Replies: 1
hmm
Views: 551
Posted By seymour_glass
hmm

ok i gotta fair amount of code, but im trying to post the whole thing. Is there an easier way 2 do that??

The program runs, almost correctly. Just a small problem....

Seymour
Forum: C# February 2nd, 2007, 05:01 PM
Replies: 5
Views: 963
Posted By seymour_glass
sInput = txt.Text; sZip = sInput.Substring(0,...

sInput = txt.Text;
sZip = sInput.Substring(0, 3)

Ok i think mine will be a little bit different, but i think i understand it. I am going to parse the value from input entered in a textbox, and...
Forum: C# February 2nd, 2007, 03:48 PM
Replies: 5
Views: 963
Posted By seymour_glass
comparing strings

Ok I am writing a sort of point of sales program. I need to know how i can compare what the user entered as a zip code...and compare the first three characters to determine shippping charges.
...
Forum: C# January 23rd, 2007, 07:26 PM
Replies: 5
Views: 2,023
Posted By seymour_glass
Ya I was getting those build errors along with...

Ya I was getting those build errors along with some others that i think i fixed. Anyways. In reading the input, what argument do i need? Also, Im still a little stuck on what my argument needs to...
Showing results 1 to 25 of 27

 


All times are GMT -4. The time now is 04:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.