15,300 Posted Topics

Member Avatar for kent01981

>>hat should I do?help~~~~ Create the INSERT sql statement. For example: [icode]INSERT INTO table1(name) VALUES("data")[/icode] If that doesn't make much sence to you then you probably need to study SQL language ([URL="http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&source=hp&q=sql+tutorial&btnG=Google+Search"]tutorial here[/URL])

Member Avatar for Ancient Dragon
0
115
Member Avatar for kiranpreddy05

If you are going to do this kind of advanced-level programming then you really need to learn how to debug your own errors. The problem is those two defines on lines 552 and 553. Delete them.

Member Avatar for Fbody
0
239
Member Avatar for ArjunRaja

Use FILE* and associated functions in stdio.h then read the file. Exactly how to go about parsing the file will depend on the format of each line. You could make up your own format or use one that many other programs use, such as [quote] name=ArjunRaja password=1234 age=23 [/quote]

Member Avatar for ArjunRaja
0
118
Member Avatar for scott6480

The problem is [icode]#define small char[/icode]. You can't do this: [icode]int char[/icode], which is what you are doing then you say [icode]int small;[/icode]

Member Avatar for Dave Sinkula
0
206
Member Avatar for BestJewSinceJC
Member Avatar for cwarn23
0
392
Member Avatar for Sarang07

[QUOTE=gerard4143;1040716]You could try something like below...I [/QUOTE] That should produce an error because ' ' is not a valid escape sequence. If you don't like the default spacing then don't use tabs. Do something like this: [icode]printf("%-20s", "Hello World");[/icode] where the text string will be left-justified in a field 20 …

Member Avatar for Sarang07
0
90
Member Avatar for Ashishinani1756

depends on the operating system. *nix use opendir() and readdir(). MS-Windows use FindFirstFile() and FindNextFile(). Don't know about other operating systems. google for those function names and you will find lots of information.

Member Avatar for NicAx64
0
110
Member Avatar for NitaB

line 61 in the code you posted: That function displays random/wrong values because it is using uninitialized variables.

Member Avatar for AAAKsu
0
187
Member Avatar for eliza2044

[QUOTE=AceofSpades19;1041136]The warnings don't really matter, there are usually a few warnings in every application, its the errors that matter. Ruby is a scripting language and Rails is a web development library that is used with ruby[/QUOTE] Wong! Most warnings are really errors. If you don't fix them then you are …

Member Avatar for eliza2044
0
497
Member Avatar for Ancient Dragon

Now that I have Win7 set up the way I want it, is it possible to create an image on a bootable DVD so that if (and when) my computer crashes I can just reinstall everything from that image? I seem to recall something like that was done on my …

Member Avatar for jbennet
0
171
Member Avatar for dark1806
Member Avatar for Ancient Dragon
0
63
Member Avatar for newbie_to_c

line 32 is a string in scientific notation. The value is just too small to be represented in normal double precision, so you have to display it in scientific notation, like this: [icode] printf("%e\n", array[n]); // Here it doesnot [/icode] In the value 2.657374814e-012 the -012 tells you to move …

Member Avatar for newbie_to_c
0
83
Member Avatar for ellimist14

Start your research by reading some of [URL="http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&source=hp&q=c%2B%2B+file+search+algorithms&btnG=Google+Search"]these google links[/URL]

Member Avatar for Ancient Dragon
0
105
Member Avatar for IT seeker

Why don't you solve them yourself? You won't learn anything by cheating.

Member Avatar for ithelp
-5
221
Member Avatar for SpectateSwamp

blud: you need to invest in a blue-ray read/writer so that you can put all those movies on dvd instead of keeping them on your hd.

Member Avatar for Bob_180_Bob
0
218
Member Avatar for squigworm

You should not be using tabs but setw() method. Tabs may display differently on different computers/monitors. I think setw() will give you a consistent appearance.

Member Avatar for squigworm
0
148
Member Avatar for IT seeker

>>which c++ compiler is easy n best? Those are two exclusive requests -- the best compiler/IDE is not necessarily the easiest to use. If you want ease of use then you will probably have to sacrifice power. Dev-C++ is probably the easiest IDE to use, but IMHO VC++ 2008 Express …

Member Avatar for Ancient Dragon
0
116
Member Avatar for spankboy11

It returns gibberish because when that NextTag() returns the array [b]radial[/b] is destroyed, which invalidates tags[1]. What you need to do is allocate memory for the text. Then main() will have to delete[] that memory when its done with it. [code] tags[1] = new char[strlen(radia1)+1]; strcpy(tags[1], radia1); [/code] Another way …

Member Avatar for spankboy11
0
163
Member Avatar for Jalwes

If the item numbers are consecutive (no missing numbers) then you don't need to keep them in an array. Just use the array index of the text array as the item number. One way to do it is like this: [code] std::string item; // get item number, which is ended …

Member Avatar for Jalwes
0
154
Member Avatar for vivek01anand

Deposit $10,000.00 USD in my PayPal account and I will write one for you :)

Member Avatar for Chilton
0
107
Member Avatar for EastJohn

Initialize the array by flooding it with all 0s. [icode]char title[10] = {0};[/icode]

Member Avatar for restrictment
0
120
Member Avatar for Tamaki

variable ptrA needs to have three stars [code] #define maxrows 2 #define maxcols 5 int main() { double a[maxrows][maxcols]; double ***ptrA = malloc(maxrows * sizeof(double*)); int i,j; for(i = 0; i < maxrows; i++) { ptrA[i] = malloc(maxcols * sizeof(double*)); for(j = 0; j < maxcols; j++) { ptrA[i][j] = …

Member Avatar for Tamaki
0
172
Member Avatar for ilikerps

I don't know how its done, but [URL="http://www.daniweb.com/techtalkforums/thread62511.html"]here[/URL] is an example

Member Avatar for davido82
0
450
Member Avatar for The Dude
Member Avatar for JasonHippy
0
193
Member Avatar for thebluestar

>> line 20: fflush(stdin); fflush() is only guaranteed to work with output streams, not input streams. >> line 21: gets(p[i]) Two problems: [list=1] [*] never ever use gets() because it may write beyone the bounds of the array, causing your program to crash. Use fgets() instead. [*] Variable [b]p[/b] is …

Member Avatar for Ancient Dragon
0
161
Member Avatar for ninreznorgirl2
Member Avatar for Ancient Dragon
0
114
Member Avatar for Stefano Mtangoo

win32 api was written in C so that it can be called from lots of other programming languages. >>Does it mean I have to sell OOP for procedural C or wha Yes, unless you want to use something else, such as MFC (not free) or wxWidgets (free).

Member Avatar for Ancient Dragon
0
274
Member Avatar for Dewey1040

The functions in time.h aren't at all difficult to use -- you just need to read about the different functions. time() -- returns the current time in seconds since 1970. It returns the time in an unsigned int (size_t) variable. When you have to get the current time this is …

Member Avatar for Dave Sinkula
1
226
Member Avatar for PDB1982

Post some of the compiler error messages. >>void main() NEVER EVER use void main() [URL="http://www.gidnetwork.com/b-66.html"]Here's why[/URL]

Member Avatar for PDB1982
0
135
Member Avatar for something else

"convolute a gaussian". I looked up the word convolute in wiki, and for computer science you need a Ph.D. in math in order to understand it. Well, I barly passed 1st grade math :)

Member Avatar for msiddi13
0
399
Member Avatar for skarocks47
Re: Menu

You can't call *.cpp files, but methods and functions that reside in the files. If you want to call IBM.cpp then call one of the functions or methods that is coded in that file.

Member Avatar for skarocks47
0
129
Member Avatar for AdRock

If you want the 2d vector to contains either strings or ints, then maybe you need to create a template class.

Member Avatar for AdRock
0
229
Member Avatar for Nika01

Read your textbook about how to write a c++ class. There are also millions of tutorials on the web you can read. Don't be so lazy and do a little research and reading.

Member Avatar for Nika01
-2
61
Member Avatar for panagos

There are options in VC++ to produce several kinds of assembly code from the C or C++ code. I don't use NetBeans but I would imagine it has an option too.

Member Avatar for panagos
0
89
Member Avatar for cwarn23

I noticed it was a little slow today but nothing like it has been in the past.

Member Avatar for BestJewSinceJC
0
220
Member Avatar for rohank23

My guess is that you are using the wrong sql statement. If you are using Oracle then you need to read [URL="http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html"]this article[/URL] and sample program.

Member Avatar for rohank23
0
117
Member Avatar for ab00120

SaveFileDialog() doesn't save anything -- it's just a dialog box that lets you nagivate to the folder where you want the file saved and give the file a name. After SaveFileDialog() returns to your program your program must get the complete path/filename from the SaveFileDialog class, open the file for …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for NinjaLink

We don't have the definition of your queue class so can't really tell if some of those are right or wrong. 2. Probably wrong. You are not supposed to delete the item from the queue. Just retrieve it. There is probably another way to get the item out of the …

Member Avatar for NinjaLink
0
179
Member Avatar for techick

This is a very simple programming problem which can be done with only 8 lines of code! All you have to do is create an array of 255 ints then use each letter of the string as an index into the array. So if you have 'A' then all you …

Member Avatar for Ancient Dragon
0
95
Member Avatar for Ancient Dragon

Since its no longer possible to use code tags without line numbers, suggest you change quote tags to retain spaces and tabs like code tags. I'm a little surprised that was not how quote tags should have worked anyway.

Member Avatar for Dave Sinkula
0
490
Member Avatar for narendra.shah

Suggestion: Create a web site using MySQL database that stores member information.

Member Avatar for ithelp
-2
94
Member Avatar for blackst0rm

Step 1: Create a console project. File --> New --> Project. Project types: select Win32. Templates: select "Win32 Console Application". Near the bottom of the screen enter a project name and location. Then press Ok button. Step 2: On this window just click Next Step 3: Application Settings window: Uncheck …

Member Avatar for Ancient Dragon
0
263
Member Avatar for suganthan901307

the output you posted is wrong. Here is the correct output. Had you bothered to compile and run that program you would have seen it too. [code=text] The contents of the array are : 1 5 0 2 4 -2 3 3 0 4 2 2 5 1 4 [/code]

Member Avatar for Ancient Dragon
-5
119
Member Avatar for jodie121997

I would use a typedef [code] #ifdef SIZE_32 typedef __int32 inttype; #else typedef __int64 inttype; #endif int main() { inttype a = 0; } [/code]

Member Avatar for Aia
0
112
Member Avatar for discovery-power

You created a windows gui project, not a windows console project. Start again, but this time create the right kind of project.

Member Avatar for Fbody
0
131
Member Avatar for just4why

line 17 is probably the wrong way to determine if the file is empty or not. What you should do is seek to end of file then get the file position. [code] instaffile.seekg(0, ios::end); size_t sz = instaffile.tellg(); if( sz == 0) { staffid = 1; return; } [/code] The …

Member Avatar for just4why
0
112
Member Avatar for cartman714

[QUOTE=csurfer;893789][B]I just hope I could key in the same number of characters from keyword in 30 sec[/B].At least that would help me to code in hell lot of code in minutes ;)[/QUOTE] And with a lot more bugs to fix :)

Member Avatar for GrimJack
0
300
Member Avatar for tygerberg

I've heard about it but have never seen it played. It appears to be a simple form of American Football, minus all the body protection. Ouch!

Member Avatar for GrimJack
0
180
Member Avatar for Missy!

The main reason parents don't want their minor-age kids to have sex is because sex between opposites produces babies. For a girl that will rune your life forever and ever. And guess who will get stuck with the job of raising the bastard kids? Yes, you got it -- your …

Member Avatar for kalia247
-9
241
Member Avatar for zandiago

Spanking? Absolutely -- beat the living hell out of the little crumb snatchers :) But if you do that your kids will hate you for the rest of your life.

Member Avatar for BestJewSinceJC
0
889

The End.