49,757 Topics

Member Avatar for
Member Avatar for sapphyr

Hi, I'm trying to make a program that prints a solid square of asterisks based on the side size entered by the user. The code builds fine but it doesn't work when I try to run the program. I get some code (looks like hex)? Please help! [CODE] #include <iostream> …

Member Avatar for sapphyr
0
156
Member Avatar for Web_Sailor

Hi, I have a data I want to make fix length records Like suppose:- [CODE]one two three four one two three one[/CODE] In this case the fixed length should be of the maximum string length which is of the first line. My code below is giving creating faulty fix lengths. …

Member Avatar for jonsca
0
231
Member Avatar for nerdinator

How do I fill a part of the view (in mfc vc++)with a color.Like say,I just drew a circle,how do I fill it with some color?

Member Avatar for nerdinator
0
332
Member Avatar for foxmulder

Hi! I was just wondering if any one could show me some example of how a function of this would look like? Heres the description: Write a program with a minimum of a function, which is used to locate and after returning x-th smallest number in an integer. Ex: given …

Member Avatar for foxmulder
0
103
Member Avatar for foxmulder

Hi again! I have these four different if-then that I hope someone could help me with. [CODE] int i, j; cin>> i>> j; if (condition) ( court << "The condition is true!" <<endl; )[/CODE] Create conditions so that the condition is true if a) j is not more than 5 …

Member Avatar for foxmulder
0
146
Member Avatar for sisse56

The program asks the user what they want to do by selecting their choice from the MENU. even in case 1. the program asks the user to input physician name ,but as I do it only works for single character for example.if I input physician name <Sisay> the loop goes …

Member Avatar for jonsca
0
105
Member Avatar for j1979c

I have some kinda problem each time i create a vector of strings. There is no error if I create vectors of other data types such as int, double, etc. Though there's no error...but there's warnings...and sometimes the program hangs if i do sortings. Here's an (without sorting but still …

Member Avatar for borlys
0
572
Member Avatar for nathan_jun2

Hello guyz!!! Please help me to search a records in text file. The text file written of this records: Ben 2010-0001 300.00 John 2010-0003 400.00 Mike 2010-0002 190.00 I want to input only the employee id and it will display the name and salary if that record is existed. Here's …

Member Avatar for nathan_jun2
0
116
Member Avatar for meghanetpulse7

This question is bugging me for past 3 months. I have no clue how to do it , though i am not programmer. But worse thing is coder who created software for me , got no clue. I even launched this project of sending reg keys 4 times to 2 …

Member Avatar for meghanetpulse7
0
121
Member Avatar for makan007

I am doing a program to get a sample infile.txt & ouput to outfile.txt I encountered alot of probs which I can't solve now. I am having issues reading from infile.txt & display the correct result in outfile.txt Pls enlighten me further. The program have to submit this Tue. My …

Member Avatar for jonsca
0
191
Member Avatar for wheelie

With regard to the following code. I have only included Memory.h in ClassA.cpp, but ClassB.cpp still seems to be able to see it. How do i make it so that ClassB does not use the operator new in Memory.h, but the usual one? Am am I right in thinking it …

Member Avatar for CppBuilder2006
0
115
Member Avatar for nschessnerd

Hey I'm trying to tell a remote process to run a command using (the other processes) command line (like cin). currently i use createremotethread and inject some asm into the process, but the thread sometimes conflicts with other threads and crashes the program. so now i am trying to use …

Member Avatar for nschessnerd
0
112
Member Avatar for mir_sheely

I am Making a STACK class which could hold a Binary Tree Nodes. I have defined a class Node. Then made a linkedlist classs. and finally the stack class. All are Template based. But during compilation it is giving me the following error. error: expected constructor, destructor, or type conversion …

Member Avatar for Fujur
0
3K
Member Avatar for mohamedqamar

hey xpert i'm class 12 cbse student...unfortunately i'm not able to get the output from my project. the project is based on bank employee detail.........i'm gettin the output ,but the thin is xcept aading records of the employee i'm not able to do other operation like modifiaction,deletion,listing...!!!!!!! your will be …

Member Avatar for Ancient Dragon
-3
174
Member Avatar for sodak

I'm writing a program that writes the Summary Information in the Properties dialog box for some files that I've created. In other words, when you right click on a file, click properties, and go to the summary tab, the fields such as: Title, Author, Category, and Comments should have some …

Member Avatar for jonsca
0
107
Member Avatar for CppBuilder2006

when a window is not active (eg it is minimized, hidden, or under other windows) it does not receive mouse click messages. I am going to write a program that produces a few circular waves around mouse pointer whenever the user clicks. my program is always hidden & so it …

Member Avatar for CppBuilder2006
0
250
Member Avatar for samsons17

why in this code the "codeArray[]" is used?? what does its really means?? [CODE] #include <iostream> using namespace std; void FunctionTwo (int codeArray[]){ cout<<codeArray[1]; } int main() { int codeArray[3] = {1,2,3}; FunctionTwo(codeArray); } [/CODE] Thank You for helping...

Member Avatar for gusano79
0
138
Member Avatar for coolfriend

Plan and code a guessing and betting number game, as described by the text below and the sample output but do not write any functions (other than main). An appropriate welcome message with your name in it should be shown at the start of the program. The user starts with …

Member Avatar for Nick Evan
0
85
Member Avatar for mrnutty

Some background. We all used the string class, but some of you might not know that string is just a typedef of basic_string. In fact here is the typedef you might find when looking in the XString library. [code] typedef basic_string<char, char_traits<char>, allocator<char> > string; [/code] This code snippet shows …

Member Avatar for Dave Sinkula
2
3K
Member Avatar for ibackus

I'm trying to write a very simple program to print out in the terminal the first 10 entries in a long binary file composed of floats. The idea is to make this work something like 'head' in the linux terminal (but for binary files). The problem I have is I …

Member Avatar for ibackus
0
127
Member Avatar for GyanPP
Member Avatar for GyanPP
0
144
Member Avatar for group256

Hi, I'm supposed to write a code of my TSP assignment using brute force algorithm. Although there are still some darkness about how to do it. I know what is TSP but I don't know how to start it. Let's say that we have 4 cities(A, B, C, D). Using …

Member Avatar for pecet
0
1K
Member Avatar for Austinnh

Greetings to all. I'm having an error that occurs whenever I try to build a project in Dev C++. I can compile an individual source file fine. I have tried reinstall. I only have this error on my laptop (Vista). Everything worked fine on my other computer (XP). I have …

Member Avatar for Austinnh
0
3K
Member Avatar for dpfaff

Hello People, I took a class in C++ about a year ago and really liked learning to write code and working with with programs. I did not do very well in the class, in fact i ended up with a C-. Recently I decide that I wanted to try agin, …

Member Avatar for Lerner
0
141
Member Avatar for noobday

I've been trying to compile a very simple c++ code ; when trying to compile on codeblocks it says : error - stray '\312' in program [CODE] #include <string> #include <iostream> using namespace std; int main() { char letter1, letter2; string lastName; cout << "Enter your two initials and last …

Member Avatar for noobday
0
855
Member Avatar for DTV

Is it possible to move the screen focus in allegro. Like, key[KEY_UP] would move the screen up on a map? Thanks in advance.

Member Avatar for DTV
0
68
Member Avatar for Kreddy89

Hi guys, I am getting similar "identifier cannot be found" errors, except with "mkdir" they look like: 1>------ Build started: Project: shot_detect, Configuration: Debug Win32 ------ 1>Compiling... 1>film.cpp 1>c:\documents and settings\kedar\my documents\downloads\shotdetect-1.0.86\shotdetect-1.0.86\src\film.cpp(22) : fatal error C1083: Cannot open include file: 'ffmpeg/swscale.h': No such file or directory 1>image.cpp 1>c:\documents and settings\kedar\my …

Member Avatar for Kreddy89
0
489
Member Avatar for phpangel

hi, i have the following code for tic tac toe game Human vs. Computer, it runs without problem but when i prompt for entering X or O, it gives an error, can someone help, appreciate the answer. here's my code: [CODE]#include <iostream> #include<conio.h> #include<process.h> using std::cout; using std::cin; char matrix[3][3]; …

Member Avatar for WaltP
0
1K
Member Avatar for ball3r

Hi guys, Firstly, a quick thank you to whoever put this site up, wealth of advice and everyone here sounds helpful. I'm quite new to C++ and programming in general so go easy on me. I'm trying to find a way through a maze from a given start point through …

Member Avatar for WaltP
0
5K
Member Avatar for pac-man

hi guys, I've created a function that returns the number of times a value resides in a container (in this case, vector). The user is able to specify were in the vector they wish to search for the value. [CODE] int number(int n, vector<int>::iterator start, vector<int>::iterator end) { int count …

Member Avatar for pac-man
0
228

The End.