49,761 Topics
| |
How to create a tweening effect to morph the alphabet A to the alphabet Z using OpenGl/Glut and C++ ? | |
Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a … | |
hi i am making my own version of tetris and i have most of it working but for some reason they tetrominos are not being drawing correctly. its 9 files of code so its going to be a wall of code here is a screenshot of what it is looking … | |
Hi everybody.. Hope you're all well. I'm having a problem. How can I test for white space characters in c++ ? If I do the below it doesn't seem to work. char char1; // iterating through a file if (char1 = ' ') { cout << "WHITE SPACE" << endl; … | |
Hello! I was extremely bored and stumbled accross this website: [Hackerrank](https://www.hackerrank.com) It's a website that contains lots of programming challenges of various types. I signed up and looked at some of the challenges, lots of them are quite over my head since I'm not that skilled or any expert by … | |
I am currently writting a code for my programming class and have come across this error. I do not know how to fix it and was wondering if someone can help me or give me some hints. for (index = 1; index < SIZE; ++); { if (values[index] < lowest) … | |
I m reading data from a text file and then printing it. I am not sure what I am doing wrong but the program prints the last line that it reads twice. void bank_account::viewHistory() { ifstream in_file("bank_transaction_history.txt" , ios::in); if(!in_file) { cout<<"File error \n"; } cout<<"Event"<<setw(15)<<"Amount"<<setw(15)<<"Date"<<setw(20)<<"Current Balance"<<endl; string eve,dat; double … | |
For my c++ class i have to write a code that will read integers in to a 2D array from a file and then, using functions/methods, determine if the array is a magic square. My problem is that when i build or compile i get "error C2664: 'DataIn' : cannot … | |
I need this program please..... Using array and functions crate a program that asks the user to enter the information of ten of his\her friends (name, phone, DOB) and than primo the information in a form of a report | |
Hello, * I want somehow to force the Firefox OR Chrome browser to open the browser windows hidden ( the windows to have the SW_HIDE style from the start when they are created ). **For example :** If I want to open a new browser window besides my current one, … | |
Okay so i am trying to make it so i can unzip files using c++ and found a library called zlib i built all .sln file in the folder *contrib/vstudio* they all compiled succesfully but when i try to get this example to work /* unzips testfile.txt from C:\temp\test.zip and … | |
Dear friends: Could you please give me some information about the parallel performance of TBB on a multicores pc. what is the difference between the tbb and mpi. Regards | |
This part of the code in a program Im translating is giving me problems and I dont really know how to solve it. Could some one help?? does anyon know how to do it? void max(int int list1[], int list2[], int list3[], int n) { int j; for (j = … | |
#include<fstream.h> #include<string.h> #include<iostream.h> #include<conio.h> #include<stdio.h> class student{ protected: char name[40]; char roll[10]; char dep[5]; char batch[5]; void get(){ cout<<"\n enter the name"; cin>>name; cout<<"\n enter the roll"; cin>>roll; cout<<"\n enter the deperment"; cin>>dep; cout<<"\n enter the batch"; cin>>batch; } }; class cgpa:protected student{ private: char subname[10][20]; char subcode[10][20]; float gpa[10]; … | |
#include<iostream> #include<string> using namespace std; class A{ private: string id; string work; // same as class B int salary; public: void getid(string _id){ id=_id; } string returnid(){ return id; } void getwork(string _work){ work= _work; } string returnwork(){ return work; } /* if i need to use the data of … | |
i need help to draw hollow square . i am done making completely filled square . anyone pls ? | |
i learned about 1D Array , 2D Array , 3D Array.But today , suddenly my friend asked my a question on "how to access Array Elements". i said "just use array with index".like a[0],a[1] and so on. and then he replied(it seemed that he knew very well about array) "is … | |
Make flow chart from this code, how ? #include <stdio.h> #include <math.h> struct point { double x, y; }; struct point input_point() { struct point a; printf("x = "); scanf("%lf", &a.x); printf("y = "); scanf("%lf", &a.y); return a; } struct point reverse(struct point v) { struct point w; w.x = … | |
I recently installed Microsoft Visual Studio 2010 on my computer. I wrote a C++ program and I can't find any Build/Compile/Run options in Visual Studio 2010. Please, any one can tell me how can I compile C++ programs in MS Visual Studio 2010. | |
Write a C++ program that stores ten numbers into an array, and determines the total and average of the numbers . The program uses a do - while loop to add | |
Hi I just recently started learning about using the windows form application for C++. I am using Visual Studio 2010 and I have came across this problem. For instance, I am trying to read and write to a text file. Many guides suggest using StreamWriter^ and using namespace System::IO; to … | |
i need the whole c++ programming code for this because am making mistakes in it everywhere i think so pls help me.................. (printing distinct numbers) write a program that reads ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is display only once). (hint: read … | |
Hi I am trying to use counted_ptr with a class. Can anyone tell me about the syntax and how to use it. I tried as below but failed. class counted_ptr ; counted_ptr<MyClass>pmyClass= NULL; | |
The job market for c + + programmer is promising? And where it gets the best jobs? Thank you, | |
i want to solve this Q with out using any function i mean with simple programing plz help me | |
Im having trouble translating this c++ program into pep8 assembly language if someone could help with at least part of it, I would appreciatte it, it would be extremely helpful thanks in advance # include <iostream> using namespace std; int get1(int list[]) { int j; int n; cin >> n; … | |
De curand mi-am instalat windows-ul si aveam code blocks , imi functiona inainte sa instalez windows-ul dar dupa cand dau compilare imi apare o eroare de genul :No such file or directory, mi-am instalat iar code blocks si tot apare chestia ia :| Ce ar trebui sa fac?? | |
Hi every body.i want to make a factorial program with do while loop in the easiest way without using 'for' loop but i cant do that.please help me out! | |
heres my variant class: // *** ADDED BY HEADER FIXUP *** #include <cstdlib> #include <iostream> #include <string> // *** END *** #ifndef VARIANT_H_INCLUDED #define VARIANT_H_INCLUDED class variant { string a=""; public: variant (string value="") { a=value; } variant (double value) { a=to_string(value); } friend istream& operator >>(istream &is,variant &obj) { … | |
i have some problem about link the library to executable. i tried to statically linking but when i create the .a file i always failed, what i want to know is there any way for the exe look up into current directory instead of the system if i has all … |
The End.