General C++ Programming - May 2013 (Page 7)

Add two numbers as strings
 
Hi guys.I need to make a small program with a function with this prototype: void f(char *a,char *b) that adds two numbers represented as strings without using c...
[17 replies] Last: It can be, but in process you will create your own version of atoi w... (by MiiNiPaa)
Loop problem
 
Hi everyone, any idea why the first time you run through the loop where you enter the information for the product that it skips the first cin? very strange! ...
[4 replies] Last: brilliant, thanks very much! (by royal1664)
c++ code generation tool from AIDL
 
I want to design a tool which generates c++ interface from android interface definition language.In short i am designing an aidl compiler.I am facing tough time...
[3 replies] Last: i have no any IDEA for this time.. (by Toddbecem)
code generator
 
i have AST.cpp file(abstract syntax tree) and i need to generate cpp interface. i need to create and write into that file.can anyone guide me how to do this. R...
[no replies]
by jcurru
Confused after 20 years!!
 
Hello!! I'm really confused after 20 years programming in C++ I have this code: A::A() { try { ... // an exception raises here for several reasons t...
[7 replies] Last: I will, MiiniPaa, thanks. I'll also try in another compiler. (by jcurru)
modifying the aidl compiler to generate c++ interface
 
i saw the source code for aidl compiler which is written in c++. i have to modify so that i can get c++ interface when .aidl file is compiled. so i understood...
[no replies]
Access another library (dll) which has same class name and method name
 
Hi, I'm new to C++. Here is my scenario. I have 2 c++ libraries called "Lib1" and "Lib2". Both libraries have same class called "Total.h and Total.cpp" I want ...
[1 reply] : Method 1 Each library should define its public stuff in its own name... (by kbw)
by bmw
Unexplainable problem
 
I am trying to compare 2 char arrays with strcmp. The two char arrays are both exactly the same ( , , , , ) I am trying to send an exit command to my serv...
[4 replies] Last: If someone can help me i would be greatfull :) I'm dealing with animat... (by tomek320)
C++ OpenMP parallel is not working
 
Hi,I'm trying to implement Parallel loop with OpenMP. I just googled and got the below sample, but it seems its not executing parallelly. It takes same amoun...
[4 replies] Last: Hi, Thanks for valuable answers. I got answer for my problem, that is,... (by Ravi Prabakaran)
by Daleth
Overloading the modulus operator.
 
Say I wanted to overload the modulus operator to return the remainder of a division between two floating point numbers. Why isn't a custom double operator%(dou...
[5 replies] Last: FML, I never knew about that function. (by Daleth)
by Daleth
Understanding reference variables
 
In an article I read, the author made the claim that references were like constant pointers, but many of the commenters argued against this claim. But his claim...
[4 replies] Last: Ah, okay. Thanks for the clarification! (by Daleth)
by Nybble
memcpy vs std::copy?
 
Hello everyone, First off let me tell you what I am trying to achieve. I am trying to finish my packet class which takes in data and packs it nicely to be able ...
[10 replies] Last: Yes I do use reverse too, kbw's solution is good I actually use that m... (by Nybble)
Pascal to C++
 
Hey guys, I've been learning pascal for a while as I was told it was a good starting language, though it was, I found it was very limited to the things that I w...
[6 replies] Last: i do believe Borland's Delphi is VERY powerful, and if you can't use i... (by NSharbz)
std::bind and std::function with template aguments
 
I'm trying to create a callback wrapper for pointers to member functions of any class by using templates, std::function and std::bind. This will be used to send...
[4 replies] Last: I don't think I'll have need for that much flexibility in the event ca... (by ModShop)
Simple input prompt doesnt show
 
Hey everyone, im simply trying to get the user to enter the new username when creating a new account. Then, appending that information into the text file. My pr...
[4 replies] Last: Here's a getpassword() function for you. http://www.cplusplus.com/fo... (by Duthomhas)
Bottone
 
Can You Please Enter A Code for a bottone... Thanks. //not yet One That you can click and then it shows you text.
[1 reply] : http://stackoverflow.com/questions/1475021/normal-looking-button-with-... (by MiiNiPaa)
Help with allegro 4.2.3: Linkererror undefined reference to 'Winmain@16'
 
So I have been seeing this error pop up on almost every computer I have used to create projects with allegro 4.2.3 installed. Sometimes the programs will work, ...
[no replies]
arrays
 
hi .. hope you will be fine and having good health as well.. would please sort something out for me,, I need your kind help.. Below is the code of a progra...
[4 replies] Last: @ ibranext cout << "\n Enter FIRST Name Here: " ; cout << "\n Enter L... (by MiiNiPaa)
Simple RPG (What Is Wrong?)
 
Help... What Did I Do Wrong In My Program? #include <iostream> #include <windows.h> using namespace std; char Map = {"##########", ...
[5 replies] Last: Can You Copy Paste The Code With All The Changes (by closed account jyU4izwU)
SUbset SUM
 
http://www.spoj.com/problems/SUBSUMS/ I wrote the below code for the above problem .. but i am getting runtime error and i don't know why ? Please help .... ...
[no replies]
May 2013 Pages: 1... 56789... 47
  Archived months: [apr2013] [jun2013]

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