49,761 Topics
| |
Create a Flowchart and C++ Program for the problem below. Click turn-in and attach your answers in .doc format. Please dont attach .cpp or .exe files of your program, just paste the code in MS Word below the flowchart, you may use Courier New font for the program. Thanks. Problem: … | |
//why the getters declared twice,public,and than protected at the end of this code? And how to assign the copy constructor between this 2 classes? class Person { private: string name; string address; string city; string state; string zipCode; public: Person() {} Person(const string& aName, const string& anAddress, const string& aCity, … | |
Hello! I am programing under visual c++ 6.0 winapi. I have a problem: I want to put the caret at a specific position of a specific Line. so how to do so? which message to send? any help is appreciated. | |
I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error [QUOTE] main.obj : error LNK2019: unresolved external symbol "public: __thiscall Intervals<float>::Intervals<float>(float,float)" (??0?$Intervals@M@@QAE@MM@Z) referenced in … | |
The code below is giving me the SIGSEGV error, segmentation fault at line number 66(found using debugger).According to me everything is fine but still don't know what is done wrong by me. Please someone help me out to sort the problem #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include … | |
Write a complete C++ program that ask the user to input two integers, then print if they are divisible by each other or not ( the division has no carry). If they are divisible print their division results on each other. Make sure avoid the divide by zero situation before … | |
Am trying to compile the following code in solaris 7 using sun workshop 5 below but I keep getting the following errors and have no idea how to fix it. ./timer.h, line 67: identifier redeclared: timer_create current : function() retruning pointer to void previous: function(int, pointer to struct sigevent {int … | |
Unlike linear programming, which has rather friendly software like gurobi or c++ that seamlessly incorporate into c++ system. For the problem class of Max-Sat, I have been searching for such a software without success. Does anyone know of some such software? Thank you:) | |
You are required to write a program that finds the number (in the given range) which has maximum number of divisors. The program first asks the user to input two values P and Q for a range (where p < Q). After that, the program should find a number having … | |
I'm a little confused about inlining member functions. Does all code actually have to be on one line or does it simply mean writing the whole function inside the class rather than from outside using the :: syntax? | |
hello I had a question that what is the meaning of function in C++. thank you | |
https://www.daniweb.com/software-development/cpp/threads/314577/simpletron-in-c Can anyone else revise this code? I changed the revised version but i still cant get it to work all the way... Your help would be much appreciated :) thank you! | |
Am trying to build xinetd on my solaris system am using sun workshop c++/c to compile the code but I keep getting the following errors error: `sys_nerr` underclared (first use in this function) error: (each undeclared identifier is reported only once error: for each function is appears in.) error: `sys_errlist … | |
| Hi. I'm trying to implement uniform interfaces for two breakout boards (adafruit's fona and sparkfun's Si4703 breakout) and I'm not sure how to go about writing wrapper classes. Can someone guide me through the basics of accomplishing this task? |
Problem1: Write the definition for a class named Vector2D that stores information about a two-dimensional vector. The class should have methods to get and set the x component and the y component, where x and y are integers. Next, overload the * operator so that it returns the dot product … | |
Hey there, I'm having trouble getting my program to read every instruction to then execute it, as well as displaying everything correctly. Right now my program displays mainly garbage and for now I simply want it to be able to successfully run a simple addition program, so any advice or … | |
how to make the simple malware using iteration on dev c++ ?? that using simple algorithm for do, or while do or do while | |
this is my program for list implementation in C++. And I want to print the first element in it. I write element until I reach 0 Can You show me the way to do it. Thanks #include "stdafx.h" #include "iostream" using namespace std; struct Node { int data; Node *next; … | |
Write a program that does reservations for a theatre with 5 rows of seats, and 9 seats per row. The rows are numbered from ‘A’ to ‘E’ (back to front) and the seats from 1 to 9 in each row. The user should be presented with a seat plan (showing … | |
So I have a couple of problems with this assignment and I need a bit of help. The first is Went ever I input the name of a college or university that I know is on the list, it causes an infinite loop and repeats the menu forever. This will … | |
I am a student in Computer Science, and am writing a small guide for my fellow students. It will contain a large list of the most commonly used and studied functions in C++ (e.g. Bubble Sort, linear search, file writing, etc.) and the code used to perform each function. I … | |
I need to find the smallest number in my 10x8 array grid fileld with random numbers I know im doing it wrong but I do not know what to do. Please Help! Heres my Code: //ArrayGrid #include <iostream> using namespace std; int main() { int total,average,smallest; int row=0; int col=0; … | |
I'm about to begin developing an application that requires some basic 3D rendering, so I'm looking into C++, as this seems to be the usual language for this type of thing and I have a book to help me with this project that includes some snippets of C++ code (not … | |
this is my program and every time shows me this error:18 26 :: [Error] statement cannot resolve address of overloaded function:: #include <iostream> using namespace std; int pow(int a,int b); int mabna(int n, int k){ int a,b,s=0 ; for(int i=0;i!=0;i++){ s=(a%b)*pow(10,b); s+=(a/b)*b; return s;} } int main (){ int a1,a2, … | |
Suppose I have the following class in a header file //tray.h #include <vector> #include "Eggs.h" #ifndef TRAY_H #define TRAY_H class Tray{ std::vector<Eggs> dozen; public: Tray(); ~Tray(); std::vector<Eggs> getTray() const; }; #endif And the following class file //tray.cpp #include "Tray.h" #include <string> Tray::Tray(){ } Tray::~Tray(){ } How do I initialize the … | |
#include<cstdio> #include<string> #include "inventory.h" #include "node.h" #include<iostream> using namespace std ; int main (){ inventory*obj1=new inventory(); int size; int id,i; char A[100]; char S_string; cout<<"plz enter the size of the list "<<endl; cin>>size; for(i=0;i<100;i++){ cin>>S_string; A[i]=S_string; } int a=strcmp(A[i],"new"); if(a==0){ for(int j=0;j<size;j++){ cout<<"enter the id"<<endl; cin>>id; obj1->new_id(id); } } getchar(); … | |
Hello, So I'm having trouble figuring out what the correct syntax is for a function with a return type that is a template type and is within a namespace. Anyone see anything wrong with the code below? -------.HPP file: #pragma once #ifndef EC_UTIL_H #define EC_UTIL_H #include "../CommonHeaders.hpp" #include "../core/common/APVertex.hpp" #include … | |
Can somebody help me to do a program that will simplify an expression using Boolean Laws |
The End.