15,300 Posted Topics
Re: 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 … | |
Re: I gave up on trying to learn web design -- too boring. I like something that gives me a challenge, like c and c++. | |
Re: 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. | |
Re: 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. | |
Re: > 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, … | |
Re: The reason for the restriction is to keep bots from spamming people via PM. [edit]Sorry, Mike already said that. ![]() | |
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. ![]() | |
Re: >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. | |
Re: 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 … | |
Re: 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. | |
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. | |
Re: 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 … | |
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. | |
Re: 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. | |
Re: 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. | |
Re: 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) | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: >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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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? } | |
Re: I'll write that program or you, after I see you have depposited $1,000.00 USD in my PayPal account. | |
Re: 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) | |
Re: What shortcuts? Didn't know DaniWeb had any in the editor other than copy (Ctrl+C)/paste (ctrl+V). Those work ok in Chrome. | |
Re: I'm confused -- I don't see any changes of the menus (in Chrome anyway). Is this about dockable menus? ![]() | |
Re: 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. ![]() | |
| |
Re: Their devices were probably wrong. I've only heard about 2, one of them was a young child. | |
Re: 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. | |
Re: I stopped smoking in 2001, started when I was about 16 or so. I was chain smoker for quite a few years. | |
Re: 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 … | |
Re: >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. | |
Re: You might have to read it in as a string the parse it with something like strtok() | |
Re: 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. … | |
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 … | |
Re: 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 … | |
![]() | Re: > 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 … |
Re: you're going to have to make searchtype public global so that Form2 can read it. | |
Re: 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 … | |
Re: 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 … | |
Re: 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(). | |
Re: 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 … |
The End.