2,839 Posted Topics
Re: They're not going to run it on full power today, so my guess is that we all live to see another day. It's a great experiment, I'm very interested in what results may come out of it. | |
Re: [QUOTE=Ancient Dragon;689695]link is broken[/QUOTE] I disagree? | |
Re: [QUOTE=makubexiii;688013]how can you make program using a linked list that displays your outputs in ascending alphabetical order?[/QUOTE] With a computer, keyboard, monitor, mouse (optional), an OS and some software. You'll probably need your eyes, brains, arm, hand etc too. In other words: Try something yourself first and come back with … | |
Re: [QUOTE=Sarav01;688900] i read that in a book and worked on it. .[/QUOTE] Problem is that you didn't ask any specific question or posted code that proves you've actually put some effort in it. So what do you want to know, what have you done already and where are you stuck? | |
Re: One option is something like: [code=c] float in = 131.14567f; int left = (int)in; float right = left - in;[/code] | |
Re: Here's a [URL="http://www.functionx.com/cpp/examples/passargs.htm"]tutorial[/URL] Replace every [ICODE]void main()[/ICODE] from the tutorial with [ICODE]int main()[/ICODE] | |
Re: Something like this should compile: [code=TurboC] int a = getch(); if (a == '\n') cout << "enter"; [/code] But why do you think getch() is better then cin? Getch() is outdated and non-standard, so if you use it on a modern compiler, you'll get a compiler error. Besides, comparing getch() … | |
Re: Try making something yourself first, and ask questions about the code. We don't give away homework here. I can give you a few tips: [URL="http://www.functionx.com/cpp/Lesson12.htm"](2d) arrays[/URL] [URL="http://www.cprogramming.com/tutorial/lesson3.html"]loops[/URL] [URL="http://www.augustcouncil.com/~tgibson/tutorial/iotips.html"]user input[/URL] Good luck! | |
Re: Your nodes don't have a link 'previous' (singly-linked), so as far as I can see, you'll have to store all the data in some sort of container (a vector for example, or another linked list :P ) and print that out in reverse order. | |
![]() | Re: If everyone is going to give iamthwee free code, I might as well give my 2 cents :D I've made some assumptions because your question wasn't complete: - I went for excel, where a CSV is separated by ';' instead of ',' - an empty line is a '\n' - … ![]() |
Re: [QUOTE=FTProtocol;681127]i... and molecular structure of the central processing unit ... [/QUOTE] Perhaps you should use [URL="http://lhc2008.web.cern.ch/lhc2008/"]this[/URL] | |
Re: [URL="http://www.cprogramming.com/tutorial/lesson5.html"]Here's[/URL] a small tutorial on the switch statement | |
Re: [QUOTE=Narue;686976]You know what [B]I[/B] need urgently? [..][/QUOTE] I urgently need to win the lottery, cld you help me plzzzz?! LOlz :icon_rolleyes: | |
Re: [QUOTE=kcpatron;687446]good day, i rily nid help on something....[/quote] If you're looking to learn proper English, you're on the wrong forum. [QUOTE=kcpatron;687446] its about gotoxy in turbo c... [/quote] Aha [QUOTE=kcpatron;687446] 1st of all, can u use gotoxy in turbo c? (c++ 6.0) [/quote] Yes [QUOTE=kcpatron;687446] 2nd, if u can... can … | |
Re: [QUOTE=haveaclick;687411] i want the code for reversing a string [/quote] You didn't say the magic word... :) But even if you did: we don't give away code for your homework. You need to put in some [URL="http://www.daniweb.com/forums/announcement8-2.html"]effort [/URL]first. But to help you on your way: Do you know how to … | |
Re: I vote in favor of any kind of reporting system for PM's | |
Re: Perhaps: [code=cplusplus] char * str = "something"; std::cout << &str; [/code] | |
Re: [QUOTE=Ene Uran;677634]The "antivirus vista 2009" comes in from visiting porno sites...[/QUOTE] Sounds like you're familiar with it? :D Anyway: NOD has a online-scan that detects the virus according to their database. | |
Re: The following example-code will 'convert' an int into a char [code=c] int number = 97; //97 is the ascii value of 'a' char character = (char)number; // "convert" it printf("%c", character); [/code] A char and an int are both numbers, they just differ in the way us humans read them … | |
Re: How about using a shell script to start GDB in a loop? Redirect the output to a file. [code=ShellScript] for (( i = 0 ; i <= 10; i++ )) do gdb yourfile > outputfile done [/code] | |
Re: [QUOTE=Mehwish Shaikh;683492]Please Be Hurry.... I'm looking forward for your kind help....[/QUOTE] It may be [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]urgent[/URL] to you, but it isn't to us :) [quote=Mehwish Shaikh;683492] but im confused how to use those methods in MAIN() function after making Objects of Class-tree. [/quote] You've forgotten to create a node that you … | |
Re: [QUOTE=olsoul_41;684349]can u make me one? pls[/QUOTE] Yes I can. But the question is: can [I]you[/I]? How about [URL="http://www.google.nl/search?hl=nl&q=srand&btnG=Google+zoeken&meta="]googling [/URL]for srand()/rand() ? | |
Re: [QUOTE=Narue;684364] >Try this macro That still won't work as the construction is illegal. [/quote] Would you mind explaining why this is illegal? I'm probably wrong but it looks fine to me | |
Re: [QUOTE=amrith92;684102] [CODE] read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; } read.clear();//clear memory read.close(); read.open(filename_user.c_str(), ios::in); while(getline(read, lines, '\n')) { cout << lines << "\n\n\n"; } cout << "\n\n\t\t" << lc; [/code] [/QUOTE] [I]If[/I] this code were to work at all, it would display the cout line as many times as … | |
Re: How about using threads? One thread for each file. That way you wouldn't have to open and close each file each time you need to read it, so you wouldn't have to start reading from the beginning. | |
Re: Am I missing something, or are you looking for some as simple (and ugly) as this: [code=c] #define debug2 printf int main() { debug2("testing %d,%d,%d", 1,2,3); return 0; }[/code] output: [code]Testing 1,2,3[/code] | |
Re: [QUOTE=mhil_joy;683642]if cannot work please help me..[/QUOTE] That's a syntax error , it should be: [code=cplusplus] if (!work) { HelpMe("please"); }[/code] Now what is your question? Also learn to use c[URL="http://www.daniweb.com/forums/misc-explaincode.html"]ode-tags[/URL]!! | |
Re: > and I don't understand this step too: for (i = 0;i <= 10;i++) { a[i] = i; } > what does it mean? THANKS. It initializes the array with the values 1-10. It's a loop. Every time the loop loops, one element of the array will receive a value. … | |
Re: Narue has dedicated a [URL="http://www.daniweb.com/forums/thread90228.html"]whole thread[/URL] to this problem. It's worth the read. but the simple solution would be: [code=cplusplus] cin.ignore(); cin.get(); [/code] | |
Re: I'm suprised that your compiler doesn't also complain about the [ICODE]int [/ICODE]declaration. It should be like this: [code=cpp] class Example { public: static const int versize = 20; }; [/code] To use static with doubles, you [I]could [/I]try something like this: [code=cpp] class Example { public: static inline double something() … | |
Re: If I don't need negative numbers, I always declare them unsigned. In theory they should be marginally faster to process, but I use to give them to indicate that a number will never be negative. It improves the readability of the code. And about goto's (question #5 in post #1), … | |
Re: What kind of mobile phones? Do they have an operating system like winCE? | |
Re: even with office 2008, you still can't write xls files without giving microsoft a sack of money, so csv would be the way to go. The thread you're referring to, actually has the [URL="http://www.daniweb.com/forums/post505055-12.html"]writing [/URL]part in it that you need | |
Re: Google is your friend: [URL="http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library"]mfc[/URL] [URL="http://msdn.microsoft.com/en-us/library/feh4ww6k(VS.71).aspx"]Resource Editor[/URL] [URL="http://msdn.microsoft.com/en-us/library/afzk3475.aspx"]Macro assembler[/URL] | |
Re: [QUOTE=GrimJack;677333]I was pleased when I hit 666.[/QUOTE] I still have the screenshot somewhere from [i]my[/i] 666th :D | |
Re: I think you mean: "How to make the console open in fullscreen-mode" ?? If yes: [code=cplusplus] HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_SHOWMAXIMIZED); [/code] | |
Re: In the c++/c section 'someone' could add a piece of PHP code that checks if the post contains [icode]main([/icode]. If the post then doesn't contain any code-tags, show somekind of warning, or link to the "code tags explained" section. This could work for some -not too stupid- newbies and would … | |
Re: You could use a vector for this. A vector is a sort of array that can change it's size on the fly. This is very useful when you don't know how much data you want to store. I've made you a small demo. Just compile and run it, you'll get … | |
Re: [QUOTE=sittas87;674579] error in sentence: ...Its round, like a [COLOR="Green"]Apple[/COLOR][/QUOTE] I guess everyone missed the joke in Jwentings post? | |
Re: If tried do describe your problem more clearly, I might be able to answer your question. What I understand is "I want one line of text replaced by a second line when I press a key" This could be done like this: [code=cpp] #include <windows.h> #include <iostream> using namespace std; … | |
Re: [QUOTE=ehsan_op;674651] i wanna know if there is any problem with my CreatThread function or not ? [/QUOTE] I think you made I typo. It's [icode]Creat[b]e[/b]Thread[/icode] instead of [ICODE]CreatThread[/ICODE], so: no. You code doesn't compile unless you have made some sort of custom CreatThread() function. And without knowing what the TbsStart() … | |
Re: And you think that the orginal poster is still interested after 4 years? And still no [URL="http://www.daniweb.com/forums/announcement8-3.html"]code-tags[/URL]... | |
Re: You would also need to delete the memory you've freed, or else you'll get a memory leak | |
Re: Sorry to tell you, but there are *a lot* of thing wrong with your code. I'll give a few examples: [ICODE]int main(void)[COLOR="red"];[/COLOR][/ICODE] What's that semicolon doing there? [ICODE] << [COLOR="red"]name [/COLOR]std::end[COLOR="red"]1[/COLOR];[/ICODE] What the hell is name std::end1;? [ICODE]if help == 1[/ICODE] you prob mean :[ICODE] if (help ==1)[/ICODE] [ICODE]system("pause")[/ICODE] missing … | |
Re: [URL="http://en.wikipedia.org/wiki/Procedural_animation"]procedural animation[/URL] is a (programming)technique to allow for better animation then predefined animation would. while [URL="http://en.wikipedia.org/wiki/Tweening"]tweening [/URL]is more eye-candy / an effect. | |
Re: [QUOTE=coderoobie;675572]Wot a quick reply! Thanks jencas I 'l have a look at it. One more question, Can I sort a listbox containing strings? :icon_cool:[/QUOTE] How about loading all the strings to a vector and sorting that vector? example: [code=cplusplus] #include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; … ![]() | |
Re: [QUOTE=sittas87;674692] Im not a cracker but Ill use the stuff[/QUOTE] Sorry to hear that... You know, you can always [URL="http://www.rehab-international.org/dealing-with-crack-rehabilitation/"]get help[/URL] |
The End.