CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: willmotil

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: C# int query

    by willmotil
    Replies
    5
    Views
    1,599

    Re: C# int query

    sorry he's right, i probably said that poorly, though it still denotes the sign but it is a value as well
    to say no (positive signed integer) number in either in will have that first bit set true
    ...
  2. Thread: C# int query

    by willmotil
    Replies
    5
    Views
    1,599

    Re: C# int query

    remember that a int and a uint (unsigned) are not the same

    the maximum positive value in binary for a int is 0111-1111-1111-1111-1111-1111-1111-1111 = 2147483647
    but that's Not the maximum value...
  3. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    quoted from the same link posted above


    below a quote from this msn page found here
    https://msdn.microsoft.com/en-us/library/x2f3k4f6.aspx


    then see the msn example code at the bottom of...
  4. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    well in that case just for the record its not that simple anyways
    see
    R. Martinho Fernandes answer to the question here
    http://stackoverflow.com/questions/228038/best-way-to-reverse-a-string...
  5. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    he means "you gonna get fired" when they realize your copying pasting lol

    though seriously
    your not supposed to ask questions for a interview
    your supposed to already know the answers
  6. Replies
    2
    Views
    927

    Re: Instead of "goto"-method?

    using System;

    namespace GoToTest
    {
    public class GoToTest
    {
    public static void Main()
    {
    string...
  7. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    welcome, i edited it a bit for clarity and so you could experiment with it a bit

    to just reverse into a character array you would do this
    but i don't see why anyone would be using a char array...
  8. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    you can index a string like a array
    it counts from the end of the string to the beginning
    but adds to the character array from start to end

    for example
    pass your string to this method


    ...
  9. Re: Application has stopped working error - program randomly hangs

    make sure you are flushing and closing a reading or writing stream
    if you are not wrapping the file writing operation with a using statement
    or setting flags to write and read from to individually...
  10. Re: Algorithm to draw n pointed star where n >=5

    in this case you are actually looking to exclude a line
    e.g. visually it is the anti pattern of any two points next to each other
    that you will find and exclude all other points can be drawn
    to...
  11. Re: Complete Beginner of C++ Graphics Programming(Help in simple checker game)

    Edit:
    i was half asleep waiting on a download , when i wrote that out,
    i should have waited ackk... let me clear it up
    consider the code at the bottom pesudo code if you don't have a vector2...
  12. Re: Where to declare array so it isn't recreated every time Save is pushed

    Edit: correction
    i just realized i answered this question wrong misreading what he was asking


    ArrayList myList;
    public MainWindow()
    {
    // this should work or preferably...
  13. Re: Trying to get a foreach loop working with CSV file

    you can assign the variable in the for loop for(int row =0 ;...;...){...ect....
    you can also simply write row < csv.NumRows to say instead of <= length -1 just write < length
    this line here...
  14. Re: Implicit Conversion Operators and Value Types

    well i liked the article

    in general the whole point of the article could have been sumed up to
    rule of thumb
    don't use implicit operators on references
    use explicit operators or conversion...
  15. Re: Integral constant is too large (CS1021) - How to put 1000 integers in an array?

    your error
    http://msdn.microsoft.com/en-us/library/wycw0k5b%28v=vs.90%29.aspx
    occuring because a int's max value is 10 digits
    http://www.dotnetperls.com/int-maxvalue
    a ulong can take about 20...
  16. Re: Should a type for working with fractions be a class or a struct?

    ok so i thought this was a interesting point
    i was looking for a way to get around this concern reasonably
    however after reading this old post from 5 years back
    which addresses nearly all the...
  17. Re: Total novice on SharpDevelop: how to build a uni-dimensional table/list of number

    for reference dot net perls is a nice site
    all about arrays
    http://www.dotnetperls.com/array
  18. Re: Complete Beginner of C++ Graphics Programming(Help in simple checker game)

    gamedev.net http://www.gamedev.net/page/index.html
    is were i would start for simple tutorials and questions
    its a dedicated game dev site and forum, its been around for a long time

    though more...
  19. Re: Storing multiple function calls in an array

    what exactly are you trying to build do here...?
    you realize that subInput.Length is actually the number of characters in the string itself
    not a actual value so that if

    subInput = "99"; ...
  20. Re: Should a type for working with fractions be a class or a struct?

    i would much more lean towards struct since its math focused
    it is by its own definition dealing with values "fractions"
    alternatively static class or public sealed class / static methods

    in...
  21. Re: Is there any way to derive from C# string, int , long etc?

    you would never want to do this because it can cause real problems later down the road
    unless, you had a very very good reason too.
    in that case
    there is probably a better way to do what you want...
  22. Replies
    2
    Views
    1,238

    Re: Collection Item Question

    i would ask that you clarify the question more specifically?
    often
    just asking one individual specific question well spoken, is far better than,
    trying to squeeze in a whole set of problem's...
  23. Replies
    5
    Views
    1,564

    Re: Best way to understand a new library

    if the library is using the a older version then .net 4.5
    you can probably still use the CLR profiler from microsoft
    which is standalone to get a better picture of whats going on...
  24. Replies
    6
    Views
    1,874

    Re: Need help with project direction

    i think this is a great idea ...
    im not sure about legal stuff involved in anything but educational purposes

    you should add run command prompt tools or auto script instructions like
    a...
  25. Replies
    3
    Views
    1,204

    Re: ... is a variable but used like a method

    something is obviously wrong with this line of code cause ToString() should look like that not ToString

    i don't think a Ordinal would belong in a indexer but without seeing more code i dunno
    my...
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured