- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 12
- Upvoting Members
- 5
- Downvotes Received
- 10
- Posts with Downvotes
- 8
- Downvoting Members
- 7
22 Posted Topics
Re: have a look at [url]http://www.daniweb.com/tutorials/tutorial45806.html[/url] Might b helpful for you | |
Re: The Best i ever found for socket programming [url]http://www.silicontao.com/ProgrammingGuide/other/beejnet.pdf[/url] | |
Re: there is a function "strstr" which returns a pointer to the first occurence of that string in another string. first find string using strstr then use strncpy to copy the the string before the pointer returned by strstr and after ptr + strlen (delete_word). ptr is the pointer returned by … | |
Re: have a look at this code [CODE]#include <stdio.h> #include <string.h> int main () { char str[] = "This is a sample string"; char * pch; pch=strrchr(str,' '); while (pch) { printf("%s",pch); str[pch-str] = '\0'; pch=strrchr(str,' '); if(!strrchr(str,' ')) { printf(" %s",str); break; } } return 0; } [/CODE] | |
Re: I also think that moderators should block such threads. We are not telling you how to do your job. We are just giving u a suggestion. Those people who does not show any effort, their threads should be blocked. | |
Re: Take input in a string. Now you can check character by character that where the space character is entered. [CODE]if ( str.at(index) == ' ' )[/CODE] Condition will be true if there is a space character at the index position. I hope that this might be helpful for you | |
Re: I think its your home work or assignment. First show some effort then we will help. | |
Re: i think you should do it in this way. [CODE]# include <stdio.h> # include <windows.h> //# include <winbase.h> typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO); int main() { PGNSI pGNSI; SYSTEM_INFO si; ZeroMemory(&si, sizeof(SYSTEM_INFO)); pGNSI = (PGNSI) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "GetNativeSystemInfo"); if (pGNSI) { printf("yes pGNSI exists"); pGNSI(&si); printf("\npage size is : %d\n",si.dwPageSize); } return … | |
Re: void exit ( int status ); Actually it terminate calling process Terminates the process normally, performing the regular cleanup for terminating processes. First, all functions registered by calls to atexit are executed in the reverse order of their registration. Then, all streams are closed and the temporary files deleted, and … | |
Re: working now. a semicolon was missing [CODE]#include <iostream> using namespace std; int main() { int a[16] = {67, 111, 110, 103, 114, 97, 116, 117, 108, 97, 116, 105, 111, 110, 115, 33}; int i; char letter; i = 0; while (i < 16) { letter = a[i]; cout << … | |
Re: if you want to add 0's then u have to add 0's before the string if the length of the strings are not equal. example 1: 234243429 000123127 secondly u have to convert ascii value to integer . well that can b done by subtracting 48 from its acsii value. … | |
Re: [QUOTE=jodysmith;1115028]Hello, I have just a simple and basic question. Write a program in c++ to swap 2 numbers without using a third variable. :D[/QUOTE] just focus on what u can do and what u can not. u can not use a third variable. wat u can do is "4 operations … | |
hi every one. can some one please tell me steps to make an MFC application in vc2008? showing a blank window. thanx in advance | |
Re: first show some effort that u have done. come up with a code according to your understanding then we will help you | |
Re: this link might b helpful [url]http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/[/url] | |
Re: char is of 1 byte because each char has an ascii value of max 127 if we r using 8 bit encoding. 128 = 2 power 8. so 8 bits 1 byte. | |
Re: check this code [CODE]#include<stdio.h> # include <stdlib.h> int main() { int x = 0; printf("plz enter a number : "); scanf("%d",&x); int y = 2 , z = 0; int * factors = (int*)malloc(100 * sizeof(int)); while (x != 1) { if (x % y == 0) { x = … | |
Re: i think i have the best one that is [CODE]//code to convert roman numeral to integer #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> int ret_level(char ch) { switch (ch) { case 'I': return 1; case 'V': return 5; case 'X': return 10; case 'L': return 50; case 'C': return 100; case 'D': return … | |
Re: download it via torrent http://www.torrentz.com/search?q=visual+studio+6.0 | |
Re: this might b helpfut for you [CODE]/* clock example: countdown */ #include <stdio.h> #include <time.h> void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} } int main () { int n; printf ("Starting countdown...\n"); for (n=10; … | |
Re: check it now [CODE]#include<stdio.h> #include <stdlib.h> #include<math.h> # include <iostream> using namespace std; int main() { int i=0,j,c,s[100]; double t=0; while((c=getchar())!='\n') { s[i]=c; s[i] = s[i] - 48; ++i; } int x = 0; for(j=i-1;j>=0;j--) { //t=t+(s[i-1]*(pow(16,(4-((double)i))))); t = t + s[j]*(pow(double(16),double(x))); x++; } cout<<t; return 0; }[/CODE] |
The End.