49,757 Topics

Member Avatar for
Member Avatar for adnan_6

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 …

Member Avatar for adnan_6
-1
205
Member Avatar for rythreion

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.

Member Avatar for NathanOliver
0
4K
Member Avatar for nathan.pavlovsky

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 …

Member Avatar for NathanOliver
0
226
Member Avatar for Kasxar
Member Avatar for Hassaan_3

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 …

Member Avatar for vegaseat
0
159
Member Avatar for Rafiii

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 …

Member Avatar for David W
0
2K
Member Avatar for Gulu Guliyev

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

0
104
Member Avatar for masaker

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

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

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

Member Avatar for David W
0
251
Member Avatar for Đăng

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.

Member Avatar for nullptr
0
80
Member Avatar for alexx006

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 …

Member Avatar for Schol-R-LEA
0
292
Member Avatar for Simon180

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 …

Member Avatar for Simon180
0
229
Member Avatar for new_developer

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 …

Member Avatar for Mayukh_1
0
226
Member Avatar for Norbert_2

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 …

Member Avatar for Norbert_2
0
745
Member Avatar for leonardo123

Write a C program to input an integer, and output how many times each digit occurs in the integer.

Member Avatar for mridul.ahuja
-3
152
Member Avatar for danila726

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 …

Member Avatar for Moschops
0
347
Member Avatar for ashhad kamal
Member Avatar for NathanOliver
0
221
Member Avatar for lewashby

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

Member Avatar for NathanOliver
0
199
Member Avatar for nathan.pavlovsky

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 …

Member Avatar for NathanOliver
0
153
Member Avatar for nathan.pavlovsky

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 …

Member Avatar for nathan.pavlovsky
0
516
Member Avatar for Mahnoor_1

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

Member Avatar for Mahnoor_1
0
224
Member Avatar for nitin1

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

0
142
Member Avatar for Mahnoor_1

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 …

Member Avatar for Mahnoor_1
0
786
Member Avatar for AQ

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

Member Avatar for basit_3
0
147
Member Avatar for nitin1

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 …

Member Avatar for ddanbe
0
223
Member Avatar for Ihteshamullhaq

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

Member Avatar for basit_3
0
125
Member Avatar for basit_3

guys how to make templete , or any link to tutorials of templete in c++

Member Avatar for Moschops
0
175
Member Avatar for basit_3
Member Avatar for Moschops
0
192
Member Avatar for niski

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 …

Member Avatar for niski
0
219
Member Avatar for kiail

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 …

Member Avatar for kiail
0
231

The End.