• Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Count number of occurrences of a digit within a string

    Keep a frequency table: int numbers[] = {1, 4, 5, 5, 5, 6, 6, 3, 2, 1}; int freq[10] = {0}; for (int i = 0; i < sizeof numbers …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in My code keeps segfaulting :(

    That's simple enough: `args` is an *uninitialized* pointer, not a pointer to infinite memory. To simulate a 2D array you need to first allocate room for the number of pointers …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Self proclaimed

    > And I have become confused on what this thread is about... I'd wager it's about the OP boosting his post count with pointless posts.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in C++

    Your question is nonsensical, please rephrase it.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > So it is an ibiscus, an istory and a hibiscus, a history But I still don't know what the general writing rule is. I'd write it the way I …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Development Software

    > Many experts program with a plain text editor most of the time. Professionals will use any tools necessary to speed up the process, but as it's sometimes said, the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in c# vs win 32 api - when to use p/Invoke

    > 1.if .net is a wrapper around win32 api it means we are able to do everything with .net that we used to do with win32 api. then why we …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    Acronyms are interesting because sometimes you might spell them and sometimes you might say them as a word. The guideline for indefinite articles is "a" for words starting with a …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    Agreed. "Performant" is a non-word, but it's descriptive and useful in software development and IT. As such, I have no problem at all using it.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > Being in IT, I also hear a lot of words that have been invented. A lot of fields have their own jargon. If [doh](http://www.merriam-webster.com/dictionary/doh) can make it into the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Drawing OVER controls in a panel

    Try increasing the z-index or just `BringToFront` on the control if you want it at the top level.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Just to check if my Malloc and Realloc are correct?

    > You aren't casting the results of malloc() and realloc() to the appropriate type. They return a void* and that should be cast as needed. The cast is unnecessary in …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Just to check if my Malloc and Realloc are correct?

    Without seeing the code, it's hard to tell. `malloc` and `realloc` will return `NULL` on failure, but there are gotchas that could appear to work yet still be subtly broken. …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Reading from .txt a cheking vowel a

    Are you doing anything with the characters after counting them? If not, storing them is a waste of memory and also inflexible because you're shoehorned into the 100 character upper …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in New Homepage

    I'd use the homepage more if Fred and the new discussion panels didn't take up so much room. Perhaps you could add a way to collapse those and store the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in calculate amount between datagridview and textbox

    To clarify my own understanding: * The grid contains agents * All displayed agents are bound by a single parent * The text box contains a total amount tied to …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in ioexception unhandle.. the process is being used by another program

    Note that the process which has the file open could be *your* process, if you've opened it before and failed to close it or try to open it again before …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in multiple barcode image

    > What's the difference among them all? First and foremost what I look for is what barcode symbologies are supported by a library. The usual 1D suspects are generally supported …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Input string was not in a correct format - autonumber

    > I'm here to ask a help because I am not a Expert like you I'm a newbie on C# program. I'm happy to help, as evidenced by my posts …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > Of course, the well-educated person will avoid these situations if possible. Best practice is to avoid such situations in formal writing, not because the faux rules are in any …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    Hah, I read too fast and didn't even see that, diafol.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > I didn't understand the thing about "splitting infinities". I still don't get it. Is that an expression or something? Or is it some clever joke that I'm too stupid …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in How to create a hypocrite in C++ (or any other language)

    > I got my Hypocrite Medal during a battle of words on the C++ forum It's not easy to be consistent. Also, one's opinions may change over time, which can …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Reading from .txt a cheking vowel a

    First and foremost, your code exhibits undefined behavior because you only ever initialize the first character of the string. The actual problem you're seeing though, is that you only store …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Extracting content between two keywords.

    > Based on your codes I am going to send the whole packet rite. My example parses only the request line defined [here](http://tools.ietf.org/html/rfc2616#section-5.1).
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > And no tutorials on here, James? :) I just added one yesterday, O ye of little faith. ;)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in pattern matching algorithm

    Walk over the source once. Keep a reference to the first match and as long as the source matches the pattern, walk over the pattern too. If the pattern reaches …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Bad Grammar

    > Can you suggest some ways so that I cam improve my writing and speaking skills ? There's no quick and easy solution. Read and listen to people with the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in hello

    > no its not ,, I SWEAR :D "Homework" is a catchall term in our rules. Just because the exercise wasn't assigned to you by a teacher in a programming …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in hello

    > btw its not homework If you're learning C++ and this is a learning exercise, it's homework.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in hello

    Yes we can. We *won't* though, as you'd learn nothing by being given the code for your homework exercise. However, we can help you along if you post your code …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in White space and cin.get?

    That's because your `stringstream` really does only contain the first word. Why? You used `operator>>` to populate mystring from cin, and `operator>>` stops reading at whitespace. Try using `getline` instead.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Input string was not in a correct format - autonumber

    > @deceptikon: I got this error,. Did you even *try* to turn on your brain concerning these errors? Especially since I made a similar typo in an earlier post; the …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in can' t get string keyword in dev-c++ 5.5.3(windows8)

    C doesn't have a `string` type. Can you be more specific about what you're trying to do? Perhaps post a sample program?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in fscanf vs fgetc

    > My understanding of fgetc is it reads character by character of a file It reads *one* character from a stream. The stream may or may not be a stream …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in how print void pointer to string?

    It's a pointer to `int`, but you want to print a string... How exactly do you want that string to be represented?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Get Identity of inserted row

    You didn't add your [output parameter](http://msdn.microsoft.com/en-us/library/f38c3x2s(v=vs.110).aspx).
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Get Identity of inserted row

    How are you calling the stored procedure?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in fscanf vs fgetc

    > Is that corrrect? Not at all. Have you checked a C reference manual? The only similarities `fgetc` and `fscanf` have is they read input from a stream, and fscanf …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in help me

    > What if it isn't homework Irrelevant. The homework clause applies universally to "do it for me" requests. It's merely called the "homework" clause because most violations are school exercises.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in help me

    Can we help? Absolutely. *Will* we help? That depends solely on how much effort you're willing to put in. If you just want someone to do it for you, you'll …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Array with random

    Is your file already in memory or are you retrieving new strings from the file each time?
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in games and windows 8

    I've had issues with older games that ran fine on Windows 7. ;)
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Extracting content between two keywords.

    > What is actually the big mistake in my solution please advice so I can avoid it? There's no big mistake, but you can do it better as per my …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in games and windows 8

    You can check the [compatibility center](http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/Home?Language=en-US) for software and hardware. Incompatible doesn't mean it *won't* work, but it might take some finagling to get it to work.
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Get Identity of inserted row

    You can get the most recent identity with `scope_identity()`: begin insert into np_Profesori (Ime, Prezime) values (@ime, @prezime); select @id = scope_identity(); insert into npGdjeRadi (IDProfesor, IDFakultet) values (@id, @fakultet); …
  • Member Avatar for deceptikon
    deceptikon

    Created Arrays in C++

    ##Why Use Arrays?## Let's begin by considering why arrays might be needed. What is the problem that this feature solves? How does it make your life as a programmer easier? …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in map using lots of memory and long run time

    There's nothing in those snippets that would make me suspect the map as cause for a memory leak. If the map itself is confirmed to be using "lots" of memory, …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Linked list of chars In c

    > But don't compilers typically like to pad structs so that they are aligned a certain way (Like making the size a multiple of four)? Typically, yes, though how padding …
  • Member Avatar for deceptikon
    deceptikon

    Replied To a Post in Extracting content between two keywords.

    > I think the example you gave me is quite similar is just that you are taking in the full list of methods not just purely get and post. Of …

The End.