-
Replied To a Post in What could happen if hardware has been correctly replaced?
Another potential issue with hardware changes is you may need to reactivate Windows. Typically this only happens with significant changes like a motherboard replacement, but it's not unheard of for … -
Replied To a Post in i need a combinations for the required and optional fields
What have you done so far? -
Edited a solution to this q
write a c++ programme that read an unknown number of integers value and then print count, sum and average of 1. even value 2. odd value 3. negative value 4. … -
Replied To a Post in a solution to this q
Do your own homework. Thank you. -
Replied To a Post in malloc vs calloc
> malloc() is a pre-defined function which is available in <alloc.h>. `stdlib.h`. `alloc.h` is ancient and non-standardized. Unless you copied that information from a hideously outdated source, I'd recommend updating … -
Replied To a Post in How it is working
> Actually the printf() statement will work according to the stack mechanism i.e., the evaluation (execution) will starts from right side to left side... Yet the compiler is free to … -
Replied To a Post in Program - To find the longest word from a sentences
> please put a simple program which can be understood by first year people please....... My sample program meets that requirement. -
Replied To a Post in windows service
There are a number of reasons why a service won't start or remain started. Usually it's the result of an unhandled exception. Can you provide more detail as to what … -
Replied To a Post in static data member & function
> I answered to his request, or should I say, solved his problem, right there... I'd wager that's precicely why you got downvoted. Solving homework problems for people without any … -
Replied To a Post in How to pass data between two forms in C#
Nice tutorial. I'll also add that there are usually two situations where forms communicate that affect your choice of how to do it: 1. The forms are not modal and … -
Replied To a Post in strcpy not worked create my string
Works for me, once I fix the error of trying to define an array with a non-const size (my compiler doesn't support C99+). Since I can't reproduce the stated problem, … -
Replied To a Post in static data member & function
A static data member belongs to the class rather than to an individual instance of the class. Likewise with a static member function. A reasonable way to think about them … -
Gave Reputation to ddanbe in static functions
F would certainly be a wrong answer.It is either A,B,C,D or E; or a combination of these. -
Replied To a Post in strcpy not worked create my string
You've encountered a common beginner issue. Allow me to point it out more clearly: // This is a pointer to a string literal. You can't modify it. char *text = … -
Replied To a Post in formatted output
The laziness here is impressive. Most drive-by cross posters will at least have the courtesy to copy their other posts verbatim rather than linking to them. Did you read the … -
Replied To a Post in Arrays in C++
My recommendation would be to use the string class: string names[] = {"monitor", "cpu", "mouse", "joystick", "system"}; The problem with your code is that the "strings" aren't string literals, so … -
Edited Arrays in C++
I want to declare an array of type (char / string) confused! dunno which one.. which will store 5 names this code couldnt work char names[5]={monitor,cpu,mouse,joystick,system}; someone guide me please -
Replied To a Post in code problem
You'll receive better help if you explain how the code isn't working. -
Replied To a Post in CAN I USE LOOKUP SEARCH CONTROL IN WINDOWS APPLICATION?
I'm not aware of any standard controls that will do this for you. You'd essentially need to combine a textbox and some form of list control, where a button or … -
Replied To a Post in C sharp Public Variable
public static class Globals { public static readonly string Foo = "DAFOO"; } ... Console.WriteLine(Globals.Foo); -
Replied To a Post in HOW TO ADD DATETIMEPICKER CONTROL IN THE COLUMN OF DATAGRID
On a side note, it's harder to read posts and titles in all caps. -
Replied To a Post in CAN I USE LOOKUP SEARCH CONTROL IN WINDOWS APPLICATION?
What exactly are you trying to accomplish? "Lookup search control" is too vague. -
Replied To a Post in Accessing Arrays
An array is a collection of items. To access individual items you need to specify which index in the collection you want (ranging from 0 to N-1): for (int i … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
> It's interesting because a single post can seem to gather both, causing you to wonder if you deserved either. Indeed, it's a moving scale. > Did you pick your … -
Replied To a Post in Variables not changing when I use them inside loops
The first error that I immediately noticed is you're not initializing your variables to 0. This means that they'll have some random value, and incrementing that value (on top of … -
Replied To a Post in Allowing only Numeric values in a textbox in c#
> Help whom? The original poster is 3 years gone. The original poster isn't the only person a thread might help, that's why we don't close threads after they reach … -
Replied To a Post in windows service
Notification of what, exactly? Does the presence of records in the database trigger a notification or something else? All of the pieces are straightforward, so break it down a bit: … -
Replied To a Post in getchar() in C again.
> I just found it as an interesting a little confusing BUT NORMAL behaviour. Yes, it's normal. I can also see it being confusing because there are three issues involved: … -
Replied To a Post in C sharp Public Variable
The closest you can get would be a static class in C# with those variables as members. Place that class in a shared assembly (if your project uses more than … -
Replied To a Post in Am i vulnerable, Where?
Your code performs precisely zero length, existence, or success checks, so it's absolutely vulnerable to malicious use. It's also brittle in the face of legitimate use. Let's add a few … -
Edited BMI Calculator
Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates … -
Edited Use of getch
what is the usage of getch() function? how to creat recovery softwear? -
Replied To a Post in Spring 2014 Anime Preview
> Things look pretty grim this season. All I need is one good one to be happy. ;) > All my favorite anime series are coming to an end (Strike … -
Replied To a Post in value of undefined object
The answer they're probably looking for is `null`, but the question is ambiguous because it greatly depends on what type is being used, where it's defined, and whether the compiler … -
Replied To a Post in WinForms obsolete attribute on partial class
> I can't set it in the designer too, because that code can/will be regenerated. If the class is obsolete, why would you be changing it such that the generated … -
Replied To a Post in Weird problem
It seems like there's some confusion with the overloading of the & operator. In the context of a type, it means "reference to", not "address of". [More details](http://en.wikipedia.org/wiki/Reference_(C++)) -
Replied To a Post in Popping up Window when not necessary
Only open the form if the login is correct: if (username == textBox1.Text && password == passwordtextbox.Text) { MessageBox.Show("You are now successfully logged in."); Form2 frm = new Form2(); frm.Show(); … -
Replied To a Post in Weird problem
Why would you want its address? That's meaningless to the caller of the method. Anyway, you can get the address on the caller's side using the updated code from my … -
Replied To a Post in Weird problem
That makes much more sense, a realistic example is far more helpful than a broken example. You simply need to remove the address-of operator and returning a reference will work … -
Replied To a Post in Weird problem
> I know it can be solved if function is defined as "int* example()" The error will go away, but the underlying problem will remain. You're referring to an object … -
Replied To a Post in Weird problem
`&a` evaluates to a pointer to `int` rather than `int`, therefore a reference to `int` is an incompatible type. Further, returning a reference to a non-static local variable is an … -
Replied To a Post in E-mail removal
Done. -
Edited About Humming bird algorithm
Hello all, I think almost all the SEOs are hit by this Humming bird algorithm. Can anyone share their ideas to get good ranking after attacked with this algorithm? -
Replied To a Post in Function
From the end of the string walk backward until you find a non-blank character, then overwrite the last blank you saw with `'\0'`. Easy peasy, and [here's a working example](https://code.google.com/p/c-standard-library/source/browse/src/std/string.c#548) … -
Replied To a Post in iostream what does it mean
**i**nput **o**utput **stream**. Concerning the header, `iostream` is where your `cin` and `cout` objects are declared. In general, the iostreams library is C++'s character streaming I/O support mechanism. -
Replied To a Post in problem on c
> i want the code for this program using arrays Then write it. Also, please read our rules concerning homework questions without proof of effort. We won't do these problems … -
Replied To a Post in Hello everyone,still haven't been able to solve the (b) part (switch)
Of course, since you still have the assignment and saying it's stupid won't accomplish much, a reasonable approach would be to compress your range with a loop and table lookup: … -
Replied To a Post in Is the TAB going to replace the laptop ?
Two years ago I'd say no way in hell. These days I'd say that appropriately designed tablets can kill the netbook market, though not the laptop market due to simple … -
Replied To a Post in plz solve this
> You get to do the math! :-) For massive bonus points, incorporate chronological adjustments in your math (eg. leap years, leap seconds). Date and time calculations are shockingly complex … -
Replied To a Post in malloc vs calloc
> I know that `malloc` will allocate 1 block of given size and `calloc` will allocate n block of given size. They allocate exactly the same single block of memory. …
The End.