49,757 Topics
| |
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?? | |
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 … | |
//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 … | |
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> … | |
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 … | |
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. | |
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 … | |
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 … | |
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. | |
//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 … | |
what are three examples of derived datatypes as used in OOP. | |
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 … | |
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, … | |
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 … | |
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 :( | |
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; … | |
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 … | |
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; … | |
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 … | |
hellow sir i am getting problem while installing turboc++ | |
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 … | |
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, … | |
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 … | |
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 … | |
A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Plz give me its code,I tried a lot but failed. | |
{ #include "stdafx.h" #include <iostream.h> #include <stdio.h> #include <string.h> class inventory { private: int prodID; char prodDescription[20]; int qtyInStock; public: inventory()//default constructor { prodID=0; strcpy(prodDescription,"-"); qtyInStock=0; } inventory(int a,char *b,int c) //constructor that initializes a new Inventoryobjects with the values passed as arguments { prodID=a; strcpy(prodDescription,b); qtyInStock=c; } }; int … | |
I am having a little trouble with my class Person program. It runs and builds without error...Yay....except I am getting 0 output. Anyone have any advice? #include <iostream> #include <string> #include <vector> #include <stdlib.h> using namespace std; class Person{ private: string name; int age; public: Person (string n, int a); … | |
In my windows8 system conio.h header file is not working.Can any body tell me any idea about working of this header file. | |
Hi! I have just started on c++ and have encountered Expression: (unsigned)(c+1) <=256 Error when I am trying to run the program. The program is suppose to generate an array of letters (lowercase and uppercase) of size from 15 to 25. After the generation, using ONLY one while-loop, try to … | |
A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Following are the guidelines for program,program must include these things. Input: names and telephone numbers, Output: list … |
The End.