48,985 Topics

Member Avatar for
Member Avatar for gil.nickson

hi, please help me how can i convert this C++ code to C source code ... please help ..... this is the URL http://cppforschool.com/project/super-market-billing.html i dont understand this though please help ... :(((((((

Member Avatar for f200196
1
39K
Member Avatar for John Ramil

i have an airline ticketing project and i cant figure it out, i need to take the name and age of passengers and depending on their ages they will get a discount (2% for 13 below and vat exemption + 20% discount for 60 above) and also the prices changes …

Member Avatar for Skillz_1
0
94
Member Avatar for imhim45

Hello..... Where I am wrong in this program. I am getting declaration syntax error. #include<iostream.h> #include<conio.h> int factorial(int) int main() {clrscr(); int n,r,nr,fn,fr,fnr; int ncr; cout<<"/n Enter n and r = "; cin>>n>>r; fn=factorial(n); fr=factorial(r); nr=n-r; fnr=factorial(nr); ncr=fn/(fr*fnr); cout<<"/n nCr ="<<n<<" C "<<r<<" = "<<ncr<<endl; getch(); return 0; } Thanx

Member Avatar for Deathstr0k3
0
3K
Member Avatar for isyae

can someone help me to do the friend function, i already do a coding a bit but i dont know how to continue. so i attached the instruction for referring ![Screenshot_(250).png](https://static.daniweb.com/attachments/4/8efada89fc4adfcd6daad821f8c48933.png) #include<iostream> using namespace std; class studInfo{ private: string name; int matric; public : studInfo(){ matric=0; } ~studInfo(){ } void …

0
42
Member Avatar for Husnain_6

I have written code to append, prepend and update a linked list using c++. But I am unable to figure out the problem. Can anyone help me to run it. I will be grateful for the favor. The code is pasted below: #include<iostream> using namespace std; class node { public: …

Member Avatar for Reverend Jim
0
141
Member Avatar for nouran_2

A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an application to assign seats on each flight of the airline’s only plane (the capacity of the plane is 10 seats of the same …

Member Avatar for rproffitt
0
107
Member Avatar for Uzo J

How would you write this into pseudo code #include<cstdio> #include<cstdlib> #include<iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) //variables string var, var1; float cm, mile, kilometer, inch, meter, AU, fahrenheit, celsius, foot, quit, i; //program i = 1; while (i <= 1000000000) cout << "Enter the starting unit. For …

Member Avatar for Reverend Jim
1
67
Member Avatar for A_m_i_n
Member Avatar for atn016

Write the class definition for a class named Employee. The class should include data members for an employee object's name and salary (the salary will be an integer). The class should contain two member functions: the constructor and a function that allows a program to assign values to the data …

Member Avatar for Muhammad Usama_2
0
518
Member Avatar for frctl

I have pasted my cpp code below, my goal is removing the whitespace from my .txt file. Is someone able to provide suggestions and help me figure this out? #include <iostream> #include <sstream> using namespace std; string solve(string s) { string answer = "", temp; stringstream ss; ss << s; …

Member Avatar for hes8
0
124
Member Avatar for Zelflyn

Declare a single dimension array of size n input n elements to a single dimension array Sort the elements of an array from highest to lowest and vice versa Also, the program will identify and output the highest and lowest integer.

Member Avatar for Dani
0
36
Member Avatar for Martin_53

How can I write in C++ a code in which a user select multiple similar names from a list of names.

Member Avatar for rproffitt
0
83
Member Avatar for Mallika_1

// Texture segmentation using Uniform Local Binary Pattern #include<iostream> #include<stdio.h> #include<conio.h> #include<malloc.h> #include<math.h> struct cluster { /* data */ float i[10]; float cumi[10]; int memcount; }; //variable declaration unsigned char **allocateMem(int,int); void applyKmeans(unsigned char **,int,int, unsigned char **); void calculateTexturevector(unsigned char **, int,int,float *); void initializecluster(unsigned char **, struct * …

Member Avatar for Maria_36
0
56
Member Avatar for Kate_12

Can someone please give me tips on how to accomplish generating a random number within a random range. See 'roll_dice' #include <iostream> #include <limits> #include <ctime> #include <iomanip> #include <cstdlib> using namespace std; using std::cout; using std::cin; struct Sanity { unsigned int turns = std::numeric_limits<int>::max(); unsigned int sanity = std::numeric_limits<int>::max(); …

Member Avatar for Schol-R-LEA
0
264
Member Avatar for darshanghorpade

For a given array of integers, reach to the end of the array from the 0th index with minimum number of moves. Moves possible at each index: Move from index i to index (i+1) Move from index i to index (i-1) Move from index i to index j, if a[i] …

Member Avatar for Fifth Horseman
0
195
Member Avatar for Christian_50
Member Avatar for Dani
0
23
Member Avatar for Afonso_1

Does someone know how to download a file in c++? A simple way. i just need it to download and save it to a specific directory.

Member Avatar for Dani
0
882
Member Avatar for Quoc_4

I have a question. do we have any function in C++ to get back the previous value while running the program? For Example: First Name: Anthony Last Name: john Gender: the pointer is at the Gender value right now soo is there any way to get back up at the …

Member Avatar for toneewa
0
79
Member Avatar for Ben_913

I am a novice in assembler programing, I will will appreciate if someone could review these NASM assembler code for me. Is about encoder decoder. The encoder performs the following: 1. pads the shellcode with NOP opcodes so it is 4 bytes aligned 2. a random byte is generated for …

Member Avatar for Dani
0
110
Member Avatar for Iram_3

A team has two types of players: Batsman, Baller. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his …

Member Avatar for Dani
0
91
Member Avatar for aimannafis12333

Can you guys help me to convert this C++ to C https://padlet.com/aimannafis12333/el9ytegudkw69o8e

Member Avatar for Dani
1
119
Member Avatar for emmamark

I am attempting to write a program that will take a word as input from the user. The program will then find all of the words that can be used from the letters in the word the user inputted. A letter cannot be used twice if it only appears in …

Member Avatar for toneewa
0
204
Member Avatar for jnbgames.dev

The program below is written in **C** and is used to convert numbers to words. These operations are beneficial during the development of word processing applications. The program takes the **input** file that contains the number and **outputs** the results in an output file. Let me know if you find …

Member Avatar for Dani
0
403
Member Avatar for jnbgames.dev

The program below is written in C and creates a structure that holds the values of a text editor. This structure is beneficial during the development of text editor applications. Let me know if you find the code below helpful and if you have any additional suggestions: /*----------------------------------------------------------- * Description: …

Member Avatar for Dani
1
81
Member Avatar for jnbgames.dev

The program below is written in **C** and is used to create a **learning management system**. This program is beneficial during the development of an **e-learning** desktop application. Let me know if you find the code below helpful and if you have any additional suggestions:

Member Avatar for Dani
1
358
Member Avatar for jnbgames.dev

The program below is written in C and creates a stack that holds the values of a maze. This structure is beneficial during the development of a desktop game that uses a maze. Let me know if you find the code below helpful and if you have any additional suggestions:

Member Avatar for Dani
1
280
Member Avatar for Schol-R-LEA

I've been working on the GUI portion of my [C++ Connect-N game project](https://github.com/Schol-R-LEA/ConnectN), and have gotten it to would could charitably be called a working state. However, the game AI, not to put it to finely, stinks. I was wondering if anyone here has more experience in implementing a minmax …

2
90
Member Avatar for jnbgames.dev

The program below is written in C and is used to perform fast number operations. These operations are beneficial during the development of spreadsheet applications. Let me know if you find the code below helpful and if you have any additional suggestions:

Member Avatar for rproffitt
0
226
Member Avatar for Kate_12

Hello Dani Web, I have written a program that needs to run on Ubuntu 14.0. It runs on Windows 10 and will compile in Replit. But I get this error in Replit. Can anyone figure out why? I assume it's in relation to my pointer "highScore". Can anyone figure out …

Member Avatar for Dani
0
63
Member Avatar for Schol-R-LEA

[Ranged Numeric Types in C++](https://github.com/Schol-R-LEA/Ranged-Numeric-Types-for-CPP) I've started writing a simple template class for automating range checking in specialized numeric types, inspired by the ranged types in languages such as Pascal and Ada. At the moment it is mainly meant for integer types, though I've made it flexible enough that it …

Member Avatar for rproffitt
0
259

The End.