2,839 Posted Topics
Re: Here's the explanation: [URL="http://gregs-blog.com/2007/12/31/how-to-fix-visual-studio-bug-rtc1-and-clr-options-are-incompatible/"]click[/URL] | |
Re: [URL="http://opengroup.org/onlinepubs/007908799/xsh/getdate.html"]Getdate[/URL] Now first try coming up with something yourself and come back if you encouter problems | |
Re: You could just read the file one word at a time with filestreams instead of using getline(), it would save you a lot of time.: [code=c] std::ifstream in ( "myfile" ); if ( in ) { std::string word; while ( in>> word ) { spellCheck(word); } } [/code] If you … | |
Re: [QUOTE=zwench;544411]I did have what errored at the very top of my post and said it says it is not defined..[/QUOTE] What is not defined: Convert.ToSingle or a variable name? I've glanced over your code, but you never declare txtInitialValue,txtSalvageValue and txtAssetLife Please post the exact compilererror Niek | |
Re: What have you done so far? Do you understand how arrays work? Have you chosen a sorting algorithm? | |
Re: What is fLen? What values can it contain? Give an example. | |
Re: [url]http://www.youtube.com/watch?v=Mt1bgsvsWms[/url] That video gave me an idea: I made a wave that had 5 minutes of silence and then a loud scream. Set it as the startup sound on a co-worker's computer and watched him :) | |
Re: try this: [code=vb.net] gridMatchedDB.Columns(0).Width = 10 gridMatchedDB.Columns(1).Width = 80 [/code] This should change the width of the first column to 10 en the second to 80 | |
Re: Did you put it before any declarations where made? (on the very top of your file) Niek | |
Re: Neither. When I was *a lot* younger, I passed out from wisky... That was the end of my wiskeyadventures. I drink coffee at day-time (and lots of it) and for inspriration I have a [URL="http://images.breuls.org/blog/200404/grolschBeugel.jpg"]Grolsch-Beugel.[/URL] (local beer) Niek | |
Re: cin is the name of your input, so what the user enters. (cout, cin get it?) [quote] and what does the [..code] do[/quote] It converts a string to an int. | |
Re: How about giving each item a unique id? Just add an extra variable: [code=php] $count = 0; while($disp=mysql_fetch_array($disp_de)) { echo '<tr><td>'; $dis= $disp['pp_desc']; echo "<p id=\"desc".$count."\">".$dis."</p>"; echo '</td></tr>'; $count+=1; }[/code] | |
Re: - [ICODE]#include <iostream.h>[/ICODE] should be [ICODE]#include <iostream>[/ICODE] . - [ICODE]void main()[/ICODE] should be [ICODE]int main (void)[/ICODE] That's the way it's defined. You also need to add a [ICODE]return 0;[/ICODE] when your program is done -You need to declare the functions before using them (for example: add[ICODE] void addrec(void);[/ICODE] before main() … | |
Re: I don't see anything wrong with it, so it's probably in your headerfile (ComplexNumbers.h) . Can you post the code from the header file? Niek | |
Re: First thing I notice is this line : [code] if (buffer='ISBN') {[/code] This line means: if (assign 'ISBN' to buffer) ==succes But that is probably not what you meant. (even if it was, it would still fail) I'm guesssing that you want to check if buffer hold "ISBN" as value? … | |
Re: [QUOTE=suresh1010;547758].. thanks... but i hav tried this one out , but in turbo Cpp compiler... it pops an error tat.. dot operator is (.) is not allowed.. is it the exact function... [/QUOTE] The code is ok, but [I]codeaa[/I] probaly uses a [icode]using namespace std;[/icode] in his code. Although this … | |
Re: What are you trying to say? Explain in more detail please. | |
Re: Haha, Dani is right. A week ago a gave someone neg-rep for making a post in 6 forums and the site told me: "Thanks for giving reputation, may you be lucky enough to receive some in return" :) | |
Re: Thats one solution.. I would [URL="http://www.howtodothings.com/computers/a3744-how-to-convert-access-to-mysql.html"]convert [/URL]it to a MySQL DB and then use PHP on a webserver to read the data. There are a lot of tutorials on the web, how to read DB with PHP and it's really not that hard if your database isn't too big. | |
Re: Or do you mean the pentagram hidden in the image? But what do Mercury, Venus and Earth have to do with it? Niek | |
Re: I'm getting a deja vu, I read this thread a few days ago already. Right? What do you use to playback the mpeg? | |
Re: I've found something on [URL="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=15218&SiteID=1"]MSDN[/URL] Niek | |
Re: If your password is a string, you need to break it up in seperate chars (an array of chars) and then use the Xor operator on each character. | |
Re: Use the TextBox_TextChanged event on both textboxes. If the first is changed, disable the second and vice versa. Here's an example: [CODE=vb.net] Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged TextBox2.Enabled = False End Sub Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles … | |
Re: [QUOTE=Moporho;545915]The Super Calculator does not display sign off either! [/QUOTE] [code=cplusplus] if(oper=='=') { cout << "Result: " << acc << endl; oper ='+'; acc=0 ; break; } [...more code....] if(oper=='!'||oper == '=') { } [/code] The second of statement will never be reached if you enter '=' because you break … | |
Re: You're in the right direction. One thing you should be carefull about is declaring an int (or some other var) and NOT giving it an initial value. So change all your declarations to this: [code=c] int highest_pos = 0; int lowest_pos = INT_MAX; int counter = 0; int highest_neg = … | |
Re: First you have to split the string in 3 pieces, then run each substring against an array where your data is stored. If you post some code what you have done so far, people here can help you further. Niek | |
Re: Perhaps. But why not take the good advice from WaltP. That would be the easiest solution by far. Niek | |
Re: thing to do: - find all the mutiples of 3 that are smaller then 1000 - find all the multiples of 5 that are smaller then 1000 - add all the number you've found - done You might want to look at the modules (%) operator for this assignment Good … | |
Re: [QUOTE=frankbenji;538252]Every smoker need some quit smoking course to avoid smoking. [/QUOTE] I think it's too late for smokers to avoid smoking :) | |
Re: [URL="http://www.functionx.com/cpp/Lesson25.htm"]Operator overloading[/URL] I've checked out your Blog. Did you realize that your examples only compile in Turbo c++ ? | |
Re: you're right. The problem is probably [URL="http://www.cplusplus.com/reference/clibrary/cstring/strlen.html"]strlen[/URL](). [quote=c++ reference] The length of a C string is determined by the terminating null-character: A C string is as long as the amount of characters between the beginning of the string and the terminating null character. [/quote] Not having a \0 to terminate … | |
Re: My first name actually is Niek, but I'm in a band with another Niek, so my name changed to Niek_E to avoid confusion and thats's how I've been called eversince :P | |
Re: A nice link for linked lists: [URL="http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_linklist.aspx"]click[/URL] a few things: - Why is tempnum a global variable? - iostream.h is outdated, use <iostream> instead. - you probably want to post this is the C++ forum - main always return something (an int) The reason why the program crashes is this … | |
Re: What do you know about [URL="http://www.dummies.com/WileyCDA/DummiesArticle/Working-with-Functions-in-C-.id-1047.html"]functions[/URL]? If you want to return 3 variables you'll probably need an array of ints. Or you could pass 3 ints by reference. | |
Re: Do something like this: Loop through all the chars if the previous char was a full stop, and the current char is between 'a' and 'z' subtract 32 from it to make it uppercase ([URL="http://asciitabel.nl/"]click[/URL]) Try implementing this in code, and come back if you have questions! Niek | |
Re: To clear the screen: [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385"]click[/URL] To set your title: [code=cplusplus] #include <windows.h> int main() { SetConsoleTitleA("This is my Consolewindow!"); return 0; } [/code] | |
Re: [edit] I've just read [URL="http://www.daniweb.com/forums/thread110090.html"]your other thread[/URL], which made this post obsolete..[/edit] Niek | |
Re: [QUOTE=thud;542070]All of the threads after me are receiving responses except mine. Is my question too technical?[/QUOTE] No. Sometimes it just takes a while for someone to come by. Most of us actually have lifes, so we're not on-line 24/7. Now for you problem: You need to split the string in … | |
![]() | Re: I'm not sure if this is what you mean but: [code=cplusplus] #include <iostream> [....] std::string programc = "something"; std::string total = ""; total += runasc; total += programc ; system(total.c_str()); [...] [/code] [edit] Too slow [/edit] |
Re: To convert one char to ASCII value: [code=vb] Dim ch As Char ch = "A" MessageBox.Show(Asc(ch)) [/code] or: [code=vb] Dim ch As Char Dim intg as Integer ch = "A" intg = Asc(ch) MessageBox.Show(intg) [/code] To convert a string to ASCII: [CODE=vb] Dim str As String Dim cnt As Integer … | |
Re: [QUOTE=Mangonel;538896] This startup freezing seems to happen most frequently when using the reset button after my comp has frozen.[/QUOTE] This sounds to me like something is overheating. When you reset right after the PC freezes, the PC is still 'hot'., so the change of crashing increases. Try running something that … | |
Re: You check for Prime right after this line: [icode]printf ("\n%d", fibo);[/icode] Did you start with the Isprime function? If so: show some code. Another question: is recursion a requirement for your assignment? Niek | |
Re: That's not that hard.. Do you know [URL="http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_std.html"]pseudocode[/URL]? | |
Re: [quote=carobee] if(isset($_SESSION['name'])) echo $_SESSION['name']; esle echo "session not set"; [/quote] you might want to change esle to 'else' :) What browser are you using? Is it set to accept cookies? You can check if the sesssioncookie is written by looking in your cookies folder. IE7 has a special option to … | |
Re: You could make two buttons on your form (one for previous and one for next) which increase and decrease a variable (let's call it 'count'.) Then in you SQL-syntax just use something like : [icode]SELECT * FROM foo LIMIT count,100[/icode] Then everytime one of the buttons is clicked, clear the … | |
Re: You also might need to install .NET 2.0 Framework on your friend's computer depending on your projecttype. Niek [edit] here's a [URL="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=891113&SiteID=1"]link [/URL][/edit] | |
Re: As far as I know, this isn't posssible. You could use a class with a memberfunction and then delcare an array of classes. Example: [code=cplusplus] #include <iostream> using namespace std; class foo { public: int func(int a) { return a; } }; int main(void) { const int SIZE = 5; … | |
Re: [QUOTE=technogeek_42;539229]really can u solve the queen prob using C++? and y not create a sample auto run .inf and this C++?? or y don't u solve rpg game i the forum below.......[/QUOTE] [B]technogeek_42 : [/B]You may want to read the rules [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]again[/URL]. The part 'Keep it Clean' regarding 'Leet' speak … |
The End.