49,761 Topics

Member Avatar for
Member Avatar for fadia

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 …

Member Avatar for fadia
0
129
Member Avatar for Silvershaft

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 …

Member Avatar for Rajesh R Subram
0
1K
Member Avatar for a7med sh

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 …

Member Avatar for WaltP
0
87
Member Avatar for serra01

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 …

Member Avatar for adams161
-9
292
Member Avatar for bhas_purk

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 …

Member Avatar for bhas_purk
0
81
Member Avatar for Hatem Faheem

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 …

Member Avatar for dwks
0
115
Member Avatar for sodak

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 …

Member Avatar for sodak
0
142
Member Avatar for Androggles

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) …

Member Avatar for Androggles
0
158
Member Avatar for DaHandy

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 …

Member Avatar for DaHandy
0
99
Member Avatar for DeathEater

:@ 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 …

Member Avatar for jonsca
0
207
Member Avatar for JoaoC

hey ! i have a homework, actually is a work for note, and i cant resolve it :S:S its my first year in c++

Member Avatar for Nick Evan
0
90
Member Avatar for Carrots

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: …

Member Avatar for Narue
0
187
Member Avatar for carey_amanda
Member Avatar for ilyaz

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 …

Member Avatar for ilyaz
0
71
Member Avatar for Enhancelogic

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. …

Member Avatar for mrnutty
1
252
Member Avatar for kevinkace

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, …

Member Avatar for kevinkace
0
103
Member Avatar for samsons17

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 …

Member Avatar for mrnutty
-2
174
Member Avatar for DarkC0de

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 …

Member Avatar for DarkC0de
0
759
Member Avatar for lakshmi06

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.

Member Avatar for Ancient Dragon
-4
70
Member Avatar for destroyed

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

Member Avatar for Narue
0
122
Member Avatar for mustafaneguib

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; …

Member Avatar for Nick Evan
0
333
Member Avatar for addikted

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) { …

Member Avatar for rahul8590
0
662
Member Avatar for number87

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] …

Member Avatar for number87
0
3K
Member Avatar for jefanot

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> …

Member Avatar for muzamal
0
1K
Member Avatar for blitz9

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?

Member Avatar for blitz9
0
79
Member Avatar for manishanibhwani

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????????????

Member Avatar for Ancient Dragon
0
195
Member Avatar for mrnutty

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 …

Member Avatar for mrnutty
0
144
Member Avatar for niyasc

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++?

Member Avatar for CppBuilder2006
-1
122
Member Avatar for Skeen

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 …

Member Avatar for manishanibhwani
0
90
Member Avatar for mythili_sharon
Member Avatar for manishanibhwani
0
138

The End.