49,761 Topics

Member Avatar for
Member Avatar for modarbz
Member Avatar for DeanMSands3
-3
160
Member Avatar for tdee

You will create a program that determines the language of a given input file based on the words in that file. The structure of the input files will be one word per line (all lowercase letters). You should read these words in one LETTER at a time. Each input file …

Member Avatar for VernonDozier
0
237
Member Avatar for killer88

I am intrested in making an antivirus program. i have no idea where to start. please give me suggestion , where do i start ?

Member Avatar for Ancient Dragon
1
95
Member Avatar for annefr

Hello I am working on this project and I am having great difficulties could anybody help me please ??

Member Avatar for annaharris
0
76
Member Avatar for ConfusedLearner

For some reason my program is not working and dont know how to solve this problem. In line 15 the "users" is underline in red and will not run. Please help. #include <iostream> #include <cmath> #include <iomanip> #include <string> #include <fstream> #include <C:\Users\N.\Desktop\Popcorn\Popcorn\JJ.cpp> using namespace std; int main() { fstream …

Member Avatar for Schol-R-LEA
0
164
Member Avatar for VictorK19

I'm sorry but could someone deleter this article for me? I already figured out the bug. I'm sorry :(. It's basically the function to display the message is called twice, one inside another function, and the other by me ... ---------------------------------------------- The assignment requires the implementation of both patterns I …

Member Avatar for tinstaafl
0
157
Member Avatar for wschamps42

Hello, for some reason, I am getting a very weird negative nuber as my average for my program, here is my code: int sum, avg; sum = 0; avg = 0; for(int i = 1; i < size; i++){ sum += array[i]; } avg = sum / size; my output …

Member Avatar for vmanes
0
244
Member Avatar for hoorul.ain.779

how will we create a date header file in which user must be able to perform: 1: get and set current day,month and year. 2: increment by x number of days,months and year. 3: set default date. default date should be declared as a static member.

Member Avatar for Ancient Dragon
0
247
Member Avatar for Suzie999

Hi. I am looking at creating a small app which will gain access to and use the Internet Explorer DOM. I want to access the DOM of an existing instance of Internet Explorer. The app will be basic and simple, and will be first used to retieve properties of web …

Member Avatar for Suzie999
0
534
Member Avatar for solomon_13000

I am a Java developer but out of curiousity I would like to find out why is it not necessary for a method to declare an exception when coding in C++? So does it make C++ a weaker language since it enforces a weaker rule?

Member Avatar for mike_2000_17
0
225
Member Avatar for ralph.d.abernathy.1

Hello everyone. I'm working on a project that acts as a function generator to output a sine wave. The program also outputs an excel file with all of the data points so one can plot the points. For some reason, when I add noise, the graph does not look right. …

Member Avatar for ralph.d.abernathy.1
0
415
Member Avatar for lilbluemonky

I am having some problems with a program that I have due soon....I could use some serious help. I am going to post the requirements in this post, if you can help please let me know!

Member Avatar for annefr
0
164
Member Avatar for cthajeb

Hi, I am writing a sudoku solver program that uses recursion to solve all the empty cells. However, I have no idea why my function did not do anything. I read in my puzzle as double char array and convert it to double int array. My output is : 900020750 …

0
290
Member Avatar for boris90

Hi! Below is a part of my code, and whenever I this part of code starts executing, an error ocurrs! I get this error: [click here to get a error screenshot](http://i.stack.imgur.com/loBcH.png) whenever I add the *ios:app* parameter after the *userScore.csv* part, except that my file isn't QueryLanguage.Lib.dll, but rather something …

Member Avatar for boris90
0
416
Member Avatar for nathan.pavlovsky

Hello, I am making a "High Scores" Program from Chapter 4 of Michael Dawson's *Introduction To C++ Through Game Programming Book (3rd Edition)*. In it, a vector consisting of 3 numbers is made and multiple manipulations are made to it through Standard Library Algorithms. There is a situation where the …

Member Avatar for JasonHippy
0
582
Member Avatar for vikuseth

For getting the share folder name i have been used the following code , here i am able to get the folder names . But the problem what i am facing is along with the share folder created by the user it gives some extra folder also , i don't …

Member Avatar for ktsangop
0
326
Member Avatar for tombombadilly

Hello, I've been working on some test OpenGL programs in C++ using SDL to manage sound, window management, events... etc Today I plugged in my external monitor into my laptop and found that *no* openGL program I had written would work with it plugged in, all I get is the …

Member Avatar for ktsangop
0
257
Member Avatar for owenransen

Writing an upgrade to my program I'd like to start using the nullptr, a cleaner replacement to NULL. My question is can I use it everywhere, for example in checking the strstr return value? if (strstr(szLong,"tag") == nullptr) Presumably will work as well as if (strstr(szLong,"tag") == NULL) ?

Member Avatar for Tumlee
0
694
Member Avatar for Xecantur

So I wrote a small little tic tac toe game, it works without fail, now I'm just looking at ways to shorten this if/else conglomerate I've created, but so far haven't thought of a way to do so, I thought about using a switch but thought it would be about …

Member Avatar for Xecantur
0
174
Member Avatar for otengkwaku
Member Avatar for Terminator1337

Hi there, I'm encountering an error when I'm trying to make a EntityManager for an Entity class. My problem arises when I'm trying to return the second value of a map (data). Here's my code: EntityManager.hpp: #include <iostream> #include <SFML/Graphics.hpp> #include <map> #include <memory> #include "CEntity.hpp" class CEntityManager { public: …

Member Avatar for Terminator1337
0
190
Member Avatar for tdee

You will create a program that determines the language of a given input file based on the words in that file. The structure of the input files will be one word per line (all lowercase letters). You should read these words in one LETTER at a time. Each input file …

Member Avatar for tinstaafl
0
184
Member Avatar for Griff0527

Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once …

Member Avatar for Griff0527
0
531
Member Avatar for freelancelote

Hi, just wondering... is there a site offering some sort of c++ programming mentoring? Something like: make this programme... how would you do it? and then people writing code for it. Would that be a feature for DANIWEB?

Member Avatar for Lynqu2
0
145
Member Avatar for iPwn.Line

hi as you may notice i am new here so hi nice to meet you:).. uhhhmmm please help me on a project i'm working on about insertion using linked list my problem is on line 19-20 I can't seem to make it work,, when you type 9 7 6 4 …

Member Avatar for Griff0527
0
277
Member Avatar for L7Sqr

Hello. This code snippet is a basic calculator. The general concept is that the calculator accepts infix expressions as strings, converts them to reverse polish notation by way of the shunting-yard algorithm and then evaluates the resulting expression. I tried to encapsulate the functionality of each piece so that, in …

Member Avatar for happyuk
2
6K
Member Avatar for Catchamouse

I have a h file with this code: #include <windows.h> #include <iostream> struct Color { int color; Color(int color_): color(color_) {} Color operator + (const Color & other) const { return Color(this->color | other.color); } }; #define FORE_LIGHT(color) const Color cfl##color##_ = FOREGROUND_##color | FOREGROUND_INTENSITY; #define BACK_LIGHT(color) const Color cbl##color##_ …

Member Avatar for Ancient Dragon
0
204
Member Avatar for iEpic

Been at this for hours and cannot figure out how to get this the way I want. I need it to center the text in the console output like this... ******************************************* ABC Industries Report ******************************************* instead its coming out like this.. ********************************** ABC Industries Report ********************************** Here is what I …

Member Avatar for tinstaafl
0
139
Member Avatar for nmakes

I have a **digital photo viewer keychain** by some company called **INNOVAGE**. I searched about it online but I can't find its webpage anywhere. The CD which came with it is empty and the device does nothing other than showing **"updating"** while connected to the PC. It doesn't even start …

Member Avatar for nmakes
0
548
Member Avatar for ahmed.m.alshammari

Write a C++ program that reads two numbers at a time representing the diameter and its frequency. Then calculate and print the mean diameter.Use a for loop.

Member Avatar for <M/>
0
93

The End.