3,183 Posted Topics

Member Avatar for asa88

> `feof(stdin)` can be used to check if the input was read from the file or keyboard. No, not really. It's not uncommon to signal end-of-file from the keyboard. For example, run the following program and watch it print "Yes" when you signal end-of-file using ctrl+z (Windows) or ctrl+d (POSIX): …

Member Avatar for deceptikon
0
362
Member Avatar for billionair

> All of you includes are depreciated. Deprecated, not depreciated. Also, since <iostream.h> and <conio.h> were never standard in the first place, they cannot be deprecated. They're just non-standard.

Member Avatar for deceptikon
0
209
Member Avatar for gilangtitoe24011994

The error tells you what line it happens on, so take a look at that code, the contents of the assertion, and correct the bug. You didn't include any useful information, so I can't help more than that.

Member Avatar for deceptikon
0
2K
Member Avatar for vinay7868

What kind of barcode? Are you working with an image or text? Are you actually creating a barcode or reading one? Your question is incredibly vague.

Member Avatar for vinay7868
0
449
Member Avatar for tux4life

I'll be committing a fix for this display bug shortly. Pending Dani's approval it should be resolved in the next push to production.

Member Avatar for tux4life
0
241
Member Avatar for harry.lloyd.7503
Member Avatar for MandrewP
1
253
Member Avatar for aj.jaswanth

I assume by "booming" you mean popularity. In what context are we talking about? There are a lot of different places programming languages are used in very different ways, and a number of variables could affect which language is "booming" in a certain area and for certain people.

Member Avatar for IIM
0
226
Member Avatar for robert.mcguire.3990

> `noOfRows = da.Fill(ds, "tblCustomers");` > No value given for one or more required parameters. [Documentation](http://msdn.microsoft.com/en-us/library/system.data.common.dataadapter.fill.aspx) is amazing. There's no overload that takes just a DataSet and a string.

Member Avatar for deceptikon
0
177
Member Avatar for evilguyme

I'm hesitant to help you now that I know your intention for learning assembly is hacking.

Member Avatar for evilguyme
0
107
Member Avatar for Minko

Well, for starters I wouldn't use the TextChanged event because that would result in a lot of hits on the database for intermediate text. For example, if the user types "foobar", you'd go back and do a fuzzy lookup on the database *six times* when you really only wanted *one* …

Member Avatar for deceptikon
0
161
Member Avatar for 3e0jUn

Wildcards are interpreted by the shell before your program gets a chance to touch them. If you want them passed as literals, then escape them so that they're not interpreted as wildcards: $ python ./arch.py install \*

Member Avatar for deceptikon
0
199
Member Avatar for terabyte

> There is no pass by value when it comes to a function with array as the parameter. It's the other way around. There's no pass by reference in C, period. When passing an array, you're passing the address as a pointer *by value*.

Member Avatar for deceptikon
0
165
Member Avatar for evilguyme
Member Avatar for tom.hank.315213

> `define('DB_NAME', 'lol);` Count the single quotes in that line.

Member Avatar for tom.hank.315213
0
88
Member Avatar for asifalizaman

> You should use <iostream> and <cmath> (all C++ standard headers don't have the .h, and all those taken from C (like math.h, stdlib.h, stdio.h, etc.) also omit the .h and are prefixed with the letter c). It's also important to remember that some compilers (Microsoft's in particular) "helpfully" don't …

Member Avatar for asifalizaman
0
352
Member Avatar for HankReardon

> With three programming courses under my belt will I be able to find a job out there in the real world? Getting a programming job has less to do with how much you know about programming and more to do with selling yourself. So while I'd say that right …

Member Avatar for deceptikon
0
351
Member Avatar for ellenski

At its simplest you'd have something like this just to store the characters: #include <stdio.h> #define EXPR_MAX 255 int main(void) { FILE *in = fopen("c:\\test1.txt", "r"); if (in) { char expr[EXPR_MAX]; size_t n = 0; int ch; while ((ch = getc(in)) != EOF) { expr[n++] = (char)ch; } fclose(in); /* …

Member Avatar for deceptikon
0
279
Member Avatar for dan.gerald
Member Avatar for MRehanQadri

Using the initializer list you can take advantage of initialization rules: #include <iostream> using namespace std; struct a { double id; int tag; char array[10]; }; int main() { a var1 = {100, 1, "The City"}; a var2 = var1; cout << "var2.id = " << var2.id << endl; cout …

Member Avatar for MRehanQadri
0
100
Member Avatar for MRehanQadri

> But can you tell me why in the definition of f1 (in your code) p's address has not been passed and still it's passed by reference? The entire point of using another level of indirection is so that you can access the original object. If you already have that …

Member Avatar for MRehanQadri
0
180
Member Avatar for asifalizaman

[Read the documentation](http://msdn.microsoft.com/en-us/library/windows/desktop/aa376868(v=vs.85).aspx), it includes [an example](http://msdn.microsoft.com/en-us/library/windows/desktop/aa376871(v=vs.85).aspx).

Member Avatar for deceptikon
0
463
Member Avatar for almighty_08

So you're supposed to do this project, but you're asking for someone to send it to you? I'm sorry, but that sounds a lot like you're asking others to do your project for you.

Member Avatar for deceptikon
0
207
Member Avatar for Ashenvale

Assuming the time part of your date is consistent (such as midnight), it's a simple check against getdate(): "select * from usernames where [Username] = '" & TextBox2.Text & "' and [Password] = '" & TextBox1.Text & "' and [ExpiresOn] >= getdate()" You might also consider using parameterized queries instead …

Member Avatar for Ashenvale
0
140
Member Avatar for AzizTitu

> Yes, it is possible but it is not recommended. Why? > It is better to have dynamically allocated array in this case. Again, why? Please assume that the compiler supports C99, since the obvious "it's not portable" prior to C99 is obvious. > `int *array = malloc(i*sizeof(int)); // alloc …

Member Avatar for deceptikon
0
241
Member Avatar for <M/>

According to [the manual](http://msdn.microsoft.com/en-us/library/70x4wcx1.aspx) WriteLine() returns void, you can't assign that to `answer[i]`.

Member Avatar for tinstaafl
0
221
Member Avatar for timwhelan

I assume you're asking about the ternary operator. This: 'left': (direction === 0) ? '-100%' : '100%' Is roughly equivalent to this: if (direction === 0) { 'left': '-100%'; } else { 'left': '100%'; } So it's just a expressionized version of an if..else statement.

Member Avatar for lambing
0
173
Member Avatar for craig.durnin.1
Member Avatar for mc3330418

> What I don't understand is, would a real world program have a default constructor AND a constructor with parameters? Certainly, if there's a case where the class could initialize itself to a predictable state without help from the caller. One example might be an empty string, so std::string has …

Member Avatar for mc3330418
0
143
Member Avatar for sami youssef

[How would you do it on paper?](http://www.wikihow.com/Convert-from-Decimal-to-Binary) The first task is to understand the problem and solve it manually, step by step. Then you'll be in a better position to translate those steps into C++.

Member Avatar for rubberman
0
149
Member Avatar for ellenski

> I would appreciate it if someone can put more detailed comments in this source code to help me better understand it. Sorry, but no. There won't always be someone around who's both capable and *willing* to read, understand, and recomment large amounts of code just to make things easier …

Member Avatar for deceptikon
0
307

The End.