48,986 Topics

Member Avatar for
Member Avatar for helixkod

I have an xml file that I have to read in, convert all the carriage returns to \x0D and line feeds to \0xA, then call it into a function as a string. So for example my XML file is: <TEST> this is a string </Test> I would want a string …

Member Avatar for helixkod
0
1K
Member Avatar for MRehanQadri

We cannot use constructors if we want that whenever a pointer is declared, it should be NULL. Am I right Sir? if I declare student *head, *tail, where student is a class, can I make my pointers automatically make NULL using default constructor?

Member Avatar for Moschops
0
167
Member Avatar for J-P1988

Hey I have an code in Qt that is an QPushButton is hidden at start of the cpp but later i want to get it appear when the file is open and an line is readed but the problem i get an segmentation fault. Can be because the setHidden(true) in …

0
133
Member Avatar for nah094020

Ok so am writing a program that simulates a computer system.The cpu and memory will be forked making memory a child process and cpu athe parent and i will be using pipes to let them exchange informatino. I am really lost tough on what to do next, i have loaded …

Member Avatar for rubberman
0
257
Member Avatar for handsomelaw

write a program which display a restaurant menu, then ask the user to select a choice from the menu. Using the switch statement select the user choice. printout the choice the user slected and the bill amount.Include in the bill a 16.5% tip and 8.25% sales tax.

Member Avatar for rubberman
0
110
Member Avatar for desolatebeast

Hey everyone need help on a project im doing in c++, so far I have made a command interpreter, that breaks user input into array of Strings sepperated by spaces and have a run function. Now I am trying to do the list() and list(directory) but I'm not quite sure …

Member Avatar for desolatebeast
0
389
Member Avatar for maham1234

**please help me with this code ASAP** Problem Statement: You have to write a Schedule Management Program for the counsellors. Here are some facts: Facts: There are 10 counsellors. You have to Manage only one week's schedule. There are 7 days in a working week ten working hours in a …

Member Avatar for NathanOliver
0
138
Member Avatar for adfsandfianfosdaafs

Hello, i just started to study c++ and i have a problem about 1 porgram in the homework ! it ask me to write a c++ program that first asks the user if he want to enter a number if yes he enters the number and then ask him again …

Member Avatar for deceptikon
0
104
Member Avatar for JaceLightning

I am trying to figure out what it would take to create software like [MaxiVista](http://www.maxivista.com/) or [ScreenRecycler](http://screenrecycler.com/ScreenRecycler.html). I have good experience with Java and C++, but these two programs are just awesome and over my head. Basically, they take a window from one computer and transfer it to another. Does …

Member Avatar for ktsangop
0
251
Member Avatar for n1csaf3

I have been trying to call a C++ function in a DLL, from a C# WPF application I'm working on. I've done it before and it's worked but I can't remember how I did it and can't seem to find an example that works for me. I'm doing something wrong …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for Baldur

Hi Everyone, I have been trying to teach myself how to code for more than a year now, having started with VBA and then switching to c++. Recently I have been forced to confront how horrific my coding practices are, and have been doing pennance by trying to modify 1500 …

Member Avatar for Tumlee
0
412
Member Avatar for Xorlium

Hello, I'm still learning C++, and I have a question that I'm not even sure how to search for it, so sorry if this is a repeat. The thing is that I'm trying to make, for a project a-for lack of a better word-memory manager. I want to have kind …

Member Avatar for mike_2000_17
0
199
Member Avatar for harinath_2007

Generally people sit in front of computers for a long time which results in eye strain. We indeed forget to take a break. So here is a good freeware called FADETOP which reminds you to take a break after every 15 minutes. However you can change the default time. You …

Member Avatar for CimmerianX
2
321
Member Avatar for softwaretime

Hi, I would like to know how I would modify the close (X) button in the GUI. For example, I would like to be able to have the user click on it and the program to bring up a message box from the MessageBox::Show() function that I type in. This …

Member Avatar for deceptikon
0
228
Member Avatar for Bhavya scripted

I am having trouble understanding the concept of virtual functionsin c++.i couldn't find any simple example code for me to understand.can anyone show a simple program using virtual functions and it's importance? Thanks

Member Avatar for deceptikon
0
174
Member Avatar for Suzie999

I'm using the function GetBitmapBits. MSDN says of the function > The GetBitmapBits function copies the bitmap bits of a specified device-dependent bitmap into a buffer. What it does not say, is how the data is stored, and I need to know this if I'm to analyze each specific color. …

Member Avatar for Suzie999
0
292
Member Avatar for A Haunted Army

i'm not sure which STL container to use, what i'm going to be using it for is adding elements at the end and removing elements from any point inside it, i've looked into the different containers but its all a bit confusing so some advice would be great.

Member Avatar for A Haunted Army
0
299
Member Avatar for Rachel Roxx

Hi I am trying to create a loop that increments a cars mileage while the fuel decreases by 1 gallon for every 24 miles. Instructions: To be able to work with the FuelGauge Object. It should decrease the FuelGauge object's current amount of fuel by 1 gallon for every 24 …

Member Avatar for Rachel Roxx
0
134
Member Avatar for xNeverLetGo

I'm new to C++ and I'm having so much trouble with this problem. I honestly don't know what I'm doing wrong, I've tried everything but I still can't seem to make the program work. This is the problem: Write a program that reads in ten whole numbers and that outputsthe …

Member Avatar for xNeverLetGo
0
1K
Member Avatar for waqas.zafar.125

hey guys !!! i have to sort the students according to their first and last names here is the code i have written so far ,, it inputs the first names and last names and then it stops working . please help me with this ,, thank u #include <iostream> …

Member Avatar for tinstaafl
0
201
Member Avatar for Sandy20

`MSXML DLL : #import <msxml3.dll>` I am writing XML using MSXML DOM & expected to add multiple processing instruction. ex: <?xml version="1.0" encoding="ISO-8859-1"?> ------ first processing instruction. <?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?> ------ second processing instruction. <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> </catalog> I have write below …

Member Avatar for Sandy20
0
435
Member Avatar for hckrwb

Hi Everyone, Very beginner with C++. Reading some books and trying to write some codes as much as I can. I'm trying to understand what voiding a function does. Now in the book and the searches I did says it doesn't return anything. But looking at the code below, doesn't …

Member Avatar for deceptikon
0
290
Member Avatar for SyedFaheelAhmad

I'm not able to figure out how to **change** the **icon** of a **console application** in **Borland C++** (v5.02). Can you help me figure out?

Member Avatar for ktsangop
0
160
Member Avatar for stickyvirus

Write a program in C++ to accept two time given in hours and minutes using a function input ( ) , then pass these values to a function called addtime( ) to calculate the sum of two times ( using returning structure form function )

Member Avatar for Lucaci Andrew
-1
128
Member Avatar for Sandy20

Evniorment : Windows 7.0 , C++ , Multithreading I have created a new worker thread to receive data on socket & add it into static multimap. **code snap :** //remember mymultimap is static data type static std::multimap<string,string> mymultimap; EnterCriticalSection(&m_criticalsection); mymultimap.insert ( "aaa", "bbb") ); LeaveCriticalSection(&m_criticalsection); At same time my main …

Member Avatar for Banfa
0
307
Member Avatar for new_developer

Can we access updated public variable of one class in another class without inheritance. Just like below. This class A which have public int variable x. In updateValue function i have updated x value. class A { public: int x; A() { x=0; } void updateValue() { for(int i=1; i<=5; …

Member Avatar for Lucaci Andrew
0
5K
Member Avatar for BirdaoGwra

Hi, I am trying to test this timer movement and I just don't understand why the rectanglee is not moving right and down. Here is a simple test. Using GLFW. #include <GL/glfw.h> #include <stdlib.h> void Init() { //! Create the viewport and projection glClearColor(0.4f,0.4f,0.4f,1.0f); glViewport(0, 0, 800, 600); glMatrixMode(GL_PROJECTION); glLoadIdentity(); …

Member Avatar for BirdaoGwra
0
420
Member Avatar for amalaza

1.binary 2.decimal 3.octaldecimal 4.hexadecimal enter your choices 1-4?_ enter binary:_ in decimal:_ in octal:_ in hexa:_ do you want to repeat the programm? yes or no?_

Member Avatar for amalaza
0
238
Member Avatar for Gazzmonkey

Hi all, This code below is not my own work but is exactly what I need for my project, the code runs a real time clock through an Arduno Duo development board as it's micro-controller using an I2C connection if that all makes sense. The problem is when running the …

Member Avatar for ajit.nayak
0
735
Member Avatar for tristanhall

I'm trying to make a program for my computer science class and it requires that I run output to the console as well as to a file. I'm looking for a way to intialize a string at the beginning of the program and pass the variable by reference to my …

Member Avatar for tristanhall
0
302

The End.