49,761 Topics

Member Avatar for
Member Avatar for akvino

I have MSCS with extensive Software Engineering education in C++. Professionally - I am linux admin, but itching to get into code development in C++. One thing I never understood - what are the entry level jobs in C++ - what do you need to be able to do, program …

Member Avatar for Ancient Dragon
0
124
Member Avatar for atticusr5

Hello all I am trying to link a program using Vi for my class assignment and I am getting the following error in Vi when I try to link: Assign4.o: In function `__static_initialization_and_destruction_0(int, int)': Assign4.cpp:(.text+0x17b): undefined reference to `cCourselist::cCourselist()' collect2: ld returned 1 exit status Here is my source code: …

Member Avatar for Ancient Dragon
0
152
Member Avatar for blueman:-0
Member Avatar for Excizted

Hello. I'm going to create a stack of pointers to objects, and I need to implement an identifier with the best performance. Those objects are custom classes. I'm wondering what would be best for performance. Either of these two ways, or maybe a third better way?. 1) Making an std::map …

Member Avatar for Excizted
0
131
Member Avatar for invinate

hi, i'm having trouble compiling this code: SparseMatrix.h: [CODE] #ifndef SPARSE_MATRIX #define SPARSE_MATRIX #include <ostream> class SparseMatrix { //class data ... SparseMatrix operator+(const SparseMatrix& rhs) const; SparseMatrix operator*(const SparseMatrix& rhs) const; }; ostream& operator<<(ostream& out, SparseMatrix& rhs); #endif [/CODE] SparseMatrix.cpp: [CODE] #include "SparseMatrix.h" ostream& operator<<(ostream& out, SparseMatrix& rhs) { ... …

Member Avatar for invinate
0
199
Member Avatar for kriszy0515
Member Avatar for hag++
-3
74
Member Avatar for blueman:-0

[CODE]#include <iostream.h> #include <math.h> void main () { int n,j,q,d,h,t,i,m,f,b; cout<<" num of eng"; cin >> j; q=0; d=0; h=0; t=0; for (i=1;i<=j;i++) {cout<< "insert Salary "; cin>> m; m /(22) =d; d/(8) = h; cout<<"\n Leave "; cin>>f; cout<< "\n Attend "; cin >> b; f - b = …

Member Avatar for mrnutty
0
183
Member Avatar for asa88

i want print this image out... 10 11 ___ / ()\ _|_____|_ | | === | | |_| o |_| || o || ||__*__|| |~ \___/ ~| /=\ /=\ /=\ [_] [_] [_] [CODE] #include <iostream> #include<fstream> #include<string> using namespace std; int main() { string filename; int number; cout<<"enter the …

Member Avatar for abdelhakeem
0
154
Member Avatar for sexyzebra19

I was just hoping to get some advice before I start writing my program, I need to put two columns of data into some sort of data structure, and each number has about 25 decimal places. Can anyone recommend the best one? Would storing them as a vector work? Thanks …

Member Avatar for sexyzebra19
0
148
Member Avatar for yUhki

In a gymnastics or diving competition each contestant`s scores is calculated by dropping the lowest scores received and then adding the remaining scores.Create a program that allows the user to enter 8 judge`s scores and outputs the points received by the contestant.Format the output with two decimal places. ( A …

Member Avatar for Fbody
-3
141
Member Avatar for zero_crack87

i want this software rite now 4 m final year project to be linked with opnet modeler 7.0. Other version of C++ did'nt compatible with this opnet.pliz help me....tq

Member Avatar for Nick Evan
-1
289
Member Avatar for jayrana

1. I am new use to player/stage. I need to write a code to navigate a robot from a given position to a target position. How do I go about doing that? 2. Can I use VFH driver to do that? I dont understand how to use the following commands …

Member Avatar for Salem
0
69
Member Avatar for gillanism

hi all, i am really stuck with c++ pointer issues. what my program is supposed to do is to take input from user and recognize whether the entered string is a valid word from the grammer S::= a|(S) hence grammer should accept words like... a, (a), ((a)),(((a))).... i have done …

Member Avatar for gillanism
0
116
Member Avatar for XxWARGASMxX

Hey all I'm trying to create a program that takes a predetermined number (monthly salary in this case) and rather than printing as a number it prints it as text. However when I input a number all I get is random stuff that makes no sence. I will include the …

Member Avatar for Narue
0
81
Member Avatar for toleen

hi i need a program that set the clock to 00:00:00 if the user not enter the clock then the program should count the time and print it on the screen until reach the user input for example: the time is 12:44:6 a.m. and the user enter 4:3:50 a.m. to …

Member Avatar for Narue
0
149
Member Avatar for jefanot

Hey, I was just wondering, but what code do you need to be able to press a few buttons on your keyboard. Like, if I want to type "Cheese is yellow on the moon!" I'll just run the program. Or if i want to do ctrl+alt+del to go to task …

Member Avatar for Ancient Dragon
0
607
Member Avatar for Nexadus

Hello, I have this problem that's been bothering me on the back of my head for so long now. I don't know how to pursue or even break it down, I've tried reading the book, look at notes, nothing helps. Problem is, I have this file which contains /* Nitrite …

Member Avatar for Nexadus
0
110
Member Avatar for vino chithra

is cyclic hashing possible?? ie., consider an array of size 5.. hence the index would be form 0 to 4... so if we insert 53,63(takin the function as value mod size of the array) the index 3 and 4 would be filled up...and when we insert some 54 again an …

Member Avatar for Narue
0
77
Member Avatar for twelvetosix

Hey guys, I recently wrote a C++ program for a company I'm doing an internship with that asks the user for the location of .txt files and then the program opens each .txt file, gets the necessary information from each files, then outputs the information to a .txt file that …

Member Avatar for twelvetosix
0
1K
Member Avatar for sailee
Member Avatar for jrkeller27

Hi, I'm just wondering if there is a good place where I can find some tree implementations for c++ (Splay trees and Heaps, in particular). Any input on resources where there is source code for different tree implementations would be appreciated, as I don't have the time to write one …

Member Avatar for amromun
0
185
Member Avatar for sidra 100

please chk my code. it works well but is its logic correct? Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum speed of the Train …

Member Avatar for iamthwee
-1
85
Member Avatar for swolll

I've worked on it for a few days. It works great when I comment out the erase function. But it doesn't work when I include the erase function, which I use to remove an element in the playlist vector of type Songs. Here's the else if statement. The problem is …

Member Avatar for Agni
0
176
Member Avatar for Total Casual

I was writing a function to dump the contents of a 'matrix' in a vector-of-vectors to cout when I ran across conceptual difficulties. Here's the code of the working function: [code=c++] #include <iostream> #include <vector> using namespace std; void output_string_matrix(const vector<vector<string> >& matrix) { vector<vector<string> >::const_iterator rows_itr; vector<string>::const_iterator cols_itr; for …

Member Avatar for javelin
0
104
Member Avatar for Lukezzz

I have a size_changed event in my Form that did cause a MessageBox with the below message. It says that can enable "just-in-time (JIT) debugging" but are not sure how to do this. I cant find: machine.config... [B][U]MessageBox Error:[/U][/B] To enable just-in-time (JIT) debugging, the .config file for this application …

Member Avatar for kvprajapati
0
347
Member Avatar for sutty8303

I need help with this problem. I have tried writting the program, i just can not get it to run properly. Problem is: Create a function named 'circle_area' that will find the area of a circle. This function should have the following prototype: float circle_area(float radius) circle_area should return PI*r^2. …

Member Avatar for peter_budo
0
300
Member Avatar for ishaiman

hi, I have this assignment can anyone solve it? THe programme statement is Problem Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum speed of …

Member Avatar for sidra 100
-3
277
Member Avatar for atticusr5

Hello all Im back with another crazy assignment from my professor and I'm running into the following debugging errors in Vi (we have to use it) so here are the errors: Assign4.cpp: In member function âvoid cCourselist::Load(Infile_t&)â: Assign4.cpp:105: error: expected unqualified-id before â[â token Assign4.cpp:109: error: expected unqualified-id before â[â …

Member Avatar for atticusr5
0
111
Member Avatar for bman214

Hello. I am working on a game called Kingdom Management. It was working fine until I added in the buildings you can make. Then it started skipping over the building, lawmaking, do nothing, and quit sections. All it could do is research. Here is the code: [CODE] /******************************************************************************* Kingdom Management …

Member Avatar for bman214
0
140
Member Avatar for Anarionist

I downloaded the latest version in the repository and unless the tutorial im following is incorrect in the #include function then im lost. here is the code im trying to compile taken from the tutorial. [CODE] #include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world!"); …

Member Avatar for Anarionist
0
97

The End.