49,757 Topics
| |
My dears , I have a opengl c++ program that works fine in the vs2013 and draws tree. Now I want to use that program in the qt gui open gl project. I know how to make gui program and add classes and headers. But I do not know how … | |
hi!im new in c++ i need help how to make a software that convert any number that the user will enter and convert it in any base that the user will enter. It will convert it and show the result. | |
Hello all! When would it be advisable to use string iterators vs the "for char c in string" loop that is a feature in C++-11 or vs the for (int i.....) loop? And why? The only two situations I see myself using string iterators is for the STL algorithms and … | |
An electricity board charges the following rates to domestic users to discourage large consumption of energy: Unit used (u) Residential rate Commercial rate 0 < units <= 100 6 8 100 < units <= 200 8 13 200 < units <= 400 12 17 500 < units <= 800 17 … | |
Hello, so this user input all in one line string , i need to parse the input into two categories: user age and user name. for example , the user input -->> [23:Frank] [15:Jack] [45:] [33:sofia] [] in this case i have more than one argument (delimiter, total of 3 … | |
Good evening to all. I have a question related to programming contest between countries or universities and so on. Does anyone know the best programming book for olympic contests for C++ programmers ? Best Regards | |
**Student and Courses Record Management System (LinkList of LinkList)** In this Assignment you need to create a small student and courses record management system with following functionalities. 1- Add New Student This function will allow you to add a new student record,you can use any three attributes of your choice … | |
i try to compile this programme and thasn't work :p i think that the problem come from the string fonction (int r=strcmp( CL[j].nomC , cl);) #include <stdio.h> #include <conio.h> #include <string.h> struct etudiant{ char nom[7]; char prenom[7]; float not1; float not2; float not3; float moy; }; /*struct branche{ char nom[10]; … | |
Hi community, I want to prevent user input character in Edit Control on a dialog. I think i need to catch WM_Char to prevent showing the character, but i do not know how to do it. Thanks for your help. | |
Hi everyone, I’m beginner and I need a little help. I have to make RPN (postfix) calculator using stack which is implemented by singly linked list in C. Now I found that but in C++ and I’m having trouble translating it to C. Can you help me getting things to … | |
I have some source code done back when time first started and long before unicoding of a old gaming/chat system used mostly in 90s knowing to millons of young gamers as mplayer.com now questions I have is the server side was coded for Solaris Sparc/Intel server core using Sun workshop … | |
Hi everyone, My program is crashing on taking input of alpha-numeric and store it in char[]. I don't know why, please anyone help ! sample input : C9H8O4MgOH #include <iostream> #include <string.h> using namespace std; bool hydroxide(char[]); int main() { char formula[] = ""; cout<<"Enter chemical formula : "; cin … | |
Hello dear members, i am looking for a solution for my problem: -I want to write .ini values (xor-ed) -Then i want to read the .ini (un-xor) -Finally i want to be able to access the values Example : [test] boom = 1 haha = 23446453 text = ADSdsajew I … | |
Write a C program to input an integer, and output how many times each digit occurs in the integer. | |
Hello everyone. I am new to c++ and I just wrote a program. I am on linux so just saying. This is the code. What keeps happening is all the commands just keep coming. here is an example. Welcome to the Calculator. Please enter your operation. addition Please enter your … | |
how can i make a calculator using function and procedure.. | |
#include <iostream> #include <cstring> using namespace std; class String { private: char *ptr; public: String(); String(char* s); ~String(); operator char*() { return ptr; } int operator==(const String &other); }; int main() { String a("STRING 1"); String b("STRING 2"); cout << "The value of a is: " << endl; cout << … | |
Hello all! I am working through a book here and it says that there is a class-template "basic_string" that is used in the namespace std as `typedef basic_string<char> string;` to create an alias for the "string" type. However, I know that there is a header file `<string>` for the declaration … | |
Hello Programmers! I am trying to write a recursive implementation of the quicksort algorithm in C++. I believe you all know what it is so I shall not go into the details. However, I run this, but it never ends. Going through it with a debugger shows that my partitioning … | |
hey guys Im here again :P Here is my code for bank account class.. #include<iostream> #include<iomanip> using namespace std; class account { private: int account_balance; public: account(int acc) //constructor { if(acc>=0) { account_balance=acc; } else { account_balance=0; cout<<"initial balance is invalid"<<endl; } } int credit(int ammount) //credit member function { … | |
I built one Sync code. I am using eclipse for the same. Actually my code is working fine in eclipse. But when I run it in Tizen OS device. I am using beecrypt library for the same. I have one line auto_ptr<Mac>(Mac::getInstance("HmacSHA256")); Actually, it is throwing exception on this line. … | |
can anyone please tell me what's wrong with my code? I have made this code but the compiler is giving the error that all member functions are non-class type. I can't fix this. Here is my code: #include<iostream> #include<string> using namespace std; /*class Invoice which demonstrates capabilties */ class invoice … | |
hey guys can anyone tell me what is actually happening in the code given below.?? #include<iostream> #include<conio.h> using namespace std; int main() { int randNum = (rand() % 100) + 1; while (randNum != 100){ cout << randNum << ","; randNum = (rand() % 100) + 1; } cout<< endl; … | |
I read about cherry-picking. It says: You have one branch x1 and branch x2. You want to take one commit from many commits of x2 and want to merge it with x1. You have 4-5 commits in x1 and now you take one commit or range of them and want … | |
#include <iostream> using namespace std; main() { int matrix[2][2]; for (int i = 0; i<=2; i++) { for (int j = 0; j<=2; j++) { cout <<"Please Enter matrix "<<i<<"th row and "<<j<<"th Column "; cin >>matrix[i][j]; } } //Display the Matrix for (int i = 0; i <= 2; … | |
guys how to make templete , or any link to tutorials of templete in c++ | |
Hey guys, I've started building a program for college, everything was running really smooth and I've started to pick things up in the past couple days, but for the life of me I cannot find where I have a syntax error, neither can my friends :/ I've tried looking up … | |
Okay, so I've got a carpet calculator program. It figures feet, calculates cost. I have a class named RoomCarpet that I receive the error C2228 left of '.getFeet' must have a class/struct/union in the .cpp file. I'm declaring in RoomCarpet.h and trying to implement in RoomCarpet.cpp. I have the .cpp … |
The End.