49,761 Topics

Member Avatar for
Member Avatar for Schmelz

Hi, I a real newbie when refering to programming. I keep having this error but I don't know what it means. Can somebody help me? I looked it up on google but I couldn't find anything of usefull so I tought posting it. Can you please tell me what an …

Member Avatar for rubberman
0
271
Member Avatar for preslav_milev

Hello ! How i can find the smallest number, higher than average value. For example in deque I have these numbers: 46 84 25 93 91 25 37 32 64 49 17 81 59 38 79 22 57 17 61 11 (transferred from file Stack.txt to deque.txt). Тhe average of …

Member Avatar for David W
0
357
Member Avatar for payara111

How can i print it recursively with one helper function? [img]http://img2.imageshack.us/img2/1690/recursive.th.jpg[/img] Here, n will always be a power of 2 and c will be indicating the column number from which to start the output. The above pattern has been produced with the initial function call RecursivePattern(8,1) It prototype should be …

Member Avatar for Chetana_1
-1
2K
Member Avatar for Moataz_1

I'm doing a second year student in computer and information sciences and it is the first time for me to do a project in c++ so I need help . Project Description:- This project manages the bank activities. The bank has many branches. Each branch has basic information (Name, ID, …

Member Avatar for Stuugie
-1
491
Member Avatar for Callie C.

I'm not sure what I'm doing wrong so if you could take a look and give me some ideals it would be great. Thanks so much Specifications: Write a program that uses a two-dimensional array to store the highest and lowest temperature for each month of the year. The program …

Member Avatar for David W
0
366
Member Avatar for KittyKat15

I am working on a project that is due fairly soon. I am stuck and having trouble figuring out how to automatically make the fox in this problem move aggressively. Could anyone help? I am attaching the problem description.

Member Avatar for David W
0
73
Member Avatar for trishtren

Hi, I was wondering if anyone could help me or point me in the right direction. Iv been developing a source to source compiler for some time, so one language being translated to C++/C. Now the source has been translated i wish to package a windows and linux c++ compiler …

0
161
Member Avatar for rose_2

I need some help in that program to read 2 numbers and print sum of them the program will be tested on one or more test cases. The first line of the input will be a single integer T, the number of test cases (1 ≤ T ≤ 100). Followed by …

Member Avatar for rose_2
0
175
Member Avatar for phoenix254

How can i return an array from function in c++.. I have this code: #include <iostream> #include <string> using namespace std; int ordincreasente(int num[], int len){ int curMax,curMin,ordinato[len]; for(int i=0; i<(len-1); i++){ for(int j=i+1; j<len; j++){ if(num[i]<num[j]){ swap(num[i], num[j]); } }//end second loop }//end first loop for(int i = 0; …

Member Avatar for 2teez
0
666
Member Avatar for nathan.pavlovsky

Hello Programmers! I am working on a C++ phone number class. The class has overloaded stream manipulators, cin and cout for output. It has three private members: areaCode, exchange, and line, strings that represent the numbers that are used in a telephone call. It is supposed to default to (000) …

Member Avatar for 2teez
0
585
Member Avatar for Sai Jyothsna

Question: Trying more than two weeks but not getting corect program due date is already over.please hel me anyone For this project, the students are to use MS Visual Studio to program and run a simple multi-process console program using MPI in visual C++. The MPI libraries can be downloaded …

0
97
Member Avatar for Emily_2

I'm trying to write a program that has a user input student names, their ages, their GPAs, and their graduations dates (i.e. 'F13', F for Fall, S for Spring, then the last two digits of the year). This information goes into a linked list, then the user can search a …

Member Avatar for David W
0
365
Member Avatar for Joe_14

My assignment is to write a c++ program which does statistical analysis of a group of exam scores. Up to 100 scores may be entered. All scores should be validated within the range of 0-100. A (-1) will be entered to signify the end of data. Scores may be decimal, …

Member Avatar for David W
0
109
Member Avatar for surfingturtle

Dear members, Am learning C++ by Yashawant Kanetkar from his book "Let us C++", its been said his books are good for beginners who do self study like me, but I find some conflict of logic in this book, please help me clear those... The book says......the following code fragment …

Member Avatar for David W
0
270
Member Avatar for can-mohan

Hi , Below is the code of template smart point implementation. in below code snippet we are not allocating any memory in smart pointer constructer for ptr but still delete is called in destructor for ptr. Is it right way to implement the same ? can we delete the pointer …

Member Avatar for can-mohan
0
151
Member Avatar for Labdabeta

Hello, I am working on a moderately large web development system and have been charged with developing the server-side application for the web site. As a primarily local developer I have by far the most experience in C/C++. My favourite language is Ada, just to give you a sense of …

0
279
Member Avatar for Mr.M

Hi Dw. I'm developing a software but now due to some complexity of the program I had to do some engine with C++ and I want to be able to call and receive the events from a service. Here's the C++ code that receives calls when an application tries to …

Member Avatar for Mr.M
0
259
Member Avatar for cambalinho

i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP bmpBmp; // pointer to original bitmap info LPBITMAPINFO pbmiInfo; // bitmap info will hold the new 24bit bitmap info BITMAPINFO …

0
152
Member Avatar for Ivan_9

Hi, could somebody help me how to write a function that sort elements in two dynamic stacks(contained in an external file) by the quicksort method?I think I have written the other functions correctly but I find hard time on this one.Please help me if you can, I will appreciate it …

Member Avatar for David W
0
2K
Member Avatar for Ashildr77

Hello! I’m trying to write a small program to make a sort of animation using ncurses. I have an external file, a header file, and a main file so far. Header file contains a class with a constructor that is initialized in my cpp file, a void function that is …

Member Avatar for rproffitt
0
372
Member Avatar for TObannion

I've been away from programming for a bit, and I never really learned pointers that well. What I'm trying to do now is code from a model. Here's a link to the model: [Click Here](http://s1042.photobucket.com/user/AlanTuring11/media/123_zpsx47kycfm.png.html?filters[user]=144321721&filters[recent]=1&sort=1&o=0) My problem is that my output is not changing when I enter events. The program …

Member Avatar for David W
0
297
Member Avatar for 9tontruck

Hi, I am dealing with the shape drawing functions in C# and I am trying to resize DrawingGroup after drawing some shapes on it. Here is my code: DrawingGroup drawingGroup = new DrawingGroup(); Pen redPen = new Pen( Brushes.Red, 2 ); DrawingContext drawingContext = drawingGroup.Open() drawingContext.DrawRectangle( null, redPen, rect); double …

Member Avatar for ddanbe
0
169
Member Avatar for MedianHansen

At first, here's my source code: [code] #include <SDL.h> int main(int argc, char* argv[]) { //initialize SDL and the video system. if (SDL_Init( SDL_INIT_VIDEO)<0) return -1; //signal SDL to change the text of the main window to SDL "Hello World". SDL_WM_SetCaption("Hello world","Hello World"); //Create an SDL_Surface object, which represents, the …

Member Avatar for Slavik
0
6K
Member Avatar for עידן

Hi, i want to print game over screen for my snake game in c++. my screen size is 24*80, i dont want to change it. i try to print somethink like this: ________ ________ _____ ______ _______ ________ ___ ___ _______ ________ |\ ____\|\ __ \|\ _ \ _ \|\ …

Member Avatar for rproffitt
0
152
Member Avatar for Vinny_1

**Task** Your task is to write a program that will draw graphs and output them as a full colour image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and …

Member Avatar for rproffitt
0
1K
Member Avatar for Shayan_1

Hi!! i am new to C++. Can anyone help me to understand this code please... I can't really get it..... like these: && , endl. What these do and what do they stand for?? #include <iostream> using namespace std; int main () { int a,b,c; cout<<"Enter three integers :"; cin>>a>>b>>c; …

Member Avatar for Shayan_1
0
207
Member Avatar for Tommybb

I know the general answer would be a Programmer, But more specificlly what types of jobs would you program for? What fields benifit from C++ programmers ?

Member Avatar for parul26sha
0
1K
Member Avatar for kstin

I am terrible at C++ coding and have no idea how to write this code. Could someone please help me?? 1. Modify the linked list class you created in the previous programming challenges by adding a member function named reverse that rearranges the nodes in the list so that their …

Member Avatar for zelrick
0
150
Member Avatar for me vicky

Can anyone please look at code and tel what is issue in Laptop::Laptop(int wdSize, int memSize,int storSize, int spee,int wid, int hei , int len , int wait ) { Computer::Computer(int wdSize, int memSize, int storSize , int spee); width=wid; length=len; height=hei; weight=wait; } Computer::show(); which is a base class …

Member Avatar for incomer
0
704
Member Avatar for Muhammad_99

I'm trying to findout the size of the array. But instead of giving it 5 it is giving 2. Which is not correct. Formula for finding the size of the array is this. int size = sizeof(pArr)/sizeof(int); [You can see the working code here.](http://coliru.stacked-crooked.com/a/780601b9bccc03e7) For your copy code is shown …

Member Avatar for Suzie999
0
260

The End.