49,761 Topics

Member Avatar for
Member Avatar for Usura

it is possible to change the colour of the font in the terminal by using come sort of code, not sure of the correct term, what im after is like cout << "hello" << endl; and hello would be bold or a different colour, can that be done?

Member Avatar for dubeyprateek
0
103
Member Avatar for ShadowScripter

Greets, A string array in C++ can be initialized, just like everything else. With that in mind, how do you count the number of items in the array? I mean, how many rows? Let me give you an example using Char arrays (having two dimensional since it's not like string) …

Member Avatar for ShadowScripter
0
93
Member Avatar for Sam_Surrey

Hi guys, i have been having problems with this piece of code all afternoon, i have never seen this error myself before and cant see how the problem is applicable in my situation from looking though the various forums of the world ! Basically the program is a small game …

Member Avatar for Sam_Surrey
0
125
Member Avatar for gretty

Hi I have to create a program that takes in 2 arrays (each array containing 5 values). The program will check whether the 5 values of array one contains the same values of array 2. I have done everything to make this program work [B][I]except[/I][/B] ....[B]how write an algorithm that …

Member Avatar for siddhant3s
0
4K
Member Avatar for spectrum6125

Alright so I'm working with a program that works with various email programs and I'd like to use it to automate the login process. I know I can open a browser using ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL); but how would I actually parse the login/password strings into the text …

Member Avatar for Sky Diploma
0
113
Member Avatar for effective

You are to design a class class called Employer data members: char name[] long int ID double salary , and two constructors _Default construtor Person () _Copy constructor Person ( char n[30],long int id,double s) _setPerson (char n[30],long int id,double s) that allows user to set information for each person …

Member Avatar for ithelp
0
102
Member Avatar for Project_Panda

Hello, I unfortunately failed my advanced c++ class last semester so I need to retake it. Our first assignment is to "Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student …

Member Avatar for ithelp
0
113
Member Avatar for Reg74

Here's my function that i call from main. However i'm getting an error "stackType undeclared" Does anyone know what i'm doing wrong ? [CODE="CPP"] template<class Type> void removeX(queueType<Type>& Q) { stackType<Type> stackQ; while (!Q.isEmptyQueue()) { stackQ.push(Q.front()); Q.deleteQueue(); } } [/CODE]

Member Avatar for Reg74
0
87
Member Avatar for hydravien

Hi, I am hopign someone will take this on as a simple little project as it would be of great help to me. I have a CNC plasma machine which cuts sheets which are about 4ft by 10ft. however, sometimes we only use about 4*4ft of the sheet. I would …

Member Avatar for nexocentric
0
188
Member Avatar for clutchkiller

I am writing an app right now that needs winmm.lib. I tried typing winmm.lib in the project properties under the correct section, but kept saying that does not exist. So i did a little research and found that if i type -lwinmm it works. I am using dev-c++. Can anyone …

Member Avatar for clutchkiller
0
111
Member Avatar for shea279

I'm looking for some sample code which would demonstrate AES encryption using SHA 256 as the hash. 1 or two .cpp or .h files would be appreciated, I prefer not to mess with huge libraries or folders of unnecessary headers. I looked on google and found a semi-functional AES example, …

Member Avatar for ArkM
0
149
Member Avatar for iconz113

can someone help me create pseudocode. Im writing pseudocode representing a payroll application, this includes over time hours, payrate, tax and social security deductions. I need to now incorporate.................................... Your pay calculation pseudocode must be changed to accept input from a file. You need to read each record from the …

Member Avatar for ArkM
0
234
Member Avatar for trung_a10

Here is my code.... #include "stdafx.h" #include <iostream> using namespace std; #include <iomanip> int _tmain(int argc, _TCHAR* argv[]) { int a,b,c,d; cout << "Previous odometer reading: "; cin >> a; cout << "New odometer reading: "; cin >> b; cout << "Gallons added to the tank to fill: "; cin …

Member Avatar for Nick Evan
0
78
Member Avatar for vikaschndr

Hi, I have created a windows service in Visual studio 2005 C++, which will encrypt a file and send it to a server using socket. For this I am using OpenSSL, I am running in to following issues 1) I could not find the library method of OpenSSL which can …

Member Avatar for vikaschndr
0
166
Member Avatar for zoner7

There is clearly something wrong with the else statements in this code. This program essentially mirrors the attack/defense rules in the game risk. The attacker roles 3 times. The defender 2. The best two roles of the attacker are taken and compared to the defender's two roles. The defender wins …

Member Avatar for zoner7
0
90
Member Avatar for nalasimbha

Hi, I am trying to extract data from a text file into an array or even a vector. The example data in the file "data.txt" is in the following manner Home number = 123456 Mobile number = 789012 Office number = 567987 Balance = 46.56 ... ... ... I want …

Member Avatar for Lerner
0
238
Member Avatar for Liszt

I wonder if anyone know if VC++ 2008 express edition have the possibility to use Secure FTP (SFTP). As I have understood that is not possible. (I am not talking about the SSL cerificate over FTP). If not, I am searching for a library that goes with this. I have …

Member Avatar for Ancient Dragon
0
123
Member Avatar for gimst19

Working on creating a matrix with given paremeters and then solving the matrix. The matrices A and C come out just fine, but there is a seg fault when I try to run the lud files. Can anyone help? Thank you very much! [code] #ifdef HAVE_CONFIG_H #include <config.h> #endif #define …

Member Avatar for Stinomus
0
185
Member Avatar for miskeen

Hi guys, Is there any special method in c++ called get and which doesn't require instantiation? I'm investigating a c++ code and a found this method ((!h264Decoder.get() || !params.get() || !in.get() || !out.get() || !splitter.get() || (!color && !No_CC_Flag))) When i tried to find this method, I couldn't find it. …

Member Avatar for miskeen
0
94
Member Avatar for Deme

Well, once again, hello. I'm trying to figure out why when i use 2 cin.getlines after eachother it skips one of them and I cant use it. Take a look if you will: [CODE] void Join() { char* Username = new char[255]; char* Password = new char[255]; ofstream DataBase("DataBase.txt", ios::app); …

Member Avatar for Deme
0
210
Member Avatar for Lukezzz

How would it be possible to disable the closebutton(X) in the upper right corner of the form. I dont want to use this property because it takes the minimize and maximize button away also. [code] ControlBox = false; [/code] The only thing I will need on the form is the …

Member Avatar for Lukezzz
0
266
Member Avatar for ganmo

Hello, I've been struggling with a problem for a while now. I'm trying to print out information which is contained in a binary file. This what I get when I open it in notepad. [CODE]Marjorie Gestring D201 ð¿ ð¿ ð¿ ð¿ ð¿ Patricia McCormick D202 ð¿ ð¿ ð¿ ð¿ ð¿ …

Member Avatar for ganmo
0
123
Member Avatar for Dilbert137

Dear All, I'm starting a new project and would like to know where can i get some IT books on antivirus and network programming. Is there some basic source code for antivirus software? where can we get the list of viruses, trojans, malware so that to remove them on the …

Member Avatar for tux4life
0
115
Member Avatar for kemarS

Hi Guys, I need your help again. There is a project I'm working on for my job attatchment. It requires that I use a progress bar to show the progress of the file I am currently uploading to the database. The program's code also contains a line counter which counts …

Member Avatar for daviddoria
0
131
Member Avatar for Talguy

I am passing a dynamically sized 2D array into a function. How would I be able to tell the row size and column size the array. I know I can do this to find the total number of elements in the array: [CODE] foo(const _T ***m_data) { int dataSize = …

Member Avatar for Narue
0
3K
Member Avatar for JaksLax

I need to use recursion to find the largest int in an array. What I have so far is [code] #include <iostream> using std::cout; using std::endl; int maxArray(int anArray[], int size); /** *The main method * *@param myArray[] The array we are searching * *@param sizeOfArray The size of the …

Member Avatar for payara111
0
7K
Member Avatar for anga08628

//Write a function: int max(int list[], int n) that recursively finds the largest integer between list[0] and list[n]. Assume at least one element in the list. Test it with a main program that takes as input an integer count followed by that many values. Output the original values followed by …

Member Avatar for payara111
0
168
Member Avatar for omarzia88

please can anyone tell me how to plot a graph in c++. in input i am having values in two dim array. i want output in the form of points.on the screen.

Member Avatar for farag
0
140
Member Avatar for newcook88

How do i sort a vector based on the frequency of its elements example my vector contains 10,11,12,10,11,13,11 i need to get the sorted out put as 11,11,11,10,10,12,13 the normal sort is sort(vec.begin(), vec.end()); how do i sort it in that way

Member Avatar for newcook88
0
161
Member Avatar for kenji

Hello, This is for an assignment I have to do, I have completed most of it just can't get one part to work correctly. The assignment is: The TextFieldLoader class will have only one constructor and MUST accept the following parameters only: 1. filename (const char *) that will be …

Member Avatar for tux4life
0
98

The End.