Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
9
Posts with Upvotes
8
Upvoting Members
9
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K
~22.1K People Reached
Favorite Tags
Member Avatar for invisal

I've often used C/C++ to do just simple trivial tasks like trying out an algorithm or doing exercises so usually creating projects is such a pain in the ass. In this regard, I've preferred something like Code::Blocks because you can compile a single source file without the need of a …

Member Avatar for asrockw7
2
266
Member Avatar for <M/>

> HTML, XML, CSS, etc. are not programming languages, they are markup languages, so people who use them are not programming. Instead they are writing scripts for a browser to interpret. Then again, when you are programming in Java, you are technically writing 'something' that the JVM would interpret. I …

Member Avatar for jwenting
0
388
Member Avatar for TonyG_cyprus

IE is using the 'old' or 'Quirky Mode' renderer by default to accomodate for things written back when 'standards' weren't a thing. You can override that. ;) Backwards compatibility is so NOT cool from a developer point of view.

Member Avatar for asrockw7
0
267
Member Avatar for bluekb

Would you maybe post the full code, if it's not too long? Also, when you use 2 dereferencing operators, you are accessing each individual sub-array index so doing `sizeof(STUDENT*)*first` would be a logic error. I find the error new to me. Are you perhaps using a C++ compiler/IDE?

Member Avatar for MonsieurPointer
0
356
Member Avatar for nitin1

I've been taught in my freshman class that `sizeof` was a function, or at least it was persistently addressed as such, and I didn't really know any better at the time. I think he is under the same boat. `sizeof` is not a function, but is more of an operator. …

Member Avatar for deceptikon
0
168
Member Avatar for asrockw7

With code like so: [BITS 16] ; 16 bit code generation [ORG 0x7C00] ; Origin of the program. (Start position) ; Main program main: ; Put a label defining the start of the main program call PutChar ; Run the procedure jmp $ ; Put the program into a never …

Member Avatar for asrockw7
0
149
Member Avatar for fahad.alsharafi.1

Start small and demonstrate to yourself how each programming constructs work (e.i. conditions, loops, functions). Try to make compute-the-sum programs and then integrate each feature you don't know how to use. There needs to be an initiative from yourself to break through that initial learning curve.

Member Avatar for deceptikon
0
129
Member Avatar for kovacsakos
Member Avatar for ronnel09

Alternatively, > L = 30 + { [ M + floor(M/8) ] MOD 2 }, where L is the month length in days and M is the month number 1 to 12. The expression is valid for all 12 months, but for M = 2 (February) adjust by subtracting 2 …

Member Avatar for rubberman
0
97
Member Avatar for pooh1234qwerty

An array, as in an automatic/global variable like `char ray[2];`, cannot be used with `++` or any other trick that will change its value because it is an object-like context -- it doesn't hold a value per se but rather itself is that value, if that makes sense. This is, …

Member Avatar for deceptikon
0
120
Member Avatar for chixm8_49

`?:` is an operator that works similar to an `if` construct except it can return a value when used on an expression. The syntax is `[condition] ? [statement1] : [statement2];` where statement1 is executed if condition evaluates to true, statement2 otherwise. Literally, that should evaluate to returning `'O'` like `char …

Member Avatar for Banfa
0
93
Member Avatar for pavanprinceg
Member Avatar for asrockw7
0
100
Member Avatar for Labdabeta

One would be to simply call some OS functions. Not exactly as on-the-go as a batch file because of compilation, but I would consider it more powerful... I reckon something like ruining all the file names on a directory, or even wiping out a hard disk would be perfectly doable. …

Member Avatar for VernonDozier
0
251
Member Avatar for rithish

It would help to read the error message, which mine read somewhere along the lines of `empty character constant`. Unlike strings(double quotes), there is no implied value(nul value, '\0') in a character literal(single quote) so it would produce an error. Fill the single quote with a space since that's what …

Member Avatar for rithish
0
128
Member Avatar for mrgadgets

I think it's called a shortcut. You can create it yourself on Windows and then maybe include it in your distribution. Right click on your executable and you can create the shortcut.

Member Avatar for Ancient Dragon
0
110
Member Avatar for alaa sam

I think OP isn't in need of tutorials, but exercises. I like Project Euler. There's also Code Kata.

Member Avatar for madelinekim
0
322
Member Avatar for hwoarang69

OSDev is a great resource. Warning: Only for real warriors and not the faint-hearted; not a step-by-step manual but rather a general repository for OS development. I don't think a 'how-to' exists for OS development. When all else fails, you can browse through stuff like `Minix`.

Member Avatar for Schol-R-LEA
0
243
Member Avatar for jesskavidja

Maybe because your pointer-to-pointer `arr` doesn't really have the memory to store the tokens; it's just an array of pointers. What you could do is after creating the array of pointers, allocate memory for strings to every single pointer in the array. Also, personally, I find that `calloc()` is easier …

Member Avatar for Sokurenko
0
282
Member Avatar for shibu2all

The outer `for` loop in line 3 can be thought of as the counter for the progress of the sorted part of your list/array. The inner `for` loop in line 4 is a loop that traverses the unsorted part of the list. Remember that the outer `for` loop at line …

Member Avatar for shibu2all
0
250
Member Avatar for sparsh610

A 'corrupted pointer' could be a pointer that points to already free'd data (when using dynamic allocation via malloc/calloc), or maybe just something that contains an address that you don't intend for it to contain. That being said, you don't just 'find out' whether or not a pointer is a …

Member Avatar for mike_2000_17
0
166
Member Avatar for XodoX

So the `start` denotes that the particular process should be executed after `[param] ms` has passed, correct? So as the 1st process executes, after 5 ms of its execution(in the middle of `run 10`), it will run 'along side with' the second process which was due to run after 5 …

Member Avatar for asrockw7
0
190
Member Avatar for Valiantangel
Re: %d

printf("%d", x); "%d" is a placeholder telling printf() of the type of the variable and whatever type this variable is it will be treated as what the placeholder describes it to be. Giving a value of type pointer while specifying the value as type integer would still make printf() behave …

Member Avatar for Ancient Dragon
0
110
Member Avatar for Oracle1986

> if user guesses the number right it only displays the guesses up to that number, and i would like to display all guesses including the correct one. Because you are passing variable n to the DisplayGuesses() function which acts as an index in your loop while inside your DisplayGuesses() …

Member Avatar for Oracle1986
0
249
Member Avatar for hwoarang69

You could learn GBA programming, which is pretty low level C. http://www.coranac.com/tonc/text/ You can settle for less and simply do console-based games. If you find something like DirectX and other equivalent libraries too overwhelming, you could try out drawing libraries like GDK or Qt(which is C++) which isn't quite the …

Member Avatar for Tumlee
0
172
Member Avatar for zios007

For starters, you can simply index the vector like you would to an ordinary integer array. cout << nVector[0]; Would refer to the first string object in the vector. If you feel overwhelmed by the homework, go spend a whole weekend reading turorials and implementing simple pieces of code to …

Member Avatar for sergent
0
137
Member Avatar for gourav1

You could try a sort of divide-and-conquer approach and exploit the properties of multiplication. Think about this: [CODE] 2^16 2^8 * 2^8 2^4 * 2^4 2^2 * 2^2 [/CODE] Where you divide the problem into something that is more manageable. Due to the symmetry of the products, solving 2^2, for …

Member Avatar for TrustyTony
0
1K
Member Avatar for Ararat

You can just always parse the input yourself by getting input as string then converting it to integer via atoi(). Perhaps its one of the quirks of scanf(). scanf() continuously scans the input buffer until it finds a space or nextline. From my testing, it also completely stops reading when …

Member Avatar for prakash2813
0
1K
Member Avatar for The 42nd

Since the input is sure to be divided only between string and value, and that there won't be any input like stri3.1415ng, keep on looking at the input until you find an integer. At which point, what you have read so far can be put into the structure's array component. …

Member Avatar for asrockw7
0
2K
Member Avatar for wickedQuasar

That depends on how you defined/allocated your array. Most likely you defined it as an automatic variable in main(or any other function), which gets allocated in the stack, which is a limited resource. It's called a stack overflow. [code] int main(){ int thearray[SIZE]; sort(thearray); return 0; } [/code] What you …

Member Avatar for wickedQuasar
0
399
Member Avatar for oldezwe

How about have an array which index corresponds to a particular user, say an element will contain a user_id. Resize array when you want a user to gain more probability and give that resized space another user_id. rng the given index range. You can either log the indexes that correspond …

Member Avatar for Philippe.Lahaie
0
153