49,761 Topics
| |
When there is a if while else in pseudocode how do you interpret it in a flow chart. For example, a1 if c1 { a2 while c2 { a3 } } else { a4 } is the else statement connected to the if statement or the while statement and if … | |
Please consider the code below. This is a smaller version of what I'm trying to accomplish. Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in `positions`. `ret` pair is used by me in order to know … | |
I'm including these three files in my C++ program: [CODE] #include <stdio.h> #include <cstdlib> #include <iostream.h> [/CODE] The C++ compiler I am using (Dev-C++ 4.9.9.2) Allows me to run this program. but I still receive an error message saying: [CODE]#warning This file includes at least one deprecated or antiquated header. … | |
I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue … | |
Hi everyone I'm studying the part about while-statement but I don't understand the explanation in the book really well and the example doesn't work for me so I can't see it with my own eyes how it works. Can someone explain what the while-statement means and does? Also can you … | |
Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being. … | |
aoa guyz...plzzzz help me...i have to do a project whic should be related to data structure...kindly suggest me the easiest project becoz em very weak in programming...:( | |
Hi all, I was looking for a piece of code to simply obtain the manufacturer of the CPU in your computer (might also be known under vendor ID). I found it difficult to obtain a code as basic as possible. I had already coded this once in Assembly language, still … | |
help me to write a program which sets/arrаnges spacеs in width, аlign left, аlign right how can I align text? pls,can you explain in detail? | |
please i want to return multiple values in c++ , and i have this peace of struct struct returns { int row_locs,col_locs; int row_descriptors,col_descriptors; double **locs; double **descriptors; }; and i have this pease of call by reference void returns (int &row_locs,int &col_locs,int &row_descriptors,int &col_descriptors,double **locs, double **descriptors){ } the … | |
Using Winsock and C++, I have successfully created a server which runs on my pc good and well. The problem is, I would like this same (console) server to run at a different IP address (that is not my home IP address). If my server (which is called server.exe) is … | |
Write a function (seat_type) that reads an input from the user that represents a seat class. The user should enter F: for a first class seat, C: for a business class seat, or Y: for an economy seat. The function should validate the user input to accept only F, C, … | |
Sorry guys, this is a huge chunk of code that looks inefficient as f***. This was for a class I had last spring, so I'm not rying to cheat I just want an answer. So here's the assignment, Develop an object-oriented program to produce a grade report and an error … | |
Hi, imnewbie to c++ programming. Im want to read some txt file that have a data write inside. The data should be "WAT1235" which is the license plate number. Then if the programming read this data "WTA1234" it will give other information like the Roadtax, Colour of the car and … | |
I am using MCI controls to play media files within some software. For the most part, it works OK but sometimes things go poorly (e.g. when the media file is corrupt). How can I either put the code into a try/catch (i.e. what exception do I look for?) or how … | |
Write a C++ program to compute and display a person's monthly salary as determined. If the status is Technician the person receives RM70 perday for 26 days work in a month. If the status is Lecturer the person receives RM200 perday for 26 days work in a month. if the … | |
| |
Write a complete C program that asks the user to input two sets of integer numbers each of size 5 and store them in two arrays A and B. The program then outputs the elements that are common to both sets (available in both A and B). If there are … | |
Hi there, What is the easiest way to declare and initialize 2d dynamic array in class in C++ ?? Please tell me the easiest way, I have used 2d dynamic array in Java. Thanks ! | |
Ok basically what I am trying to do is this. There is a game and it has an address that changes but always contains the same value. So what I'm trying to do is enumerate from a starting address of this running process in this case 0x0120DE13 and read what … | |
3 years ago, one brother solved this problem, i need this program to make some calculation. actually, i have some fractional/decimal component t (like 2.0213, 3.047) this program can only take integer. Can anybody please help me !!! #include<iostream> #include<fstream> #include<string> #include<cstdlib> #include<cmath> #include<iomanip> #include <windows.h> using namespace std; //void … | |
**Here is the assignment:** Write a C++ program to calculate and display the number of primes in the first 50 “chiliads”. Your results should be exactly as presented below, under testing. Design Considerations: I think you will find your program easier to structure and write if you break it down … | |
A road distance table may be used to give the distances between some towns as shown below. To simplify the programming of distance tables, we assign numbers 0, 1, . . . to the towns. Then we may get a distance table like this: Towns Number Alor Setar 0 0 … | |
#include <iostream> #include <fstream> #include <windows.h> #include <iomanip> using namespace std; void printMainPage(); //customer need to register 1st Page void printUserPage(); //User(registered customer) page void Login(); bool openFileIn(fstream &, string ); //fstream in_file("Register and Login Details.txt"); fstream file("Register and Login Details.txt", ios::out | ios::in); int main() { printMainPage(); system("cls"); printUserPage(); … | |
Hii guys.. Iam having problems with visual c++ i created a win32 application in visual c++..then if tried to execute a noraml turboc3 developed C++ porogram..then it is showing some errors regarding the header files... the error is... 1>cvar.cpp 1>d:\mallika\stuff\cpp\cvar.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No … | |
I am writing a program for a clinic now. here is my code ,the problem now is I need to write 2 functions for my program The first function : is to capture time of registration The second function: is for treated time of patient -each patient can consult DR … | |
I cannot get the microsoft SDK installed. This is the log file. I'm on windows 7 pro 64bit. I am running Kaspersky Internet Security 2013 if this may be an issue. Any help would be appreciated. 10:29:27 AM Sunday, May 19, 2013: ------------------------------------------------------------------------------------------------- 10:29:27 AM Sunday, May 19, 2013: [SDKSetup:Info] … | |
I have a combobox in a dialog which I populate in the resource editor with this string: -12;-11;-10;-9;-8;-7;-6;-5;-4;-3;-2;-1;0;1;2;3;4;5;6;7;8;9;10;11;12 If the user chooses a new number from the combobox lots of other things happen in the dialog, then I select the number chosen again, this time programatically. (Some numbers are not … | |
Hello. I made this program. It's designed to be a version of the game "Game of Life", except text-based and played entirely in cmd. Now, the program is working fine, but I would like to get some suggestions for things I could have done more efficiently, or anything else that … |
The End.