49,761 Topics
| |
Hi all.. This function should work recursively.. Meaning call the function inside the same function. So i'm supposed to write a recursive function that takes a single parameter from type integer and decrements that number until it reaches zero. Ex. If the user entered 7, he'll get this output: 7 … | |
Ok, straight to the point here's the code: [code=cpp]#define UWM_KEYBOARDHOOK_MSG \ _T("UMW_KEYBOARDHOOK-" \ "{B30856F0-D3DD-11d4-A00B-006067718D04}") UWM_KEYBOARDHOOK = RegisterWindowMessage(UWM_KEYBOARDHOOK_MSG); [/code] I put only 2 lines which makes the error Compiler output [code]1>.\DLLMain.cpp(25) : error C3861: '_T': identifier not found[/code] I tried to insert the _T to different places and search internet and … | |
I need to know how to count each letter in a file using Array and then outputting each letter & the number of times of each letter an example of the output : Letter count ------------------- e 20 s 16 a 15 : : ------------------- can any 1 help me … | |
In my perception C++ is better than C language. The first window (in illume downcast) shows the inspiration cypher for our low system. The wares one (in condition grayish) shows the ending of the performance erstwhile compiled and executed. To the socialistic, the intermediate numbers permute the curriculum, and are … | |
hello, I am using a bitset constructor to pass an unsigned long and create a bitset object. [code] bitset<32> bvec(012); string mystring=bvec.to_string<char,char_traits<char>,allocator<char> >(); cout << "mystring: " << mystring << endl; [/code] here the least significant 4 bits are- 1010 when i write [code] bitset<32> bvec(12); [/code] the least significant … | |
I'm working in implementing an elevator the project is about a building which has 2 elevators working together I wrote a function (switch) to determine the direction of each elevator and that's my code [CODE] if( E1.loc == E2.loc ) { if(upup1!=0 && dndn1!=0) { E1.status='u'; E2.status='d'; } else if(upup1!=0 … | |
I have created a program that generates an application which I have saved in a certain location, lets use C:\Documents and Settings\UserName\Desktop\Folder\ as an example. The program uses this base location, then searches through some subfolders, alters a file, and saves the altered file in the base location that the … | |
Hey I have been having this problem, that my little program here, won't delete the file that i am asking it to. Can anyone help me? I am using Live Messenger as an example ;) [CODE] #include <iostream.h> #include <windows.h> int start = 1; int main() { while(start == 1) … | |
Hi! I have recently started to study C++ and I have already faced many problems. This is something I can't get solved on my own. 1st the program asks the user to type in his/her ID (string). Then it will be splitted in 3 parts: day, month and year. The … | |
:@ Hi every body, i tried recently to compile some old C++ codes but regardless of the compiler i use i get the same error message when i want to link the *.obj file. i even tried it with Tlinker and macrolinker but with no success, if any one could … | |
hey ! i have a homework, actually is a work for note, and i cant resolve it :S:S its my first year in c++ | |
Hi there, I am trying to read values from a .txt file using stringstreams and plan to enter the values into a map, I am reading into a buffer, but it contains spaces and I believe a character which represent the end of line. Here is my program so far: … | |
is there any way to catch a C++ DLL exception in C#? | |
I have to develop a C++ DLL using Visual Studio 6 (don't ask why!) I am supposed to start from a template DLL project and then add functionality. Documentation states that I need to copy certain files from the template project into my project. However, when I open the template … | |
I just purchased accelerated C++ and I'm working through the examples and I'm at a road block trying to figure out what this line means. I was wondering if someone could explain this to me in a different way? The part of the code I do not understand are bolded. … | |
There's something wrong with my push function, or how I'm initializing the linked list. Can anyone tell why? The pointer 'operands' wont point to the new head, and always points to the first node created. Adding a second node appears to partially work, (second node->next points to the first node, … | |
Hi... I've passed through this question that want to print out the consonant,vowel, upper case letter and lower case letter separately..This is the example of the desired output.... -------------------------------------------------------------------------------------- ENTER ANY WORD : Hello World THIS IS THE OUTPUT FROM THE WORD YOU HAVE ENTERED : 1.CONSONANT : HllWrld 2.VOWEL … | |
hi every body I have small system for emails which I must save all user in one file and all message in one file :( . the problem is : i want the user to write a message and when he end it click Ctrl+d then write Ctrl+d in end … | |
we need the Source code for biorthogonal and coiflet wavelets in c++. we need to analyse the performance of the wavelets so we need help. pl do reply. | |
HEY...I need some help......i need a c++ code that segments a image.....i need it for my projet...i tried so hard but didnot find it yet....Help Plzzzzzzz | |
ok guys, i can not figure out the following problem that i faced just a while ago while trying out some filing in c++. the code is as follows: [code=c++] #include<iostream> #include<fstream> #include<string> using namespace std; int main() { ifstream readFile; readFile.open("Input.txt"); string sample; readFile>>sample; cout<<"Here is a line: "<<sample<<endl; … | |
hi.can u plz tell me where to put printf for timecount.here is the code for quicksort i wanted to calculate the time it takes. [CODE]#include< stdio.h> #include< conio.h> #include <time.h> #include <ctime> void shellsort(int a[],int n) { int j,i,k,m,mid; for(m = n/2;m>0;m/=2) { for(j = m;j< n;j++) { for(i=j-m;i>=0;i-=m) { … | |
when I try to compile my project file in devcpp I get the following error: I tried googling but nothing seems to help when i tried them. CreateProcess((null), C:/cygwin/bin /sh.exe -c "g++.exe -c test.cpp -o test.o -I\"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include\" -I\"C:/Dev-Cpp/include/c++/3.4.2/backward\" -I\"C:/Dev-Cpp/include/c++/3.4.2/mingw32\" -I\"C:/Dev-Cpp/include/c++/3.4.2\" -I\"C:/Dev-Cpp/include\" ", ...) failed. Access is denied. C:\Users\dedl\Desktop\SAIM\SAIM3\OpenGLGLUT\Makefile.win [Build Error] … | |
Hey, I wrote this code that makes you type two things, then it checks if it is the same. Well, that was it was supposed to do, but then it kept saying: expected primary-expression before "else" expected ';' before "else" Here's the code [CODE] #include <iostream> #include <time.h> #include <windows.h> … | |
Hi, I tried to make a game trainer, static address can be done. But since the game change it's address every time the game restarted it's make me frustated. Do you have a solution for this? | |
in one of the question for beginners a program for moving a file was asked. i cud not find the algo can anyone suggest me the algo???????????? | |
In this challenge there are 3 question, beginner, intermediate, and others. Beginner: [b] [ICODE]1) Find the sum of all Natural numbers that are a multiple of 3 or 11, from 1 to 100,000. [/ICODE][/b] Intermediate: [b] [ICODE]The prime factors of 13195 are 5, 7, 13 and 29. What is the … | |
Hai..... May I know how to simply include external image file in Turobo C++? Where can I get a complete tutorial for graphics in C++? | |
So I'm quite new to c++, and I'm really into pointers, does anyone got like, an idea on how to really get to know pointers, assignments, tasks, tutorials, ect. Basically, my knowledge in C++, is classes, operator overloading, and like simple stuff, so if you're able to come up with … | |
i need the difference between i++ and ++i, where is i++ used and where ++i is used |
The End.