General C++ Programming (Page 9)

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. C...
[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 func...
[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 a...
[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 ...
[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 ...
[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 fo...
[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 <iostre...
[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<C...
[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 ...
[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<iostr...
[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 mou...
[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...
[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...
[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 ...
[no replies]
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....
[9 replies] Last: I used this code for triangle: vt.push_back(new Graph_lib::Polygon); ... (by khoshtip)
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 ...
[8 replies] Last: OK. So how it is possible to declare (not define ) and Image (e.g.,... (by khoshtip)
character array
 
guys i have a problem i cant find a way to count how many times a character occur in a character ar...
[2 replies] Last: yes its working sujitnag. thankx (by meagouph)
Puzzling Valgrind error report on InValid Free
 
I have a class as follows: class myClass { double x=0; double y =0; public: std::vect...
[4 replies] Last: Thanks kevinkjt2000, you were correct. The passed vectors were part o... (by DexterMorgan)
Equation Class
 
So I have a new project for myself. I want to create an equation class in c++. I created one in pyth...
[3 replies] Last: I need an equation class so I can write functions that can take deriva... (by cmajor28)
Pages: 1... 7891011... 51
  Archived months: [nov2014]

Cannot post in this page. To post a new message, go to the first page.