15,300 Posted Topics

Member Avatar for GrimJack

license plates are publically available -- anyone anywhere can track them. You have no right to privacy when in your car on public roads. If it's visible from outside the car then there is no privacy violation. Big Brother is not going to watch you unless you give him a …

Member Avatar for diafol
0
624
Member Avatar for sujan.dasmahapa
Member Avatar for Ancient Dragon
0
355
Member Avatar for new_developer

>If a boolean return type function contains too many returns in it, does it cause any problem No -- The acual value of true and false is not defined, nor is it guarenteed to be either 0 or 1. It's actual value depends on the compiler -- 128 may be …

Member Avatar for Ancient Dragon
0
220
Member Avatar for charles.dupree.37

Your problem is on line 16 -- you are tring to output the wrong prompt variable. Just delete line 14 and change line 16 to output Prompt (capital 'P').

Member Avatar for rubberman
0
850
Member Avatar for Asus93

You will find the explanation of them all [here](http://www.cplusplus.com/reference/istream/istream/) >while(cin.get() != '\n') The above is getting characters from the keyboard one at a time until '\n' (Enter key) is reached.

Member Avatar for Ancient Dragon
0
248
Member Avatar for nitin1

If this is your first job and applying for entry level position then don't be overly concerned about your technical skills. Companys don't expect you to be expert for entry-level job. Have you finished your college bachelor's degree yet? That, along with the other things Jorge mentioned are what you …

Member Avatar for deceptikon
-1
210
Member Avatar for piczim
Member Avatar for Ancient Dragon
0
129
Member Avatar for aianne

What version of Windows is that? I have never heard of windows having more than one hardware profile. How can that happen? [edit] Oh, I see from [here](http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/hardware-profiles-in-windows-7/438f865a-6067-4f66-b901-f0e7eaafc7af) only XP supports multiple profiles. I still don't know why there should be such a thing.

Member Avatar for Ancient Dragon
0
274
Member Avatar for sushilsth

my guess is that the data types in the database table are not the same as the types in your sqlstring. Are all the column data types in the table strings?

Member Avatar for sushilsth
0
476
Member Avatar for Spacecrawler

You begin your research reading the methods and properties from msdn ([link](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx)) Look though the list of properties and method to find the one that returns the text from the selection field of the combobox. Then all you have to do is copy the text into a textbox (a simple …

Member Avatar for Spacecrawler
0
103
Member Avatar for Vinod Supnekar

The code has undefined behavior because check() is returning a pointer to an object that doesn't exist after check() returns to it's caller. That is illegal in C and C++.

Member Avatar for Gonbe
0
196
Member Avatar for حسنين_1

char\* name is a pointer, while char name[] is illegal because it is attempting to create an array of 0 elements. Some compilers may support declaring arrays with 0 elements, but that is an extension of the standards. It's quite dangerous to use non-standard constructs because that makes the program …

Member Avatar for Ancient Dragon
0
119
Member Avatar for Rahul47

>then it goes back to the beginning of the line with the "\r" erasing the output Not no any computer I have used. \r simply moves the cursor back to the beginning of the line, everything on the line remains intact.

Member Avatar for Rahul47
0
128
Member Avatar for Dani
Member Avatar for Dani
8
326
Member Avatar for nitin1

Ignoring optimization, I would say code 2 is minutely faster because it doesn't have to initialize the inner loop as often as code 1. Other than that, they are both the same.

Member Avatar for rubberman
-1
156
Member Avatar for nchy13

Check your text file -- your program ran ok for me. I have a text file that lists US state names and their abbreviations. Ran your program with "5 states.txt" and it printed the last 5 lines of that file. If the text file contains blank lines at the beginning …

Member Avatar for nchy13
0
825
Member Avatar for Ancient Dragon

What does that red flag represent, the one next to the word "Featured" beneath my avatar???

Member Avatar for diafol
0
269
Member Avatar for jony_munsi

> but is there any other possible easy way to solve this problem What problem? You haven't posted the problem. If all you want to do is get an array of N random characters then the code you posted is way too complicated. All you need is a simple loop …

Member Avatar for Ancient Dragon
0
158
Member Avatar for brenzy
Member Avatar for jony_munsi

[Read this tutorial](https://computing.llnl.gov/tutorials/mpi/) to find out about MPI. I don't know anything about it either, so I can't answer any questions you may have.

Member Avatar for rubberman
-1
175
Member Avatar for imrankhan.mahzoon

Which part of your assignment don't you understand? Do you know how to create an array? Do you know how to get user input? You need to post the code that you know how to write then ask about what you don't understand. Asking us to write the program for …

Member Avatar for chuksjoe
-3
100
Member Avatar for حسنين_1

Homework? A prototype tells the compiler about a function such as its return value and parameters. Function prototypes are required if the function has not been previously defined. For example void foo(char* s) { printf("%s\n", s); } int main() { foo("Hello"); } In the above snippet a function prototype for …

Member Avatar for Ancient Dragon
0
90
Member Avatar for Fjdd

You need to get a [resource editor](https://www.google.com/#output=search&sclient=psy-ab&q=free+windows+resource+editor&oq=Free+Windows+Resource+edito&gs_l=hp.1.0.0j0i22i30.979.979.0.4628.1.1.0.0.0.0.159.159.0j1.1.0....0.0..1c.1.20.psy-ab.3Nulper_4fo&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.49478099%2Cd.eWU%2Cpv.xjs.s.en_US.c75bKy5EQ0A.O&fp=f280e31bc91aff1d&biw=1134&bih=578). If you want to create it manually, [here](http://www.winprog.org/tutorial/) is a popular tutorial.

Member Avatar for Fjdd
0
4K
Member Avatar for nosfa

Those are called arrays. AFAIK yes, you can create arrays of buttons or other controls.

Member Avatar for tinstaafl
0
174
Member Avatar for bishopu19
Member Avatar for Ancient Dragon
0
56
Member Avatar for nchy13

The pointer itself is passed by value, any changes you make to the pointer in reverse() is not visible to the pointer that was declared in main(). I ran your program and it looks like it works as expected. If you want reverse() to change the pointer that's declared in …

Member Avatar for deceptikon
0
167
Member Avatar for ric24

what kind of program do you have? win32 api or Windows Forms (which is c++/CLR, not c++ standard). There are hundreds of ways to do what you asked, post some code to show us what you are trying to do. If your program is win32 api then function A() needs …

Member Avatar for Ancient Dragon
0
145
Member Avatar for mrkm1188

Maybe [this](http://www.vbforums.com/showthread.php?616021-Setting-file-and-folder-permissions) is what you are asking?

Member Avatar for mrkm1188
0
118
Member Avatar for Ancient Dragon

I have a program with DataGridView which is bound to MS Access table. When I addept to update I get "Syntax error in INSERT INTO", but no explanation about the syntax error. Column names in the table have a space in them, such as "Last Name". Could that be the …

Member Avatar for Ancient Dragon
0
525
Member Avatar for raging_the_fire

> so I can use it in a web request? How does that relate to the code you posted? Why would you want to put random characters in a web request (URL??)? Use a temp buffer. 1. copy the first part of the string into the temp buffer 2. Add …

Member Avatar for iamthwee
0
3K
Member Avatar for BigPaw
Member Avatar for Tcll5850

You woudn't have all those problems if you used a REAL computer instead of that stupid wii.

Member Avatar for Tcll
0
238
Member Avatar for GrimJack

>You don't need a gun to live so this is an incorrect comparison. You will if you live in St. Louis, Missouri or Washington D.C. You people only hear about high crime rates in the big cities of America. There are millions of people living without fear all over the …

Member Avatar for Agilemind
0
375
Member Avatar for nitin1

I would use a temporary char array -- after you find the beginning of the string to be replaced copy the first part of the original string into the temp array, copy the replacement string into the temp buffer, then finally copy the remainder of the original string Maybe a …

Member Avatar for rubberman
-1
707
Member Avatar for andrew12s

That, and replace "void main" with "int main" and use cin instead of fscanf. There's nothing else different between C and C++ in that program.

Member Avatar for rubberman
0
293
Member Avatar for Suzie999

[This article](http://www.codeproject.com/Articles/19766/Win32-splitter-window-project) may give you some hints to how you can do it. It creates a splitter window with a tree-view in the left side and something else in the right side. Maybe you can embed IE in one of the two sides. [Here](http://www.codeproject.com/Articles/3365/Embed-an-HTML-control-in-your-own-window-using-pla) is how to embed an IE …

Member Avatar for Suzie999
0
4K
Member Avatar for nitin1
Member Avatar for nitin1

>`printf("%u %s",&"hello",&"hello");` You don't need the & symbol because character arrays are ALWAYS passed by addfess. When you use the & in the above it will pass the address of the address, which is not what you want. `printf("%p %s","hello","hello");` Also note that %p prints the address of the string

Member Avatar for deceptikon
0
204
Member Avatar for weblord

I use google chrome the most, but sometimes IE when I visit web sites that support only IE. I don't actually see much difference between the two.

Member Avatar for stultuske
0
204
Member Avatar for laurel.jackson.12

To go back to Form4 from Form5 just close Form5 -- you don't need to create a new Form4 because it's already in memory. private: System::Void btnBack_Click(System::Object^ sender, System::EventArgs^ e) { this->Close(); }

Member Avatar for Ancient Dragon
0
144
Member Avatar for themathprof

[hint](http://social.msdn.microsoft.com/Forums/vstudio/en-US/7cf65aeb-a89c-4a27-924b-4808e4fa28cc/insert-a-picture-into-a-word-documentpdf) -- you should upgrade to fee vb.net 2012 express

Member Avatar for Ancient Dragon
0
78
Member Avatar for johans22

One way to do it is like below. I'd also put the number of elements in each array into the combined structure so that you know how big the arrays are at runtime. typedef struct _elems { int a; int b; int c; }elems; typedef struct _elms { elems *e1; …

Member Avatar for Ancient Dragon
0
145
Member Avatar for deceptikon

Why do adults like watching cartoons? That's all anime is -- just another name for children's cartoons.

Member Avatar for Ketsuekiame
0
202
Member Avatar for Ancient Dragon

Can you set up a "IT Equipment/Software For Sale" forum, something similar to Creg's List or Angie's List, but probably limited to IT related stuff? You already have a Webmaster Marketplace, but that is very limited.

Member Avatar for Dani
0
83
Member Avatar for Casperjames

What version of MS-Windows did you wrikte the program on? Visual Studio 2012 uses .NET Framework 4.0 or newer, so you might have to install .NET 4 on that XP computer. More info [here](http://smallestdotnet.com/). It will tell you what version of .NET your IE browser is using. You might visit …

Member Avatar for Casperjames
0
2K
Member Avatar for bettybarnes
Member Avatar for poloblue
0
481
Member Avatar for Labdabeta

>I realized that stdio functions (and thus their fstream counterparts) use size_t to indicate the position in a file, If you use win32 api function WriteFile() and ReadFile() then it uses 64-bit addresses which is two size_t integers. You will find there is no such thing as unbound storage because …

Member Avatar for Labdabeta
0
213
Member Avatar for Suzie999

you should call WaitForSingleObject() instead of Sleep(). Also you need to validate ShellExecute() did not return an error number.

Member Avatar for Suzie999
0
1K
Member Avatar for Ancient Dragon

The other day I installed a second internal hard drive so that I can put ubuntu on it. The primary hd has windows 7. Using the Ubuntu windows installer everything installed without a problem. When I rebooted I got a lot of error messages during bootup and finally the boot …

Member Avatar for Ancient Dragon
0
154
Member Avatar for blackcathacker

Be careful what you wish for, you might just get it. > Knowing all the science that will ever be known, was known, and known right now Who would believe you? You would probably be put into a straight jacket and locked up in a padded cell for the rest …

Member Avatar for james.lu.75491856
0
378

The End.