15,300 Posted Topics

Member Avatar for Zulu79

What sql server are you using? Have you use a server system tool to verify the data was stored correctly? With MySQL there is an admin tool you can use to do that, I'm certain most other SQL servers have something similar. This may not be relevant, but shouldn't there …

Member Avatar for Ancient Dragon
0
106
Member Avatar for <M/>

I gave up on trying to learn web design -- too boring. I like something that gives me a challenge, like c and c++.

Member Avatar for Assembly Guy
0
429
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. [This ](http://en.wikipedia.org/wiki/Programming_language)seems to be a good article which discusses the differences between markup and programming languages.

Member Avatar for jwenting
0
389
Member Avatar for Vasthor

static methods can not access non-static class members because the static method has no idea what instance of the class the variable r belongs to.

Member Avatar for sepp2k
0
230
Member Avatar for Na'Vi

> I look at the elements of list, list[0] is empty, list[1] and list[2] have something in it, and list[3] is invalid. If num_elements == 2 then attempting to peek at elements other than 0 and 1 is looking beyond the end of the allocated memory. You can do that, …

Member Avatar for Ancient Dragon
0
336
Member Avatar for Yogeshp

The reason for the restriction is to keep bots from spamming people via PM. [edit]Sorry, Mike already said that.

Member Avatar for rpcob
0
191
Member Avatar for Ancient Dragon

Suggestion: Give us the option of collapsing the threads shown in My Posts so that it looks more like My Articles. As it is I have to do an awful lot of unnecessary scrolling to find the thread I want.

Member Avatar for diafol
0
125
Member Avatar for beginner91

>what parameters will be used in this function? [Here](http://msdn.microsoft.com/en-us/library/windows/desktop/ms633499(v=vs.85).aspx) is the complete description of that function.

Member Avatar for Ancient Dragon
0
492
Member Avatar for stupendousomega

maybe add another char* to the struct. Then you would create an array or linked list of these structures so that you can search them to find the one named Foo or Bar. Very time consuming and inconvenient. typedef struct { int stat1, stat2, stat3; char name[20]; } X_type; void …

Member Avatar for Ancient Dragon
0
166
Member Avatar for McLaren

I didn't have a problem with the link. I wholeheartedly agree with what that book said. Caution: never, ever drink alcohol on your breaks because any code written by you afterwards will be garbage.

Member Avatar for Ketsuekiame
0
116
Member Avatar for Ancient Dragon

Shouldn't his account be retired? He passed away a couple years ago, I think it's time for DaniWeb to retire his account and move on. I see his name in such places as Endorsements, which don't really mean anything for him any more.

Member Avatar for TrustyTony
1
400
Member Avatar for zahidpp

It's unfortunate you are being forced to learn something that has been obsolete for nearly 20 years now. The problem you posted brings back a lot of fond memories of how we programmed in the late 1980s and 1990s. >Compare and contrast various memory models with reference to pointer allocation …

Member Avatar for Ancient Dragon
0
342
Member Avatar for Ancient Dragon

I just found out on CNN that Old Ironpants has died at age of 87. RIP dear dear lady. No matter what your politics are she made a profound difference in he world.

Member Avatar for Agilemind
1
1K
Member Avatar for cobaltfive

If you are going to plagerize someone else's program then at least change the function names so that people will think you write it for your homework assignment.

Member Avatar for Ancient Dragon
0
957
Member Avatar for The Matrix

According to[ this](http://msdn.microsoft.com/en-us/library/windows/desktop/ms682088(v=vs.85).aspx#_win32_character_attributes), MS-Windows no longer supports blinking text.

Member Avatar for Ancient Dragon
0
217
Member Avatar for Suzie999

That assumes, of course, you know the HWND handle of the window to be restored. If you don't already know it then you can find it by calling [EnumWindows()](http://msdn.microsoft.com/en-us/library/windows/desktop/ms633497(v=vs.85).aspx)

Member Avatar for Ancient Dragon
0
593
Member Avatar for Reverend Jim

That's hardly what one could call a valid source of information. How many of those were reported multiple times for the same death? No way to know because anyone can report deaths via twitter!! Since when did twitter become an authority source for anything? Even if it were true (which …

Member Avatar for Reverend Jim
0
162
Member Avatar for nitin1

they work for me. maybe the problem is your internet provider, or the country in which you live has blocked them for one reason or another.

Member Avatar for nitin1
0
70
Member Avatar for DJ69.ns

What part of that assignment do you need help with? Do you know how to create a class? Do you even know what a class is? If not then you should read your textbook about them. class Hangman { public: // put the public methods here private: // put the …

Member Avatar for Ancient Dragon
0
148
Member Avatar for bluekb

post the first few lines of the data file, if small enough just post the whole thing. > if(count < first) That looks backwards, first is initialized to 0 and count is read from the file. The only way count could be less than first is if the value in …

Member Avatar for bluekb
0
349
Member Avatar for mical700

So, what is the problem? You stated the objective of the program but didn't tell us what's wrong with the code you posted.

Member Avatar for mical700
0
195
Member Avatar for Xantipius
Member Avatar for Chay Hawk

Some concepts take awhile to get straight in your head, pointers are difficult concept for many people. [Here is a tutorial you might try](http://www.daweidesigns.com/cgi-bin/pointers.php?page=1-0). If there are parts of it you don't understand then you should post your questions.

Member Avatar for Ancient Dragon
0
114
Member Avatar for achava

>I have no toolbar, You mean you don't see the purple ribbon just above the editor? If not then post in DaniWeb Community Feedback so that someone can help you with that problem. >I would like this to be in C but not in C++. Why did you post this …

Member Avatar for Ancient Dragon
0
212
Member Avatar for haze man

What is the error? Line `14 is incorrect -- remove the & pointer operator because character arrays are always passed as pointers. You can delete line 17 because when the file is opened the file pointer is already at the beginning of the file, unless you use one of the …

Member Avatar for Ancient Dragon
0
228
Member Avatar for riahc3

IMHO the only word that needs specific censorship is the F word -- that has to be the worst and over-used word in the English language. I can tolerate all other words but that one. Even though he F word can be used in the same sense that deceptikon mentioned …

Member Avatar for Reverend Jim
0
515
Member Avatar for pendo826

In function RemoveDuplicates(), first find the first instance of the two search strings. Only after that one is found do you want to start removing all other instances. That means you will have two loops in the function, not just one.

Member Avatar for Liuqahs15
0
216
Member Avatar for cshrikanth

One way is like this void foo(int option) { int i =0; char *Colstr[] = {"Red","Blue","Green"}; char *Volstr[] = {"1","2","3","3.5","4","4.5","5"}; char *Sndstr[] = {"lo","med","hi","vhi"}; int numSTrings[] = {3,7,4}; char **arrayOfarrays[] = {Colstr,Volstr,Sndstr}; // How should this be declared? for(i=0;i<numSTrings[option];i++) printf("%s\n", ????); // How should arrayOfarrays be referred? }

Member Avatar for cshrikanth
0
139
Member Avatar for 123mehran

I'll write that program or you, after I see you have depposited $1,000.00 USD in my PayPal account.

Member Avatar for ftangpos
-1
183
Member Avatar for srina
Re: Help

Read [an online tutorial](http://mysearch.avg.com/search?q=vb.net+beginners+tutorial&sap=hp&lang=en&mid=db03133e5f194dcda6a432aca5b3bf0e-baa57dcead4b7a5e84023a7a15763c2ac4851706&cid=%7BCFC7EC74-63BD-4D63-AB0D-84A811600F4A%7D&v=15.0.0.2&ds=hk018&d=4%2F15%2F2013+8%3A04%3A14+AM&pr=sa&snd=hp&sap_acp=1&pid=safeguard&sg=1) that teaches you how to read text files. Once you understand how to do that the rest is simple (just add each line to the list box)

Member Avatar for srina
0
138
Member Avatar for Ketsuekiame

What shortcuts? Didn't know DaniWeb had any in the editor other than copy (Ctrl+C)/paste (ctrl+V). Those work ok in Chrome.

Member Avatar for Reverend Jim
0
139
Member Avatar for Mike Askew

I'm confused -- I don't see any changes of the menus (in Chrome anyway). Is this about dockable menus?

Member Avatar for diafol
0
377
Member Avatar for game06

HP Basic way back in 1982. Their version of BASIC was more like PASCAL today. Programs were stored on 8 1/2 inch round diskettes.

Member Avatar for James singizi
0
663
Member Avatar for shanki himanshu
Member Avatar for Octet

Their devices were probably wrong. I've only heard about 2, one of them was a young child.

Member Avatar for Octet
0
523
Member Avatar for Xantipius

I don't have a problem with my first name -- Melvin, but my friends just call me Mel. There was a period of time when the name Melvin was a joke -- [Jerry Lewis](http://www.youtube.com/watch?v=pi-CUlNDhQI) made fun of it all the time for a few years.

Member Avatar for vinnitro
-1
287
Member Avatar for Xantipius

I stopped smoking in 2001, started when I was about 16 or so. I was chain smoker for quite a few years.

Member Avatar for mattster
-1
546
Member Avatar for thexile

It would be a lot easier if you had written the structure all at one time as a binary file instead of one element at a time as a text file. fwrite((char \*)&chemical, 1,sizeof(database).chrmStore); Then to read it back just change fwrite to fread fread((char \*)&chemical, 1,sizeof(database).chrmStore); Now to search …

Member Avatar for Ancient Dragon
0
161
Member Avatar for fr33d0mf0r3v3r

>I have to submit a C project tomorrow It's unfortunate you wanted until the last minute to do your homework. I wounder if your teacher will know you didn't write that code?? What you are attempting to do is called **plagiarism** and not looked upon very kidly by educational institutions.

Member Avatar for Ancient Dragon
0
188
Member Avatar for marvin.gorres.5

You might have to read it in as a string the parse it with something like strtok()

Member Avatar for Ancient Dragon
0
332
Member Avatar for student125

First, change the structure by replacing the int data member with a character array to hold the input string. After you do that replace function parameters that take an integer which is intended to be inserted a node with a character array, for example the second parametr to push() function. …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Ancient Dragon

I want to post an ad to sell my license of vBulletin 4.x in Webmaster Marketplace (at least I think that is where it should go), but it doesn't fit any of the type categories in the dropdown list. How (or where) can I post this? >I have one vBulletin …

Member Avatar for Ancient Dragon
0
123
Member Avatar for student125

Do you know how to read a file? If yes then read the file one character at a time and call push() to add the character to the stack, almost exactly like the code you posted does it from the keyboard. It's just a small change for lines 31-38 of …

Member Avatar for Ancient Dragon
0
863
Member Avatar for Dalek Caan

> When I have spare time (suitable for work, but beyond my 40 hour workweek), should I spend it improving my company's software or should I develop my own side projects? depends on where you are at. If you are in your workplace then do company work because they own …

Member Avatar for Xantipius
0
285
Member Avatar for Papa_Don
Member Avatar for aqidis

lines 19-22. The variable y is used before it is assigned a value. Consequently it just contains some random value. lines 39-48: Why are you reading that file 100 times? Do you really expect the data inside the file will change on you? I understand why you might do that …

Member Avatar for flankechen
0
643
Member Avatar for nitin1

That's just so much bullshit. Science is leading noone to destruction. If God created everything then it follows that God also created science, and doctors, and dentists, and ... It's a little like the gun issue -- guns don't kill anyone, people kill people. God created science, so what do …

Member Avatar for TonyG_cyprus
0
441
Member Avatar for <M/>
Member Avatar for alex910TN

You need to post the code you wrote. Just telling us is next to useless. Also tell us what compiler and operating system you are using. As a rule-of-thum you need to check spelling and capitalization very carefully. Foo() is not the same as foo().

Member Avatar for Ancient Dragon
0
140
Member Avatar for ירון

Is the csv file in the same folder as the \*.exe you are trying to run? If not then you need to tell the \*.exe program where to find the folder. You might have to make a slight change to the c++ program then recompile, for example you could allow …

Member Avatar for ירון
0
500

The End.