49,756 Topics

Member Avatar for
Member Avatar for redtribal23

InputFile.txt Bea Sanchez Junior Math OPS HIGH 17 90 Nicole Sanchez Freshman Science OCC HIGH 13 98 Billy Cruz Senior English OPS HIGH 17 80 #include <iostream> #include <string>; #include <fstream> using namespace std; struct StudentNode{ string firstName; string lastName; string gradeYear; string subject; string schoolName; int age; int grade; …

Member Avatar for deceptikon
0
161
Member Avatar for myk45

Hi All, I saw some code where a `sem_init` was called with a value of 0. I didn't quite understand what this meant. I understand that semaphores can be used to protect shared data, in that we allow just one thread to access the data. And, the way to do …

Member Avatar for myk45
0
5K
Member Avatar for Pervin_1
Member Avatar for mridul.ahuja
0
110
Member Avatar for hannahaddad

Hi, i was working on corba project using java, now i want to do it on c++. but i don't know how to compile the idl file in c++. I'm using dev-c++ for c++. So what software should i have do compile the idl file?

Member Avatar for Hector73
0
440
Member Avatar for al2714

Hello All! I'm now creating a windows form application with login function. User need to input the id and password into two textbox. After clicking the "Login" button, the programme will compare the inputted id and password with a .txt file, if they match with each other, show a message. …

Member Avatar for Moschops
0
221
Member Avatar for hadi12426

i need your help i want to write a program which copy one folder or a file from one location to another location in c++???

Member Avatar for mridul.ahuja
0
145
Member Avatar for tnd2491

Hello All; I want to display logs in the following format as below:- XY,1,1114,ABCDEF,d1744783-0681-4f0c-adee-83277f5e4b85:286,192.168.33.211\n where:- XY is servername. ABCDE:- UserName. I want to display this specific log from the multiple logs of different server with different name. How to do that using threads ??

Member Avatar for vijayan121
0
178
Member Avatar for Alex_31

My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but here's a sample of it: 0 943 0 5 0 107 2 401 0 299 The first column is snowfall …

Member Avatar for Moschops
0
201
Member Avatar for St John

a c++ program the insert new element at the end of a linked list, and allow a user to search for specific item in the linked list. pseudoode for insrtion of new elements at the end of the list

Member Avatar for Zawar_1
0
156
Member Avatar for tentrabyte

Create a program that will ask for a two numbers and use the selected operators. How can i create this program without using switch statement? need some help..

Member Avatar for mridul.ahuja
0
312
Member Avatar for nitin1

I am working on a project and I need one CmakeList.txt file, Config file, spec file. I searched a lot. tutorials are telling how to make these files and all. Please tell me from scratch what they are and what is the use of these files? Please provide links also …

Member Avatar for mridul.ahuja
0
263
Member Avatar for tgreiner

When reading any beginning manual on C++ an array is introduced as follows: float A[10]; That format is valid, in that it compiles and seems to work just fine -- for a while. Later on in the manual we learn to allocate/release memory using the new and delete keywords. So, …

Member Avatar for tgreiner
0
224
Member Avatar for sheenalsingh

Write a C++ program that asks the user to enter the password. The password to this program is "password". If the password is correct, display the following message: "CORRECT!!" "ACCESS GRANTED" Else display: "Incorrect Password" "Please enter correct Password" Use a do.......while loop to complete the above task.

Member Avatar for mridul.ahuja
-1
163
Member Avatar for mohamed_49

Write a c++ program to compute Number of visits for salesman per month, where he takes 60 minutes in each visit and 15 minutes to move from visit to other. Then compute the total profit for this salesman if you know that the return profit for each visit is 500 …

Member Avatar for AkumaJack
0
218
Member Avatar for Shrijan_1

Hello everyone!! I am doing simple project on turbo c, i have made some codes for moving circle. While moving the circle it erases the previous backround design made beyond the playing area like scoring box and others. i need to check the coordinates of the cirlce and stop that …

Member Avatar for ddanbe
0
145
Member Avatar for Basil_1

Write a program which finds the factorial of a number entered by the user. (check for all conditions) (Beginner). Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 …

Member Avatar for <M/>
0
293
Member Avatar for DuduGuy

write a program that takes a three digit/two digit/one digit number as an input and displays the number in words

Member Avatar for davidnelson4911
0
272
Member Avatar for daniel1977

Greetings: I am having some errors on this code: Any ideas what is missing in the code? Thanks, Dani ` #include<stdio.h> void func_count(int); int main( ) { int i, num; for(i = 1; i < 21; i ++ ) { scanf(“%d”, &num); if(num < 1 || num > 6) printf(“Error: …

Member Avatar for tinstaafl
0
238
Member Avatar for Alyssa_2

This is my last question over my current running project. For some reason, when i call my object in my main program it gives me errors. If I try to call it as: Checkout_Simulation sim_obj; Then I get errors: Checkout_Simulation.cpp:16: error: missing template arguments before ‘sim_obj’ Checkout_Simulation.cpp:16: error: expected `;' …

Member Avatar for Moschops
0
712
Member Avatar for Wagaana

Guys is there a way how I can use winsock to design a simple web server, if possible please help me.

Member Avatar for Wagaana
0
114
Member Avatar for DS9596

I have to sort the 5 elements in a, the Days and the Vowels. How do I use the template <class T> with the way I put this?? #include <iostream> #include <algorithm> #include <iomanip> using namespace std; // Function prototypes void DisplayA(int[], int); void showArray(int[], int); void DisplayB(string[], int); void …

Member Avatar for nullptr
0
408
Member Avatar for daniel1977

Greetings Team: This code looks pretty decent. The program runs but it is incomplete. I need help making the program below work better. I did a MAIN function and the following funcations to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) …

Member Avatar for ravenous
0
169
Member Avatar for AQ

Hey guys, I'm new here and just to let you guys know that i've just started programming in C++ and I also started web designing.. i've joined this forum to increase my knowledge and to seek help whenever I need and I am looking forward to it.. just a random …

Member Avatar for tinstaafl
0
126
Member Avatar for markdean1989

Hi guys, good day! I have a question here pertaining to Visual C++ graphics based. I recently started out incorporating GUI into my C++ programs, in this case, a calculator. I have a textbox named TextBox1, the user enters the numbers and operators inside it, and when the button is …

Member Avatar for ddanbe
0
796
Member Avatar for tentrabyte

Guys I need help. can you help me determine what are the things that i'll used to run my program like this: Enter 5 numbers but refuse to display if the value is an odd number. Display only even numbers and the sum of all even number. I'm not asking …

Member Avatar for tentrabyte
0
300
Member Avatar for johans22

vector<vector<double>> v2d(2, vector<double>(3,0.0)); How later on reset all elements back to 0.0?. How to clear vec entirely, free memory?. Are there any performance degradation in using vector arrays verus conventionl arrays using new or malloc?.. What can be done to minize such degradation if any?.

Member Avatar for ravenous
0
297
Member Avatar for Surabhi_1

A parking garage has 5 customers daily. The garage charges a $5.00 minimum fee to park up to two hours. The garage charges an additional $1.00 per hour for each hour (or part of an hour) over two hours. The maximum charge for any given day is $12.00. All cars …

Member Avatar for Surabhi_1
0
375
Member Avatar for Surabhi_1

Write a program that reads in a list of names and ages until the user enters "quit" as a person’s name. When the sentinel (quit) appears as the name, your program should display the name of the oldest person in the list and then terminate. For example, with the list …

Member Avatar for NathanOliver
0
1K
Member Avatar for Surabhi_1

Write a C++ program that performs the following task. A user is to be prompted for an integer value sum that is supposed to be in the interval 0 . . 99. If the value of sum is not in the proper interval, the only actions that should take place …

Member Avatar for NathanOliver
0
135
Member Avatar for William Hemsworth

Hi, thanks for any help in advance. I was hoping to get some guidance for getting started with connecting to an SQL database online. I'm writing an application in Win32 which needs to be able to read/write to a database. I have plenty of experience with C++, but almost no …

Member Avatar for William Hemsworth
0
349

The End.