49,761 Topics
| |
Here's a c++ library snippet that could be useful for string formatting (sorry, can't find how to add code tags): #ifndef STRINGFORMAT_H #define STRINGFORMAT_H const char newln { '\n' }; const char tab { '\t' }; const char bs { '\b' }; const char apo { ''' }; const char … | |
New to asking help but I'm desperate. I have most of the code I just need advice and also how to put the value from the file into the array and then pass to the functions without using any strings or string header. Basically trying to make this work and … | |
Hi. I just installed Code Blocks. I want to just get started with programming. It seems that I have to configure Code Blocks therefore, setting up a compiler. How should this be done? Help Leon | |
Hello! I am a beginner at c++ and want to create a tic tac toe game using stacks. So, I am very much in need of an example of code for tic tac toe with stacks, or at least a piece of advice since I am totally lost. | |
hello everybody im trying to compute the log(n) while n in the first time =10 and second time =100 , third =1000 and fourth = 10000 but an error still happenening the error is math domain error can anybody help in this code and error import math import logging n … | |
1. Airline Reservation System Green Dot airline has just purchased a computer for its new automated reservation system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the airline’s only plane. Assume the plane has 6 rows … | |
Hi, I'm Anwal from Pakistan. I'm student of Bechular of Computer Science. | |
Hello, everyone! I hope someone can help me to solve this. Can anyone give me example of making polygon with linked-list without using the built-in linked-list. The programming language is Visual Basic. | |
Hi, everyone i have a question to ask yous all, i have created a text story game on visual studio in the language c# but how to i identify the requirements for the text story game Identifying the requirements for the Text Adventure Game? Like aim, input requirements. output requiremtns, … | |
here is a wonderful short program to try out! A COUNTDOWN TIMER | |
Hello everyone. First of all apologies for my english. It is not my native languate and also if i break any good practice. It is my first Post. I'm triying to learn CGI programming in C. Just for learn purposes and i have been triying litle step by step tests. … | |
I’m stuck at a problem. I want someone to help me with how to proceed further? I’m working on a problem in C++. Its main idea is as follows. I have a buffer(vector in my case) in which each item holds 4 values. 1. start line 2. end line 3. … | |
A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks longer … | |
Hello, I have task to read the CSV file using C++ , the CSV file contains 10 rows x 3 colums float data and I want to read it and apply some mathematic and then the ouput should be stored in a new array.and the datatype required is double | |
write a c++ program in which you are required to devolpe a c++ program which encrypts the data of the user after entering his/her message in the character array the user will enter a number a new message will be generated by adding each letter to the number entered by … | |
I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ago(may be 15 years), and the way C++ is evolved now is kind of taking long to understand and not easy as 'C' to develop a solution. Would request … | |
I am working on a problem for which i have already developed a solution, but i am new to OPP prgramming and started learning recently. Would request OPP Gurus to provide suggestions for the better designs, keeping scalability, extendability of (course readability) in mind. Also,I would like to extend the … | |
Hi everyone, I'm new to parallel programming, and my project is the two-dimensional matrix vector multiplication using mpi in C programming language. I have this multiplication function, but I don't know exactly how to run it with mpi. Can you help me, please? I write these commands, $ mpicc -g … | |
can you help me add a write and read function to the program below #include <iostream> #include <conio.h> #include <windows.h> #include <stdio.h> #include <fstream> using namespace std; struct daerah { char kel[50]; char kec[50]; char kota[50]; }; struct data { int nomor; char nama[50]; char tinggi[20]; char status[20]; char pekerjaan[20]; … | |
#include<iostream> #include<string> using namespace std; class stack { string item; int top; public: stack() { top=-1; } void push(char ch) { top++; item[top]=ch; } char pop() { char ele; if(isempty()) { printf("\n stack overflow!!"); return '@'; } ele=item[top]; top--; return ele; } char peep() { return(item[top]); } int isempty() { … | |
https://drive.google.com/file/d/1JTM--EiH_qQOJiyBoN3-Eem2TYTKvqfT/view?usp=drivesdk | |
I have a lecture is there anyone who can help me to change the source coding below to OOP C ++ I / O which uses #include <fstream> so that when the file is written can be saved and when the program is closed then we can still write the … | |
I need someone help me in c++ Phone book project using linked list | |
Assume that you are the manager of a restaurant. Create an interactive program that allows you to manage the order from your customers and compute your daily sales. First create a text file that contains the menu of your restaurant. Arrange the menu such that the items are properly organized … | |
while compiling this code i have got an error Declartion not allowed here its a C program title of the program is " LIBRARY MANAGEMENT" #include<stdio.h> #include<stdlib.h> #include<string.h> struct library { char bk_name[30]; char publisher[30]; float price; }; int main() { struct library l[100]; char pb_nm[30],bk_nm[30]; int i,j, keepcount; i=j=keepcount … | |
This is my code. #include "pch.h" #include <iostream> #include <Windows.h> #include <string> #include <ctime> #include <fstream> using namespace std; std::string AppName = "League of Legends"; LPCSTR LAppWindow = "Riot Client"; std::string AppStatus; bool IsAppAvil; bool Update; int main() { //Start App ShellExecuteA(NULL,"open","D:\\Games\\Riot Games\\League of Legends\\LeagueClient.exe\\",NULL,NULL, SW_SHOWDEFAULT); //Checking if app is … | |
Hi. I am attempting to make a GUI program as a personal project in C++ using visual studio. This is what the program does: If you run the program at 2:30pm, the program will check off a box that says "you are in hour two" (because the hour of the … | |
MyMainWindow::createUI() { label = new QLabel("foo"); button = new QPushButton("Browse"); connect(button, SIGNAL(clicked()), SLOT(browse())); layout = new QHorizontalLayout(); layout->addWidget(label); layout->addWidget(button); setLayout(layout); } void MyMainWindow::browse() { QString directory = QFileDialog::getExistingDirectory(this, tr("Find Files"), QDir::currentPath()); if (!directory.isEmpty()) { if (directoryComboBox->findText(directory) == -1) directoryComboBox->addItem(directory); directoryComboBox->setCurrentIndex(directoryComboBox->findText(directory)); } } MyMainWindow::createUI() { label = new QLabel("foo"); button = … |
The End.