49,761 Topics

Member Avatar for
Member Avatar for john.kane.100483

Hi really need help. I'm new to programming and my teacher just gave a problem program "Conversion from any base to base 10" . So search in google and find this source code. I just combined the source code. This will run if it not combines. But I want this …

Member Avatar for David W
0
247
Member Avatar for mpid

what is the output that accepts integer value to num and i and calls a function that changes to zero the ith digit of a num if it is an odd value,if there is ith digit the value will remain the same.USE POINTER TO AN ARRAY.

Member Avatar for vmanes
0
66
Member Avatar for Elixir42

Hi Kind-DaniWebbers, How do you initialise a boost::archive:binary_oarchive in a different place to where you declare it? So: class CBase { std::ofstream m_ofs; boost::archive:binary_oarchive m_binOA(); // <== default constructor virtual void Open(std::string& s) = delete; }; class CDerived : CBase { void Open(std::string& s) override { CBase::m_ofs("filename.bin", std::ios::binary); CBase::m_binOA(CBase::m_ofs, /*flags*/); …

Member Avatar for Elixir42
0
417
Member Avatar for vegaseat

Here is an example on how to put at least lines and circles onto your windows console display. Yes, you have to jump through a hoop to do it. Dev-C++ can do this thanks to some BCX generated code. You have to set up your project as a Console Application …

Member Avatar for petersvp
0
10K
Member Avatar for Dostoyevsky

Hi All, I've just joined your community hoping to get help with Visual C++ and Visual Studio 2008. I'm not much of a developer and different people were putting this together for me so the code is a bit messy as well. Right now I have everything in place but …

Member Avatar for Dostoyevsky
0
252
Member Avatar for jainasamiento

• my assignment is to find the commission of each monthly sales,how can i get the right answer? monthly sales is 0-19,999(4%)/ 20,000-29,999(5%) /30,000-39,999(6%) / 40,000-49,999(7%) 50,000-above(9%) using if/else statement then,,how can I make a flow chart related on this problem.? can you plese lead me to the right answer?

Member Avatar for David W
0
262
Member Avatar for Za3mi

Asslam-o-Alaikum friends! Friends i am a student of bscs and trying to load an image on turbo c or anyother compiler such as dev c or c free which are common in use in our university. Please suggedt me what should i do first for this purpos??

Member Avatar for Za3mi
0
894
Member Avatar for DanJones

Hello, im trying to write a program that will read the id3v1 tag of an mp3 file, output the current information, and then allow the user to edit the ID3 tag. I can get it to output the information but I'm having some issues getting it to edit correctly. #include …

Member Avatar for BobS0327
0
1K
Member Avatar for Ezekiel_1

//my program should be able to collect two words and compare them outputing the words from word1 which are also in word2 and outputing them and viceversa. my problem is in the last four lines before the return. Please help //Program to shows analysis of texts #include <iostream> // for …

Member Avatar for David W
0
518
Member Avatar for Dang_1

I have some errors LNK2019 with my homework, but I can't solve it. My error Error 7 error LNK2019: unresolved external symbol "void __cdecl input(int * &,int &,class std::basic_ifstream<char,struct std::char_traits<char> > &)" (?input@@YAXAAPAHAAHAAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main E:\Ex\Bai_1_No_File\main.obj Bai_1_No_File This is my code. main.cpp #include "function.h" #include <conio.h> #include <fstream> …

Member Avatar for Dang_1
0
155
Member Avatar for billbouris5

I have a program that is writen in C++, and I'm trying to set up the cygwin interface in order to save it to the correct path, compile it using the correct commands, and send the output to the screen. I want to understand how to achieve the connectivity to …

Member Avatar for Andy_5
0
158
Member Avatar for killer88

Opnet uses proto C / Proto C++. It is a network simulataion software. It there any way to identify the receiver node id in wireless domain model.

0
84
Member Avatar for deliezer

Hi everyone, I am writing some PDE code, and I am just starting to think about parallelizing it. The code is extremely parallelizable by both CUDA (at the lowest level) and regular threading at the higher level. Specifically, I am coding a matrix multiply, and the matrix is banded, so …

Member Avatar for rubberman
0
219
Member Avatar for blazemadej

Hi all, need some suggestions. This code looks like a jumbled mess to me. I am missing something and am not sure what. -Main should determain the letter grade of an average based on a 10-point scale and print out this grade. 90–100 A 80–89 B 70–79 C 60–69 D …

Member Avatar for blazemadej
0
14K
Member Avatar for mxwarning

Hi, I am very new to programming and I am unsure of how to start coding in c++. I need to create a currency conversion program. I need the code. I do have VS but have no idea of how to start the process of the coding.

Member Avatar for mxwarning
0
316
Member Avatar for Ezekiel_1

//I am writing a program that converts from one unit like mm to another e.g cm. The program should prompt invalid unit when something other than mm, cm, m or km is entered as the unit to be converted from or unit to be converted to. The problem is how …

Member Avatar for Ezekiel_1
0
9K
Member Avatar for kingoo
Member Avatar for Duki
0
102
Member Avatar for mythos061

Hello, I have to code essentially what would mimic a std::map. I have a templated pair class, and a table class. I am given two tables, transition and action table, which are attached. Basically, I suppose to code a security system, where a door opens after someone punches in the …

0
291
Member Avatar for Vasthor

for (std::size_t iter = 0; iter != m_queryMap.size(); ++iter) { // note here, line = iter + 1; std::set<std::size_t> lineBuck; lineBuck.insert(iter + 1); const std::vector<std::string> &bucket = m_queryMap.at(lineBuck); } where std::map<std::set<std::size_t>, std::vector<std::string> > m_queryMap; // storing each line of input // crossed with the line number as its key yup, …

Member Avatar for NathanOliver
0
206
Member Avatar for Emma_3

I need the first and last names to be capitalized, so if the user inputs a lowercase, it'll change it to uppercase when it's displayed. But it's just the ASCII and I'm not sure how to fix it. Thanks! #include <iostream> #include <cctype> using std::cout; using std::cin; using std::toupper; char …

Member Avatar for Suzie999
0
219
Member Avatar for jr.sayre3

Please help me my teacher gave me a program and I don't know how to do it. So this the program the she gave me. "Conversion from any Base to Base 10". Please help me :(

Member Avatar for Lucaci Andrew
0
121
Member Avatar for Emma_3

So everything works right now, but I need that final section (will be turned into a function later) to display the number of A's, B's, C's, D's, and F's. It seems like it should be pretty simple, but nothing is working for me. Thanks! #include <iostream> using std::cout; using std::cin; …

Member Avatar for JasonHippy
0
178
Member Avatar for robelle

HI, the imput of my algortihme is C1,C2,C3,C4,C5,C6,C7, Target where the aim is : -C7 will be in target Position -C1 d'ont change it's position - keep the distance and the local position between C7-C6,C6-C5,C3-C2,C2-C1 C7-C6= mena the posiiton of the C7 relative to C6 (we must keep it and …

Member Avatar for robelle
0
132
Member Avatar for Emma_3

I need to find a digit at a specific postion in a number. Example number 652796, user inputs a 4, "2" is displayed. I have the basis for it, but most of the time, the output is incorrect. Not sure what's wrong. #include <iostream> #include <cmath> using std::cout; using std::cin; …

Member Avatar for vmanes
0
1K
Member Avatar for Webbsta

Hello, I am new to C++ and have been writing a server program to help me learn. I am currently stuck on how to get a couple of classes passed by reference. I have been searching on forums for hours now and I just can't figure this out. I would …

Member Avatar for Webbsta
0
232
Member Avatar for ramrokers
Member Avatar for Schol-R-LEA
0
166
Member Avatar for brandon66

Hey everyone, i was suppossed to convert my array notation over to pointer notation in my functions, but am i missing something? i though this would be correct. Can someone point me in the right direction #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; //function prototypes void …

Member Avatar for Ancient Dragon
0
156
Member Avatar for mixelplik

I'm parsing a date into three ints, then manipulating them. I then want to convert them back into strings so I can concactenate them with the slashes so I can search an array of dates saved in string format. I looked around and this code seems like it should work, …

Member Avatar for mixelplik
0
316
Member Avatar for Emma_3

I'm really struggling with this assignment. Here's what I have to do: Write a program that uses an array to store 10 elements, representing 10 students' test scores that will be entered from the keyboard. Given the following grading scale (given in my if statements) determine the letter grade each …

Member Avatar for Moschops
0
289
Member Avatar for blazemadej

I need to read these numbers from a file: 2 10.5 5 20 10 30.2 It is not working. It skips over numbers. The first row (2,5,10) is supposed to be Hours and the second row (10.5, 20, 30.2) is supposed to be Pay.Any help is appreciated.Thank you. Note: This …

Member Avatar for blazemadej
0
174

The End.