48,986 Topics

Member Avatar for
Member Avatar for myk45

Hi all, I have an xml file with some information inside it. I want to load this xml during runtime and generate an equivalent HTML document for this xml file. All this needs to be done programatically and on the fly during runtime. How could i do this? I'm using …

Member Avatar for jwenting
0
264
Member Avatar for Cave_1

Hi. I'm trying to use brace-initialization notation: int number{}; But I get the following error: "expected an expression". Shouldn't c++11 allow this kind of initialization? int number2(4) works just fine. Thank you.

Member Avatar for Cave_1
0
359
Member Avatar for andrew mendonca

Your Math class has five 100 point tests over the course of a semester (and nothing else that counts toward your grade). In addition to getting an average score of 70/100 you must pass at least three individual tests in order to pass the class . For example, if your …

Member Avatar for Taywin
0
523
Member Avatar for Entalist

Hi all! I'm having some trouble with constructors and destructors. I've been told that a constructor creates an object and a destructor destroys it. The problem is that in my code I try to destroy `straight2`, but I can still print out it's length as if it wasn't destroyed at …

Member Avatar for Entalist
0
178
Member Avatar for davecoventry

Here is my code: #include <string> extern std::string commands[]; extern std::string shortcuts[]; int in_array(std::string ar[], std::string txt){ for(int i=0;i<ar->size();i++){ int g=ar->compare(txt); if(!g){ return i; } } return -1; } int actioncmd(char* command){ int act=in_array(shortcuts,command); if(act==-1){ return -1; } act=in_array(commands,command); return act; } I'm simply trying to find out whether a …

Member Avatar for davecoventry
0
5K
Member Avatar for haider885

i am trying to write input() function into file..... please help.... i am using visual studio 2013 // N Copy.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream" #include "fstream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { fstream file; file.open("NCopy.txt"); file << …

Member Avatar for Hiroshe
0
254
Member Avatar for aluhnev

Hi can any one tell me please does visual studio 2012 support any features of c++11? Or only in 2013 version?

Member Avatar for mike_2000_17
0
259
Member Avatar for andrew mendonca

Without using arrays, write a complete program that reads three integers from the console and outputs the same three numbers in ascending order on separate lines. For example if the input is 5 4 3 then the output will be 3 4 5. Do not prompt the user or produce …

Member Avatar for Taywin
0
3K
Member Avatar for Mr.M

Hi Dw I'm creating a wosa/xfs I've followed correctly the guide and the code has no error till I try to debug it or build it. I get this error 1) error LNK2019: unresolved external symbol_WFSStartUp@8 referenced in function "int_cdecl Wfs_Startup(void)" (?Wfs_Startup@@YAHXZ) 2) error LNK2019: unresolved external symbol_WFSOpen@36 referenced in …

Member Avatar for Mr.M
0
137
Member Avatar for iqra aslam

how can i download the c++ software, like turbo c can any one give me the link?

Member Avatar for mike_2000_17
-1
229
Member Avatar for joel_3

Hello everyone!i'm new here and in c++ programming.I've wrote about 30 small programs and when i close the program and want it to run after, it compile well but when i'm waiting the answer, it comes and goes fast.i've tried to put cin >> a; as told me someone to …

Member Avatar for Sarkurd
0
87
Member Avatar for Nikolas9896

Hi! To Everyone! Could you tell me how I can use GCC with that file comunicatoin, because : g++ main.cpp program1.cpp -o program1.exe - not valid - It didn't saw program1.h and all declaration in him. I had the task : Write a program that prints the numbers from 1 …

Member Avatar for Nikolas9896
0
368
Member Avatar for Mr.M

Hi Dw. I'm developing a system using c++ for the XFS. I've followed the documentation on how to install the SDK but the problem is that I've successfully installed the SDK but when I start to create the sample, when I try to put the required includes they are not …

Member Avatar for Mr.M
0
179
Member Avatar for salafiyya1
Member Avatar for David W
0
144
Member Avatar for Aqeel Rafique
Member Avatar for david muchuku
Member Avatar for Mr Gates

I'm really new to programming, and I really only know web scripting. But I want to excel in programming. Anyway, what languages would be used to create something like adobe photoshop? I've created about 2 programs using c++, but they're like those tutorial things where they run in DOS, and …

Member Avatar for melissad
0
18K
Member Avatar for Jjajangmyeon

Can you initialize (easily/simply) a vector with multiple values? Like an array:`int fu[] = {1, 3, 4, 5, 6}`

Member Avatar for melissad
0
220
Member Avatar for kamylz.pm

hi :D We've been asked by our instructor to create a program that will accept your birthdate and display the chinese zodiac sign and its description using *switch* statement. Should i have to input all the possible birthdays ?or is there a shortcut for this? by the way we are …

Member Avatar for kamylz.pm
0
68
Member Avatar for tan.revilleza

hi can any one know how to program in c++ the *143# in globe all iknow is u can use if else conditional statement!! tnx in advance

Member Avatar for Naveen508
0
163
Member Avatar for oyinkansola.aremu
Member Avatar for rubberman
0
35
Member Avatar for Joemeister

Hello all, What I am doing is the following: 1. Receiving an expression 2. Instantiating Variables 3. Convert the expression from infix to postfix 4. Evaluate the expression. Now, in my evaluate function the following operators are working: + - * / and ^ I am having trouble to get …

Member Avatar for マーズ maazu
0
889
Member Avatar for Kris_3

Hi guys so I just finished all the basic tutorials on C++ on this channel [Click Here](https://www.youtube.com/playlist?list=PLS1QulWo1RIYSyC6w2-rDssprPrEsgtVK). I don't know if its any good but it started me off. But now I have watched everything and I am wondering where to continue and I decided to ask here. Any good …

Member Avatar for Kris_3
0
235
Member Avatar for m.a.u.

Greetings everybody, I have been developing a C++ project in VS2010. When I was writing data into a file, everything was ok. I modified the program to write data into a new array instead of a file. I had an error of stackoverflow. I checked the datatypes, array lengths etc. …

0
89
Member Avatar for Reshiram27

Can someone help me about converting numbers to roman numeral 1-999 via switch statement ? please help me !

Member Avatar for jwenting
0
626
Member Avatar for red11

Uhmm. I need help! I need a code in our case study. And I don't know how to start it. Please, someone help. I need to pass this on thursday, August 21 2014. Huhu :'( I really don't know. I'm no IT/CompScie or whatever computer related courses but I have …

Member Avatar for Hiroshe
0
604
Member Avatar for Moaid

im using windows 7 64bit along with codeblocks and mingw and im trying to use non standard c++ libaries such as SDL , allegro and sfml but when i link them and try to compile the examples some work and some dont i wonder what i did wrong ? I …

Member Avatar for DeanMSands3
0
246
Member Avatar for coxxie

Develop class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent. The term 2x 4 has the coefficient 2 and the exponent 4. Develop a complete class containing proper constructor and destructor functions as well as set and get …

Member Avatar for NathanOliver
0
3K
Member Avatar for doreen.lata.14

A need a program that will ask the persons age , type of car needed and the number of days the car is needed. if the driver is <= 25 years of age than 20% surcharged

Member Avatar for Saboor880
0
203
Member Avatar for boyalexutzu

Hello guys, I'm new here and with C++ and i have a problem if you are kind to help me. Me and my friend have created a small program that download yt videos and upload them on specified yt accounts entered by us, when i hit run it opens 50 …

Member Avatar for boyalexutzu
0
238

The End.