49,766 Topics

Member Avatar for
Member Avatar for hdef

The program gets the hexdump of a file and saves it in a text file (temp.txt). The program should then get the contents of temp.txt and two other text files (virus1sig.txt & virus2sig.txt) and display them. The problem is only the contents of virus1sig.txt & virus2sig.txt are being displayed. Thank …

Member Avatar for hdef
0
149
Member Avatar for sman13
Member Avatar for Ihatepullups

Hello, this is my first time here, although I have hit this website many times on google looking for quick fixes to my problems. I am a student in high school and I persuaded my teacher to let me study c++ (as opposed to 3ds max). I have been working …

Member Avatar for niyasc
1
108
Member Avatar for vrnadh123

Hi, I want to create a virtual partition inside a hard disk. This partition should be usable for booting purpose. Please help me out in this regard by providing me source code in C/c++. Bye...

Member Avatar for amol_d
0
196
Member Avatar for lonelyday91

i have to do a code that takes the word from the user and seperate them from uppercase and lowercase. i had done the code, but the words that are printed out are not as aspected (symbols) [CODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ int i=0; int total_char=0; cout<<"enter …

Member Avatar for lonelyday91
0
85
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
130
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
82
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
116
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
144
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
159
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
100
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
211
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
91
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
188
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
72
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
283
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
104
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
175
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
773
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
123
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
360
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
664
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
81

The End.