15,300 Posted Topics

Member Avatar for MasterHacker110

A good place to begin is [here]( http://winprog.org/tutorial/). That will only scratch the surface of MS-Windows programming. A better way to learn it is to buy a book from amazon.com. I also love www.codeproject.com, probably the largest repository of free MS-Windows code on the internet.

Member Avatar for MasterHacker110
0
163
Member Avatar for Andy90

line 5, form2. That is not the same as the original instance of form1, which is why you don't see the changes when from1 returns. What you want to do is to set a public int in form2 that can be read by form1 when it regains control, then use …

Member Avatar for Mitja Bonca
0
158
Member Avatar for Tommeh

> I put the -9's there as sentinel values if that's right. I don't think you need that. The instructions states the exact number of grades in each category, so all your program has to do is read that quantity of numbers. No need for a sentinel value. setProg() -- …

Member Avatar for Tommeh
0
144
Member Avatar for Dani

Thatks -- I noticed that change and thought my eyes were decieving me :) Now, how about adding spell chedcking???

Member Avatar for Dani
4
196
Member Avatar for zachattack05

Cool! Some of those are very true, especially the line graphic of alcohol consumption vs progframming skill.

Member Avatar for pritaeas
2
140
Member Avatar for ogrishmania

If DATA is defined as int, struct * can not be assigned the value of int without a typecast. line 19: You can not free() individual elements of an array. The number of elements of an array are fixed when the array is declared and can not be changed. The …

Member Avatar for Ancient Dragon
0
135
Member Avatar for Rasool Ahmed

What is wrong with using win32 api functions FindFirstFile() and FindNextFile() ? Can't DDK programs access win32 api?

Member Avatar for Rasool Ahmed
0
887
Member Avatar for compsci91

Only limited way can class A use class B before class B is declared, class A can declare a pointer to an object of class B but that's about the extent of it. ~~~ class B; // pre-declare class class A { public: B* b; // declare a pointer to …

Member Avatar for mike_2000_17
0
126
Member Avatar for Aterin

For the second part you could use a regexp (regular expression) library so that you would search for either b*d or b?d, which * means any number of characters, and ? means only one character. So b?ne would find both bone and bane, whiew b*e whould find all the strings …

Member Avatar for Aterin
0
289
Member Avatar for saamsonn

You can not concantinate string2 to the end of string1 because (1) string1 is a string leteral so most likely its stored in read-only memory, and (2) there is not enough room in string1 to contain both strings. In main() try this: char string1[80] = "my"; The above allows you …

Member Avatar for Ancient Dragon
0
185
Member Avatar for Ninetie

Sort both strings so thzt the characgters appear in the same order in both strings, then eliminate duplicate characters. After that, convert both strings to the same case, e.g. upper or lower, doesn't matter which. Finally call strcmp() to compare them. Another method is to count the number of occurrences …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for Philippe.Lahaie

I'd like to see the list of reputation comments in our Profile similar to the one that was in vBulletin.

Member Avatar for Dani
0
254
Member Avatar for BryantFury

You can't actually delete an element from the array. All you can do is mark it as an unused element. There are numerous ways to do that and it doesn't really matter which one you use as long as your program recognizes the element as being unused. For example, in …

Member Avatar for BryantFury
0
275
Member Avatar for Sunshine2011

use brackets or declare ofstream object before the switch statement. ~~~ switch(x) { case '7': { ofstream filestream("Test.txt",ios::out|ios::app); //... } break; case '8': cout<<This is a test."; break; } ~~~

Member Avatar for Ancient Dragon
0
93
Member Avatar for t_daniweb

>This is what I have so far, where I'm I going wrong? Don't know. What kind of problems are you having? If compiler error(s) then post the first two or three errors including the line numbers on which they appear.

Member Avatar for t_daniweb
0
613
Member Avatar for xtreme-one

Learning a programming language is not easy for most people, especially if you try to learn it by yourself. Forturnately, you have lots of help such as DaniWeb on the internet today. A good place to start is by reading one of the books suggested in this thread: http://www.daniweb.com/software-development/cpp/threads/70096/c-books Take …

Member Avatar for Ancient Dragon
0
183
Member Avatar for Huston

>Hey guys, I am making a simple c++ compiler with Visual Studio 2010, but I am stuck on the converting it to assembly bit(with c++ coding). The compiler will generate an assembly code listing for you. All you have to do is go to Projects --> Properties (at the bottom …

Member Avatar for Huston
0
4K
Member Avatar for amyparker1234

>Your requirements are pretty steep (challenging) for someone brand-new to C++ My guess is that course is NOT intended for beginners. Most likely an advanced programming course for which the OP does not have the prerequisites. If it is a beginner's course then fire the instructor and drop the course.

Member Avatar for Ancient Dragon
0
155
Member Avatar for swissknife007

How much or little work that is going to be is almost impossible for anyone to say without seeing the actual code, knowing the differences between the two versions of the files, and which functions your program uses. For example, are all the SDL include files listed in one single …

Member Avatar for Ancient Dragon
0
164
Member Avatar for alanso

Alot will depend on how much c++ you already know. Do you know about classes and <vector> yet? Start out by generating the two required text files. Then write a very simple program that opens and reads them. Don't get overwhelmed by the complexity of the program. Code, compile and …

Member Avatar for alanso
0
121
Member Avatar for Ancient Dragon

[ Rabbits](http://www.facebook.com/photo.php?fbid=417079118321547&set=a.223098324386295.105971.205344452828349&type=1&theater). Posted on Facebook by George Takel from Star Trek

0
43
Member Avatar for ~s.o.s~

>And we're forgetting one ... Congrats to Sanjay for being promoted to co-Administrator! :) Does that mean we get to curse at him when things don't go right :) LOL Just kidding. Congratulations Sanjay. You have been one of the best contributors here and you deserve the promotion. And congrats …

Member Avatar for Nick Evan
1
323
Member Avatar for dheredhere

The easiest way is not to return the matrix at all, but declare it in main() and pass it in as a parameter. This works becuse arrays are always passed by reference, never by value. ~~~ void matrixGenerato(int matrix[][3]) { } int main() { int matrix[3][3]; matrixGenerato(matrix); } ~~~

Member Avatar for deceptikon
0
324
Member Avatar for jdh1231

>The problem is that winner will never have the '1' or '0', it will have character that has ascii value 1 or 0 Huh? '1' has an ascii value of 48, 1 does not. Unless I missed something I don't see that as a problem with that program as long …

Member Avatar for Marcusflint
0
199
Member Avatar for simadox
Member Avatar for JorgeM
0
199
Member Avatar for hwoarang69

strcmp() won't work for you because it expects an exact match. you can call strstr() to see if the line contains "-hello". If it does, then check for anything following to see if something other than spaces. You may need to do additional checks if there is a chance that …

Member Avatar for Ancient Dragon
0
142
Member Avatar for MasterHacker110

*.txt and *.ini files should be simple and straight forward to process as you described in your post. I don't know how the subject of this thread fits into that. *.docx files are more problematic because the are binary files, not text files. Other languages such as VB.NET and C# …

Member Avatar for mike_2000_17
-1
183
Member Avatar for hwoarang69

Your first error is assuming there are exactly 20 characters in the line. What if there are 25 spaces? Or only 1 character and it is a space? To solve that problem check for end-of-line terminating character '\0'. ~~~ int empty_line(char line[]) { int i; for(i = 0; line[i] != …

Member Avatar for Ancient Dragon
0
82
Member Avatar for Becha
Member Avatar for Ancient Dragon

I can't save any posts tonight. Cleared my browsing history but that didn't help.

Member Avatar for Ancient Dragon
0
147
Member Avatar for MasterHacker110
Member Avatar for pce369

Advice? Yes,just do as you were told. What don't you understand about the instructions? What have you done so far to correct your program? >node* start; //but arent these the two //pointers being referred to? No. He means to put two pointers inside he structore, one for next and the …

Member Avatar for Labdabeta
0
430
Member Avatar for xEffrego
Member Avatar for WaltP
0
2K
Member Avatar for mc3330418

>Code blocks are created by indenting at least 4 spaces ... and can span multiple lines Or just start the code in ~~~ and end with ~~~. You don't have to manually indenmt the code that way > //how do i get it to output? I don't understand the question. …

Member Avatar for mc3330418
0
344
Member Avatar for Tygawr
Member Avatar for NachoLobato

Hint ~~~ #include <iostream> #include<ctime> #include <string> #include <iostream> #include <ctype.h> #include <cstring> #include <locale> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> using namespace std; int main() { char aword[] = "House"; char bword[] = "university"; char cword[] = "computer"; char dword[] = "text"; char eword[] = "picture" char …

Member Avatar for Ancient Dragon
0
219
Member Avatar for irffan

You might check [CodeProject](http://www.codeproject.com/search.aspx?q=pie+menu&x=0&y=0&sbo=kw) to see if they have anything useful for you. That site has the largest repository of C/C++ code for MS-Windows that you can find on the internet. Well work bookmarking if you use that os.

Member Avatar for Ancient Dragon
0
55
Member Avatar for Dani

I don't really care one way or the other. I think the old style of Link button was easier and more intuitive to use, but I'll get accostumed to the way it is now. About the only thing I use is code tags, Link, Quote, and on rare occasions List.

Member Avatar for Dani
0
526
Member Avatar for Tygawr

1) Use 64-bit version of VC++, I think its version of fstreams support huge files 2) call win32 api read/write functions which support huge files (see ReadFile() and WriteFile())

Member Avatar for BobS0327
0
235
Member Avatar for akaicewolf

You need a while loop to find the correct spot. On line 5 just do a return. Then start the while loop to find out where to put the new node, like lines 30-32. temp -> price = price; if((*head) == NULL && (*tail) == NULL) { temp->next = NULL; …

Member Avatar for akaicewolf
0
128
Member Avatar for POOPdeek

what operating system and compiler do you have in mind? And do you want a command-line text editor, something like edlin.exe or a graphical program like Notepad.exe?

Member Avatar for Ancient Dragon
0
326
Member Avatar for jodzjcm

Why did you create so many threads for the same problem? It just confuses people. see my answer here: http://www.daniweb.com/software-development/c/threads/419598/linked-list-sorting

Member Avatar for Ancient Dragon
0
96
Member Avatar for jodzjcm

Just use a normal sort algorithm, there are lots of them and google will show you the c/c++ source code for most of them. When its time to swap then just swap the data instead of the whole node. If you are not allowed to do that then you will …

Member Avatar for Ancient Dragon
0
226
Member Avatar for dakerao

that makes no sense at all -- you can't put if statements in arrays. Post an example of what you want to do.

Member Avatar for MandrewP
0
198
Member Avatar for jasleen_kaur

You reopened (renamed) stdin to be a text file, therefore cin is getting the data from text file intead of keyboard. Check cin for errors. Also check that text file to see that it contains numeric digits, if it doesn't then cin will fail.

Member Avatar for jasleen_kaur
0
1K
Member Avatar for ttrrp

Post your program so that we can see what you tried to do. Its likely either 1) the propgram did not compile because of errors, or 2) the program just doesn't do what you thought it should do. But we won't know until you show us your program.

Member Avatar for ttrrp
0
242
Member Avatar for Labdabeta

I'm on IE9 now, and checking if I can post this. [edit] ^^^ no problems.

Member Avatar for Dani
0
311
Member Avatar for Pgmer

See this thread http://www.daniweb.com/community-center/daniweb-community-feedback/threads/419153/i-cant-reply

Member Avatar for Dani
0
50
Member Avatar for amberrrrrNJ

The first thing you need to do is create that text file, unless your teacher gave you one. If you google around for dictionary text files you may be able to find one. After that, write your program one small step at a time. you know that you have to …

Member Avatar for amberrrrrNJ
0
203
Member Avatar for nicewave

Depends on the operating system. For MS-Windows see [LogonUser](http://msdn.microsoft.com/en-us/library/windows/desktop/aa378184(v=vs.85).aspx) win32 api function

Member Avatar for jbrock31
0
121

The End.