49,757 Topics
| |
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> … | |
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. … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
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 … | |
An unsigned long(9999999000) returns 1410064408. Any explanation to it? | |
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 … | |
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 … | |
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, … | |
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 … | |
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. | |
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 … | |
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]; … | |
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 … | |
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 … |
The End.