49,761 Topics

Member Avatar for
Member Avatar for Geek1024

How to create a tweening effect to morph the alphabet A to the alphabet Z using OpenGl/Glut and C++ ?

Member Avatar for owenransen
0
149
Member Avatar for andrew mendonca

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 …

Member Avatar for owenransen
0
527
Member Avatar for hartk1213

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 …

0
78
Member Avatar for christinetom

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; …

Member Avatar for christinetom
0
130
Member Avatar for NardCake

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 …

Member Avatar for NardCake
0
618
Member Avatar for whatthebobo

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) …

Member Avatar for whatthebobo
0
163
Member Avatar for H_beginner

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 …

Member Avatar for deceptikon
0
286
Member Avatar for Cj

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 …

Member Avatar for richieking
0
1K
Member Avatar for Samier999

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

Member Avatar for richieking
0
349
Member Avatar for Rickname

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, …

Member Avatar for Rickname
0
467
Member Avatar for ranar

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 …

Member Avatar for rubberman
0
857
Member Avatar for ztdep

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

Member Avatar for rubberman
0
96
Member Avatar for andreagonz9

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 = …

Member Avatar for rubberman
0
219
Member Avatar for Syafiq_1

#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]; …

Member Avatar for richieking
0
180
Member Avatar for vampersie

#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 …

Member Avatar for vampersie
0
119
Member Avatar for maryamalik

i need help to draw hollow square . i am done making completely filled square . anyone pls ?

Member Avatar for gerard4143
0
125
Member Avatar for Learner010

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 …

Member Avatar for richieking
0
189
Member Avatar for Krasen

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 = …

Member Avatar for darkenmac
0
213
Member Avatar for dhruv_arora

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.

Member Avatar for Ancient Dragon
0
3K
Member Avatar for molu

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

Member Avatar for kellyperry15
0
274
Member Avatar for clasp1

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 …

Member Avatar for clasp1
0
624
Member Avatar for kymera

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 …

Member Avatar for stevedaniel
0
228
Member Avatar for Learningvinit

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;

Member Avatar for Learningvinit
0
505
Member Avatar for Neuman

The job market for c + + programmer is promising? And where it gets the best jobs? Thank you,

Member Avatar for Neuman
0
68
Member Avatar for Ahmadabbas

i want to solve this Q with out using any function i mean with simple programing plz help me

Member Avatar for Ancient Dragon
0
25
Member Avatar for andreagonz9

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; …

Member Avatar for andreagonz9
0
472
Member Avatar for ciocolatadulce77

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??

Member Avatar for Dani
0
153
Member Avatar for ali.mokhtari.560

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!

Member Avatar for Ancient Dragon
0
110
Member Avatar for cambalinho

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) { …

Member Avatar for cambalinho
0
233
Member Avatar for Sugondo

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 …

Member Avatar for richieking
0
164

The End.