49,767 Topics

Member Avatar for
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
281
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
206
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
140
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
555
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
96
Member Avatar for MasterHacker110

I am kinda bord and dont know what to write. I have lerned the basics of strings, references, pointers, file I/O, classes, enums (simple error functions). Also some basic exceptions. And ofcourse all the other basics of chars, ints... So what are some cool "mini" project that i couldd work …

Member Avatar for MasterHacker110
0
151
Member Avatar for MasterHacker110

I am getting an error when i try to compile this code int StartProgram(string sProgramName){ ShellExecute(NULL, NULL, sProgramName, NULL, NULL, SW_SHOW); }

Member Avatar for MasterHacker110
0
4K
Member Avatar for MasterHacker110

I am trying to write a basic link list, so that I can understand how to implement it in C++. The tutorial I read was extremely advanced (giving more code than needed to understand and not explaining really how). So i tried to write this simple linked list: #include <iostream> …

Member Avatar for MasterHacker110
0
188
Member Avatar for A Tripolation

For my Optics course, we need to write a program that will take a certain input, perform a matrix computation, and output a system matrix. The program also needs to check for nonsense input and be able to "be adjusted" for any amount of matrix elements. I took a course …

Member Avatar for A Tripolation
0
251
Member Avatar for venky019

Hi, I have to open and read multiple files which are in same folders. I can search and collect the whole size of those files. But the problem is with when I'm copying the files to a buffer. How can I read the multiple files? I'm using this example for …

Member Avatar for venky019
0
448
Member Avatar for Suzie999

Hi. How can I properly, and explicitly destroy std vector? Here is how it is created. std::vector<std::wstring> vData = StringSplit(sData,L',');// StringSplit returns a vector of wstring Shortly after using and converting the contents of the container, I no longer need it, or want it hanging around in memory. I don't …

Member Avatar for Suzie999
0
321
Member Avatar for mustafaali382

how can i cout diamond shape # in c++,i get many programs form different web but i didnt got it.....plz make it simple and easy

Member Avatar for tinstaafl
-1
129
Member Avatar for vikuseth

I need to list out all the shared folders(directory) in the system along with their path . i want a command or an api in MFC, for listing out the shared directories. please help me in this

0
71
Member Avatar for Suzie999

I'm having a bit of a problem with how to code something. Here is how it is in my head. I want a function which is not part of a class to access members of that class, so I want to make the class global. I have done this with …

Member Avatar for Suzie999
0
471
Member Avatar for Suzie999

Hi Does anyone know if there is an equivilent of std::stoi (string to Int) for use with wstring that I am missing? Seems a bit odd that it would be ommitted from the library, but I cannot find anything. Thank you for reading.

Member Avatar for Suzie999
0
215
Member Avatar for MasterHacker110

I am trying to make an ATM program in C++, I was able to make one 1 C# but decided to try and implemment it int C++. I basicly have this .ini file #constant format: ACCOUNT_NUMBER PIN BALANCE 123 123 123.12 456 456 456.45 And this code: #include <iostream> #include …

Member Avatar for Moschops
0
438
Member Avatar for nmakes

I'm trying to make a function similar to strcat(char,char) in string.h header file. Somehow this code does not catenate the strings. Please help me make it better. void strappend(char *a, char *b) { int i; int start_pos = strlen(a); for (i=0; b[i]!='\0'; i++) { a[start_pos + i] = b[i]; } …

Member Avatar for nmakes
0
195
Member Avatar for CutP

Hey i have no clue what to put in the ReduceFration and CommonDemoninator sections. I know that you call the gcd function for ReduceFration and lcm function for CommonDenominator. Should be easy few lines of code but I'm a Beginner! Here's the code: #include <iostream> using namespace std; int gcd(int …

Member Avatar for deceptikon
0
279
Member Avatar for wilsonz91

Hello, I have a problem using Qt 4.8.4 on VS2012. I manage to compile the code but when I run it, it says: Qt: Could not initialize OLE <error 80010106> on the console but since it has reached the end of the program where it says 'press any key to …

Member Avatar for Terminator1337
0
542
Member Avatar for ncis_sg1

Ok so this is the first time I have ever seen this and it is very confusing. I have an assignment that I need to complete by Sunday night but I am having no luck in this question. Could anyone explain how I am to finish this in a easy …

Member Avatar for mike_2000_17
0
209
Member Avatar for PrimePackster

Hi guys, I have been working on a sudoku solver, that finds solution by brute forcing during my school days.... But due to the huge number of loops i couldn't do it at then.... SO decided to complete it now.... So here the algorithm: 1. Get the number of fixed …

Member Avatar for Gonbe
0
325
Member Avatar for John Linux

Hi, I am looking to write a internet scraper, and have considered the following languages: Python C++ Java The scraper will need to: - Retrieve HTML code from a page - Select a link, name and description from a section of the page - Ask for user confirmation (non gui …

0
77
Member Avatar for chocolatte.lavista

excuse me, can somebody help me to make a simple program that combine an array,function and pointer.. please... i'm already confuse about C++. please... thank you!

Member Avatar for Schol-R-LEA
0
126
Member Avatar for Navlag

So I have this OpenGL program that displays a cube using gluLookAt(0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); And it allows users to modify/rotate it along the x, y and z axis using input. Right now it looks it works pretty well, however, it terminates once the image …

Member Avatar for myk45
0
272
Member Avatar for wilsonz91

Hi, I wrote a simple windows form in VC12 which works fine. However, I am unable to terminate it properly. Upon clicking either the 'X' (close button) or a button I put in with the code, Application::Exit(); The GUI disappear/closes but the process is actually still running when I check …

Member Avatar for gusano79
0
243
Member Avatar for dan.gerald

I am having problem on removing root, moving the lastnode to the new root and applying the downheap. Here is my code snippet #include <iostream> #include "heap.h" heap::heap() { data=new myvector<heapData> (10); size=0; heapData item; item.key=0; item.data=0; insertItem(item); } heap::~heap() { delete data; }; void heap::insertItem(heapData item) { data->insertAtRank(size,item); size++; …

Member Avatar for buterous
0
498
Member Avatar for poopoowei

TASK 1 Your first task is to create a Makefile for a project. A project has been provided to you in the compressed file CSCI124-Lab3.zip. In this file you will find numerous headers and source files. You can ignore the fact the program is implemented using classes. The program once …

Member Avatar for NathanOliver
0
226
Member Avatar for buug

hello- total c++ n00b here and i'm having problems with an assignment where we're supposed to compare an array of exam answers to an array containg a predetermined answer key and then indicate whether the exam taker has passed or failed. my program compiles just fine, but i'm not getting …

Member Avatar for buug
0
133
Member Avatar for lucas.simon994

Hi, I want to construct a vector tree using the boost make_recursive_variant library. The point of desigin the tree like this is so that when I create a new node, it will be appended to some vector, which acts as a buffer, and then the myStruct_tree will contain pointers to …

0
59

The End.