General C++ Programming - April 2013 (Page 43)

Adding large numbers
 
I have to make a function that can add two numbers of any size. So far I have: #include <iostream> #include <string> struct number { string d...
[16 replies] Last: Thank you very much Catfish. Your comment showed me that I didn't init... (by Gulopey)
A small Boost property tree library syntax problem
 
Hi! Working on a software that needs data from the XML available here:http://api.eve-central.com/api/quicklook?typeid=34&usesystem=30000142 Therefor I need to...
[no replies]
by rgork
Good algorithm for order of calculation?
 
So I'm making a calculator, but one that reads from string. So I have a string: string calculation = "3,44*2,2-4+4,4^2/2,0^3" I can easily handle the floats a...
[1 reply] : You could simplify the problem by using Reverse Polish Notation. http:... (by Catfish3)
Please check my code its for Arrays?!
 
Four experiments are performed and each experiment produces four test results. The results are tabulated as shown below. Write a program to store these results ...
[1 reply] : So what's the problem? std::count << A ; // should be std::cout <... (by Catfish3)
Why won't my compiler work?
 
Is something wrong with my computer? I downloaded Codeblocks to begin learning C+ and for some reason when I try to run this #include <iostream> using nam...
[2 replies] Last: Hmm... Well, Disch, my experience with Code::Blocks is that the defaul... (by Ispil)
"Card Deck"
 
Alright so this program is supposed to list out the 4 suits and all the cards in them and then give you a hand of 5 random cards but I'm getting this error, ...
[3 replies] Last: Also Deck constructor isn't working (fills cards array with garbage po... (by MiiNiPaa)
C++ Programming Help Please?
 
5. Four experiments are performed and each experiment produces four test results. The results are tabulated as shown below. Write a program to store these resul...
[2 replies] Last: Please note, that it is not a homework site. We won't do your homework... (by MiiNiPaa)
Unknown File Opener?
 
Okay, so I think I have just passed the intermediate line in my skill of c++ and my question is how do I make a program that opens unknown files extensions. for...
[4 replies] Last: Thanks, I get it know. (by Inficard)
a simple programme needs to be solved ! help please
 
Hello im trying to create programme that shows the user number of readers by age group the survey data is as the following(as in txt file): under 20 20 to ...
[no replies]
DVD making program
 
Noob here. One of my future assignments is to make a DVD making program. The idea is that I would have a bunch of files in a directory and I could select some...
[2 replies] Last: I have no experience in this, but this might help: http://stackoverflo... (by Zhuge)
Sort .CSV
 
I need some help with sorting a particular column (column 1) of a .cvs file (the file has 10 columns) by alphabetic order. Any knows how i can accomplish this ?...
[1 reply] : 1) Load the csv file into some kind of structure. 2) Sort the struc... (by Disch)
Create simple input interface
 
Hi, I am trying to create a simple interface on console to allow to input some values to some variables. For ex: int main() { double a = 1.5; dou...
[2 replies] Last: To clarify... it's not possible with the standard lib . It's certain... (by Disch)
Operator ^=
 
I came across an article on macros, and i noticed whoever wrote it used this #define SWAP(x,y) x ^= y; y ^= x; x ^= y; to swap two values. I couldn't underst...
[3 replies] Last: Just to add: you should never do this, as it is obscure and confusing ... (by firedraco)
by xismn
Heap/Stack
 
This is mostly out of curiosity, and hopefully someone more knowledgeable will enlighten me. Let's say we have the following : class Foo { public : ...
[2 replies] Last: Thanks for your reply Disch! It's certainly cleared things up. Yes, iP... (by xismn)
Unresolved Linker Error Help
 
My project requires us to build a binary heap. Right now I am testing the insert function with a minimal main. The project won't build and is giving an unresolv...
[no replies]
? - Operator issue - checks wrongly
 
Hi, I want to avoid if/else, therefore use the ? operator aA is an int, looped from 0 to 10: dD=(aA==aA^aA^0)?12:(aA==1)?23:(aA==2||aA==3||aA==9)?34:(aA...
[14 replies] Last: aaaaah, k, thx for clarifying :) (by ARMinius)
Trouble with ostream operator overloading
 
Hi I am fairly new to C++ operator overloading, and I just have one question about it. So my function: ostream &operator<<(ostream &out, className &n){ ...
[3 replies] Last: > can I do the same thing you suggested with vectors with an array? ... (by JLBorges)
Composition > can't we use set function of parent class
 
From parent class, I mean the class whose obj has been made in the class after that. As I'm trying to do. Is there any solution, or I'll have to set all the mem...
[1 reply] : There is no inheritance here, so there is no parent class. void b::s... (by cire)
 
[1 reply] : What's the problem? A description of how program behaves and what goes... (by Null)
by qingze
Help needed to generate two file and write data into
 
I try to write my data into two different files and i just use something like this ofstream myfile; myfile.open("phase 1.txt"); if (myfile.is_open()) { ...
[2 replies] Last: Problem solved! thanks. (by qingze)
April 2013 Pages: 1... 4142434445... 53
  Archived months: [mar2013] [may2013]

This is an archived page. To post a new message, go to the current page.