General C++ Programming - January 2015 (Page 12)

by Zenga
Question about c++
 
Is it possible to import c++ file(that opens in cmd) to GUI c++ project. like to assign it to a button or something like that.
[9 replies] Last: thanks. (by Zenga)
how to embed website in c++?
 
please help me with this guys: how to embed website in c++?
[1 reply] : You want a web server programmed in C++? What do you mean by embeddin... (by tmason)
by Pete47
Importing complex Geometry from Autodesk Inventor into own CFD Software
 
Hello, I would like to write my own CFD software using C++. I would like to build a complex object using Autodesk Inventor or a similar program, where it is ...
[3 replies] Last: Hmmm, it will take a while. First you must get around the basics of ... (by tmason)
Program Doesn't Alphabetize Strings Help
 
I do not know what I am doing wrong. I cant seem to get my program to alphabetize a vector string. Can anyone help me spot the error? It displays the names, but...
[4 replies] Last: Thanks Cire!! Really appreciate your help! (by deckonsoul)
some question about std::string
 
(int)address1 == 64 why "@"=64 (int)phonenumber1 == 48 why "48"=0 Is it related to the function atoi?
[1 reply] : Characters are represented via their ASCII code (e.g. 48 -> 0, 64 -> @... (by firedraco)
by doug4
istream estraction of unsigned values
 
I am trying to extract unsigned values from an input stream. I expect the extraction to fail when an invalid character is extracted. It fails correctly when I...
[11 replies] Last: I think the question raised is not whether the value stored could be i... (by JLBorges)
Defining global multidimensional arrays with extern const Length: segfault
 
I need to have a few global variables accessible by multiple files. I am having a segfault. I have managed to create a small program exhibiting this error. ...
[13 replies] Last: Thanks JLBorges! That solved it. I also read the portion in C++ prim... (by DexterMorgan)
standalone app vs mobile app
 
Hi, In general, how much faster are mobile apps developed in java (not using native code) vs the same functionality in a standalone desktop app developed in ...
[3 replies] Last: Not all mobile apps are developed in Java. C++ is also not always fas... (by kevinkjt2000)
by Irhcsa
Event problems
 
I'm getting the error: C4700; uninitialized local variable 'event' used I have searched online for the error but cannot find anything related to events. A...
[2 replies] Last: Thanks Kevin. I literally found it right after I posted this. It's the... (by Irhcsa)
by aspoka
Xcode Program does not work properly.
 
Hi. I am programming on Mac OS X on Xcode. I made a simple program like thees. #include <iostream> #include <unistd.h> #include <curses.h> using namespa...
[10 replies] Last: Ow... I didn't see it at first time. Thank you. It's work now. (by aspoka)
by anhnha
GetData() in CArray
 
Let's say I have a section of code as follows: Do pPt1 and pPt2 give the same value here? CArray<CPoint,CPoint> myArray; Class CTest { public: myArray arr;...
[5 replies] Last: Please show an example of compiling code illustrating what you mean. ... (by kevinkjt2000)
<random> will not work
 
I am using <algorithm> random_shuffle and realized that its gives me the same randomness every time I shuffle so I tried using <random> to fix this but I keep ...
[4 replies] Last: Got it, not seeding it correctly. It does help, thanks. (by retroCheck)
Understanding this program...
 
Problem: http://www.codechef.com/DEC14/problems/CAPPLE Solution: #include <stdio.h> #include<iostream> #include<map> using namespace std; int main() { int T,...
[3 replies] Last: I got it. When t goes to 0 the while loop stops executing. (by omkarborkar95)
C++ 2D array/dynamic programming question
 
Hello, I have trouble solving this programming question. Here is the question: You are a mouse that lives in a cage in a large laboratory. The laborator...
[2 replies] Last: This is an algorithm question. Forget C++ for the moment, think about ... (by DexterMorgan)
Inventory System
 
Hey peeps. I'm trying to create an inventory system in C++ using classes and objects. Here is what I have now Item.h #pragma once #include <iostream> ...
[5 replies] Last: Thats what i meant ^^ (I only want the List to be a singleton) (by HalfNOoB)
Game problem - Tic tac toe with multidimensional array
 
hi, Problems : 1) Is there any way so that i can use "X" and "O" char instead of 9 and 0 int.?? 2) if player - 1 choose field 2 . and player - 2 chooses fiel...
[4 replies] Last: #include <iostream> #include <string> #include <cstdlib> using names... (by modi365)
I need to write a program that converts timestamp to hour and days
 
I need to write a program that converts timestamp to hour and days. Please help any one?
[2 replies] Last: strftime (by chrisname)
Issues with XCode & CGAL
 
Im require to use CGAL Library for my project. I have installed it using macports. I took 1 of the examples envelopesegment.cpp and tried running it. I have tr...
[no replies]
by Kubani
How to use of "new" for polygons
 
Hi all, The definitions of Circle and Polygon are here in Graph.h and graph.cpp http://www.stroustrup.com/Programming/Graphics/ For some exercise I ne...
[9 replies] Last: I used this code for triangle: vt.push_back(new Graph_lib::Polygon); ... (by Kubani)
by Kubani
Moving a button and an image with each other
 
The question says: Place an Image on top of a Button. Move both when the Button is pushed. It's here (http://books.google.com/books?id=We21AwAAQBAJ&lpg=PP1&...
[8 replies] Last: OK. So how it is possible to declare (not define ) and Image (e.g.,... (by Kubani)
January 2015 Pages: 1... 1011121314... 24
  Archived months: [dec2014] [feb2015]

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