49,761 Topics

Member Avatar for
Member Avatar for kiuhnmgrtdcv

hi how can i terminate a process using vc++ i check somewhere and i found TerminateProcess function but this is not useful to terminate a process by it's name[for example notepad.exe] i hope you help me

Member Avatar for rbv
0
149
Member Avatar for zach1988

hey guys i'm new at programming so i would like to know whats the steps required to solve to following question below. Thanks in advance! Let a0,a1...an-1, b0,b1,...bn-1 be two distinct binary sequences. We say that a0,a1...an-1 is lexicographically smaller than b0,b1...bn-1 if ai = 0 and bi = 1 …

0
42
Member Avatar for loolyn

Hi. I'm using OnCtlColor function to change the background color of a text. I'm using SetBkColor for that, however the background is changing only for the text written, not the whole rect of the CStatic text window. Any ideas? Thanks.

Member Avatar for MrSpigot
0
80
Member Avatar for Carrots

Hi, I am for the first time using Strings in a program, and for some reason my program wont compile. When I use integers the program compiles and runs fine, but since I've changed it to use strings it's giving the following error (Visual Studio): [QUOTE] error C2511: 'Leads::Leads(std::string)' : …

Member Avatar for Ancient Dragon
0
136
Member Avatar for gauri_phatak_87

Hello everyone, I have to write a code to creat a pseudo assembler..I have an input file from which i read the assembly instructions from there i get the register numbers ...i have to convert that into machine code..i.e binary form... Now my problem is that i can find the …

Member Avatar for mrnutty
0
749
Member Avatar for Ashishinani1756
Member Avatar for alvalany

Has anyone got any idea how to make an IM Client in C++..IS IT POSSIBLE??? Also I tried downloading Source code of pidgin.. But couldn figure out anything....

Member Avatar for alvalany
0
80
Member Avatar for Metsyse

Mkay so im not sure if this is where to post this thread...but im sure anyone here can help me out here.... I work in a ware house full of equiptment of different types, all of which have a different S/N barcode. every morning i scan multiple pieces into an …

Member Avatar for Metsyse
0
99
Member Avatar for RossSCann

Does anyone know a source dealing with what is now required to get your application to install and run on Vista and avoid being blocked with the "Unknown Publisher" warning. It seems for 64 bit Vista my app simply won't run. I use an older version of Visual C++ to …

Member Avatar for RossSCann
-1
124
Member Avatar for dpreznik

Hi, Maybe somebody could help me set a popup menu item text at runtime in MFC? Because of some reason, the following code doesn't work for me: [CODE] if(pDoc->m_pCurChapter->m_pMarkedParagraph->m_bFlagged) menu.GetSubMenu(0)->ModifyMenu(ID_FLOATING_MENU_FLAG_PICKUP, MF_BYCOMMAND|MF_STRING|MF_POPUP, ID_FLOATING_MENU_FLAG_PICKUP, "Unflag Pickup"); else menu.GetSubMenu(0)->ModifyMenu(ID_FLOATING_MENU_FLAG_PICKUP, MF_BYCOMMAND|MF_STRING|MF_POPUP, ID_FLOATING_MENU_FLAG_PICKUP, "Flag Pickup"); [/CODE]

0
51
Member Avatar for erialclaire_238

Need suggestions if I should be using string so i could get this output: xcomputers 0123456789 user must enter characters... sample: enter characters: tr.xx equivalent: 68.00 where x=0,c=1,o=2... and so on... i'm not sure how to use the string so my output is always the conversion of first character i …

Member Avatar for Grn Xtrm
0
108
Member Avatar for hao001

[CODE]#include <iostream> using namespace std; int main() { cout << "Enter the number of students: "; int numberOfStudents; cin >> numberOfStudents; double score = -1; for (int i = 0; i < numberOfStudents; i++) { cout << "Enter a student score: "; int score1; cin >> score1; if (score < …

Member Avatar for JasonHippy
0
5K
Member Avatar for trac15

I am working on a project to solve a class in polynomial. I have successfully managed to do the header file and 75% of the code..but two functions to write and add the polynomials don't seem to work. Can someone help? The last part of the code! [CODE]#include <cassert> #include …

Member Avatar for iamthwee
-1
160
Member Avatar for hao001

[CODE]for(int i=5;i>=1;i--) { for(int j=5-i;j>=1;j--) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"* "; } cout<<endl; }[/CODE] sorry but can someone explain this coding to me? T.T''

Member Avatar for hao001
0
89
Member Avatar for Wolf CCMLG

I am desperately need help converting my code into an OOP format. [B][I]Here is my code:[/I][/B] [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; const int strLength = 141; char strArray[strLength]; char answer; bool quit; int charAmount; string line; void vowelCount(string); void consonantCount(string); void consonantCount(string line) { int …

Member Avatar for dkalita
0
185
Member Avatar for hollywoood69

I am having a problem writing from a outside file. here is the assignment. Write the program as an object-oriented C++ program that allows the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage, the term of the mortgage, and …

0
70
Member Avatar for geg13

i would like help with the template i am writing for some reason i can't get it to work. I would appreciate help. [CODE]#include <iostream> using namespace std; #include <iomanip> int() { cout << "This is a template.\n"; system(pause) }[/CODE]

Member Avatar for geg13
0
88
Member Avatar for adi.shoukat

Hi, I've been working in C++ and java .... i m fond of using String data type .... but in C I've to use char array as string and have to pass it to a function as string its creating some confusions plz help [CODE] void function( charArray comes here …

Member Avatar for Ancient Dragon
-2
153
Member Avatar for Wolf CCMLG

Can someone help me please, I am getting this error: [B]stringdefinition.cpp(7) : error C2448: 'stringClass::wordCount' : function-style initializer appears to be a function definition[/B] When trying to compile this code: [B][U]StringHeader.h[/U][/B] [CODE] #ifndef H_StringHeader #define H_StringHeader #include <iostream> #include <string> #include <cstring> #include <algorithm> using namespace std; const int strLength …

Member Avatar for Wolf CCMLG
0
154
Member Avatar for Rastafari

Hi, I have this code fragment that is suppose to find the max value in a queue. It seemed to work fine until I switched up the locations of the letters being fed into the queue. It is suppose to compare each element of the queue and return the largest …

Member Avatar for Rastafari
-1
85
Member Avatar for uzimuzi

[code] #include<iostream>; using namespace std; int main(){ char arr[8]={}; for(int count(0); count<=7; ++count){ arr[count]='*'; } cout<<arr; cin.get(); return 0; } [/code][code]I really do not understand how some garbage values get stored into the array; even after I have initialized it properly; and how it can display MORE values than what …

Member Avatar for uzimuzi
-1
314
Member Avatar for ankit894u

Using a hash table with eleven locations and the hashing function h(i) = i%11, show the hash table that results when the following integers are inserted in the order given: 26, 42, 5, 44, 92, 59, 40, 36, 12, 60, 80. The collisions are resolved using chaining. int h(int i) …

Member Avatar for ankit894u
1
234
Member Avatar for nated

Ok im passing in a string and i cant get it to convert to a char array. Ive tried this so far. [CODE]int MyString::find(const std::string& str) { char* newString = str; return 1; }[/CODE] Im pretty lost here.

Member Avatar for nated
-1
129
Member Avatar for Bemani_lover

Ok, so I've been trying to some practice programs and have come to a slight problem. Here's the program I need to work on: Write a program that determines which of a company's four divisions (NE, SE, NW, SW) had the greatest sales for a quarter. It should include the …

Member Avatar for VernonDozier
1
164
Member Avatar for nated

Ok im trying to compile and keep getting this error: 38 ISO C++ forbids declaration of `string' with no type. Not sure what im doing wrong. Here is my code: my header file: [CODE]#ifndef PLAYER_H #define PLAYER_H #include <iostream> using namespace std; class MyString { public: int find(const string& str); …

Member Avatar for nated
1
44
Member Avatar for NICEGUY123

I need help in understanding how input file in C++ works. Here is what i need to do. I need to be able to open a input file called input.txt. That file will contain 15 numbers in a list format. 6 .34 74 34 12 31 23 . . . …

Member Avatar for NICEGUY123
-1
206
Member Avatar for Juliebadeya

Please help me in this homework. /* mortgage -- calculates the amount of a monthly mortgage payment based on the * principal (i.e., the amount borrowed), the annual percentage rate (APR), and * the number of years to payoff the loan. Prints an amortization schedule (table). * * The program …

Member Avatar for William Hemsworth
-1
1K
Member Avatar for realmayo

Hi, I have a bit of a complicated problem I have a class (Holder) with 4 arrays (arr1, arr2, arr3, arr4). Currently I have a class function which processes these arrays so I dont have to return anything since they are part of the class. But I need to port …

Member Avatar for realmayo
-1
98
Member Avatar for mybluehair

I have a game that requires me to save alot of info to a txt file. The problem is, I must store all the individual things into separate txt files because I have no idea how to get c++ to read individual lines of a file. For example - I …

Member Avatar for csurfer
-1
139
Member Avatar for b1t.flash0r

The End.