377 Posted Topics
Re: Take a look at this. [url]http://www.cplusplus.com/doc/tutorial/structures.html[/url] This will get you started. | |
Re: Without your code I don't think people would be really keen to help you. | |
Re: Here's another one [URL="http://www.cprogramming.com/challenges/solutions/self_print.html"]Link[/URL] | |
Re: [code] while ( ! input.eof() ) { ...[/code] There's a difference between C++'s input/output and other languages like pascal etc. Instead try checking the return value of the input routine. [code] while( input ) { ...[/code] | |
| |
Re: See The Link [url]http://www.bluemug.com/research/text.pdf[/url] | |
Re: [B]Remember the three R's: [/B] Respect for self; Respect for others; Responsibility for all your actions. | |
Re: [QUOTE=tlly]1). A "Hello World" program in 'C' without using any semicolon. [/QUOTE] [code]while((std::cout << "Hello World"<< std::endl) == 0){}[/code] | |
Re: >You don't need to use [b]sizeof[/b] in case of [b]new[/b] >You can initialise while allocating memory through new. | |
Re: Don't you have a compiler at your place...go and check it there... | |
Re: Why are you casting [b]strlen[/b]. There's no need for that. | |
Re: No you cannot do that and you shouldn't even typecast malloc. | |
Re: Here's another [url]http://www.cplusplus.com/doc/tutorial/files.html[/url] | |
Re: Are you sure your code works fine?? | |
Re: [QUOTE=lchamarthi]Also why integer is limited to -32767 TO +32767?[/QUOTE] Size of int is implementation dependent. | |
Re: You can use [B]find[/B] and [B]replace[/B] function of string class. | |
Re: I think if possible you should go as local as you can keeping in mind memory. As far as processing power is concerned, you should'nt care unless you are working on a system having limited amount of processing power. You can also profile your code to check. I don't have … | |
Re: I would do something like this [code] const n=...;(*number of processes*); procedure P(i:integer); [B]begin[/B] [B]repeat[/B] entercritical(R); <critical section>; exitcritical(R); <remainder> [B]forever[/B] [B]end;[/B] [B]begin[/B](*main program*) [B]parbegin[/B] P(1); P(2); P(3); - - P(n); [B]parend[/B] [B]end[/B] [/code] | |
Re: Read this [url]http://www.parashift.com/c++-faq-lite/intrinsic-types.html[/url] | |
Re: Or [code] char *z = "Foobar"; char *t = "Foobar";[/code] | |
Re: [B]ivanCeras[/B] plz use code tags. | |
Re: [code] string str1="Function for a string"; string str2=str1.substr(9); cout<<str2;[/code] | |
Re: Is this your code? I doubt it is. And stop posting in multiple forums. You have already been guided. | |
Re: I tried your code with DEV 4.9.9.2. It's working fine on my end. It even works fine on microsoft compiler. | |
Re: I guess there's some problem here [code] *pCurrent = ptr;[/code] This will break your list. You need another pointer. Maybe this will help:- [code] void insertSortedList (Node **head, int value) { /* creating a new node */ Node *ptr = createNode (value); Node **pCurrent = head; [B]Node **ptemp; [/B] /* … | |
Re: There's a code snippet section. Try to contribute there. | |
Re: Here's a code snippet which I found. [code] #include <windows.h> #include <iostream> BOOL NT_SetConsoleDisplayMode(HANDLE hOutputHandle, DWORD dwNewMode) { typedef BOOL (WINAPI *SCDMProc_t) (HANDLE, DWORD, LPDWORD); SCDMProc_t SetConsoleDisplayMode; HMODULE hKernel32; BOOL bFreeLib = FALSE, ret; const char KERNEL32_NAME[] = "kernel32.dll"; hKernel32 = GetModuleHandleA(KERNEL32_NAME); if (hKernel32 == NULL) { hKernel32 = LoadLibraryA(KERNEL32_NAME); … | |
Re: If it's c++ then use [inlinecode]static_cast[/inlinecode]. | |
Re: I hate these new quote tags. And what is it with the slider. It doesn't look nice at all. Plz bring back old ones. ![]() | |
Re: [QUOTE=rontab68]any suggestions on a good reading material or examples about linked list, doubly linked list on the web. [/QUOTE] [url=http://en.wikipedia.org/wiki/Linked_lists]Linked lists[/url] | |
Re: See the changes [code] #include <stdio.h> [COLOR="Red"][B]int [/B][/COLOR]main([B][COLOR="Red"]void[/COLOR][/B]) { int hello;[B][COLOR="Red"]//* removed[/COLOR][/B] printf("Hi, Enter any value > "); scanf("%d",&hello); switch (hello) { case 1: printf("your 1 luck number is > %d\n",hello); case 2: printf("your 2 luck number is > %d\n",hello); case 3: printf("your 3 luck number is > %d\n",hello); default: … | |
Re: Try This [code] void er(void) { string erbase[] ={"parl", "chant", "dans", "ferm"}; //french verb base string ertrans[] ={"to talk", "to sing", "to dance", "to close"}; //english translation 1 string eralttrans[]={"to speak", " ", " ", " "}; //englsh translation 2 int r = rand()%4; cout << "The verb "<<erbase[r]<<"er means … | |
Re: Go for [i]Accelerated C++[/i] By [B]Andrew Koenig & Barbara Moo[/B] As far as compiler is concerned, DEV C++ has a pretty nice one. | |
Re: [URL="http://www.cprogramming.com/tutorial.html#ctutorial"]C-Tutorial[/URL] | |
Re: See [URL="http://www.cppreference.com/stdother/srand.html"]srand[/URL] and [URL="http://www.cppreference.com/stdother/rand.html"]rand[/URL] | |
| |
Re: Yes, If you prove that you are willing to learn. | |
Re: Welcome Presh Your name reminds me of an indian movies comedian. Hope you enjoy your stay here. | |
Re: [QUOTE=amnezia]Iam confuse with cubic equation alghoritma and code. x^3 + ax^2 + bx + c =0 Please help me[/QUOTE] [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] | |
![]() | Re: Turbo C help files contain lot of code samples for graphics functions from simple lines to little advanced stuff like floodfill etc.. |
Re: [QUOTE=a.baki]I don't know much more about strings, even C! Some idea please...[/QUOTE] Read this beginner's tutorial [url]http://www.cprogramming.com/tutorial/c/lesson9.html[/url] It will get you started. |
The End.