49,761 Topics

Member Avatar for
Member Avatar for EJW2

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 …

Member Avatar for Reverend Jim
0
209
Member Avatar for Thomas_27

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 …

0
384
Member Avatar for Xozz

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

Member Avatar for Xozz
0
1K
Member Avatar for bianca2002

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.

Member Avatar for rproffitt
0
246
Member Avatar for abdallah mohamad

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 …

Member Avatar for rproffitt
0
299
Member Avatar for unknown06

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 …

Member Avatar for rproffitt
0
248
Member Avatar for Anwal_1

Hi, I'm Anwal from Pakistan. I'm student of Bechular of Computer Science.

Member Avatar for Dani
0
165
Member Avatar for Yanai_1

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.

Member Avatar for Reverend Jim
-1
139
Member Avatar for xfrankie1997x

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

Member Avatar for rproffitt
0
442
Member Avatar for piyush gandhi
Member Avatar for KarmaHunter
-2
11K
Member Avatar for Aaron_17
Member Avatar for gcarpanetti

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

0
249
Member Avatar for SIDDHANI

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

0
205
Member Avatar for Muhmd

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 …

Member Avatar for Reverend Jim
0
364
Member Avatar for Pragati_4

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

Member Avatar for rproffitt
0
117
Member Avatar for waheed saeed

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 …

Member Avatar for rproffitt
0
303
Member Avatar for ravss

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 …

Member Avatar for wwwalker
0
331
Member Avatar for Ahmed_76
Member Avatar for volan

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 …

Member Avatar for volan
2
835
Member Avatar for Gizen

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 …

Member Avatar for rproffitt
0
2K
Member Avatar for Petrus_1

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

Member Avatar for tinstaafl
0
406
Member Avatar for mko_1

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

Member Avatar for kevenm
0
460
Member Avatar for Waheed_4

https://drive.google.com/file/d/1JTM--EiH_qQOJiyBoN3-Eem2TYTKvqfT/view?usp=drivesdk

Member Avatar for rproffitt
0
155
Member Avatar for Petrus_1

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 …

Member Avatar for DGPickett
0
331
Member Avatar for Rekan
Member Avatar for rproffitt
0
144
Member Avatar for PitMalice

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 …

Member Avatar for rproffitt
0
525
Member Avatar for Sagar_16

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 …

Member Avatar for nullptr
0
153
Member Avatar for xCronex

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 …

Member Avatar for JamesCherrill
0
877
Member Avatar for misstj555

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 …

0
940
Member Avatar for Abdallaselim77

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

Member Avatar for Reverend Jim
1
907

The End.