General C++ Programming - June 2015 (Page 11)

position of element in vector
 
Just a general question. How should I get the position of an element stored in a 2D vector of strings?
[4 replies] Last: @mmw The little "connector" button at the top of a post (by the date)... (by andywestken)
Neural Network
 
So I've ported this code: http://robotics.hobbizine.com/arduinoann.html To run on my computer, It compile fine but when run gives "Bus error: 10" Any help i...
[4 replies] Last: Thanks! that worked a treat :D (by damonskittles)
one key, multivalued map
 
#include <iostream> #include <string> #include <map> #include <iomanip> #include <deque> using namespace std; int main(){ //my key is int but i need thr...
[4 replies] Last: +1 with the class idea. A simple constructor makes life so much easier... (by Duthomhas)
Implementing ADTs (Abstract Data Structure) in C++
 
How To Implement a Linkedlist ?
[3 replies] Last: How does your thread title relate to your actual question?? (by mutexe)
How can I rotate like this in 2d array?
 
Rotate the content of the rows by 1 in the forward direction as shown below Befo re Rotatmg 56 15 1 7 0 0 0 0 0 0 0 0 After Rotating 0 0 ...
[9 replies] Last: Cool, it does. I made the mistake of using: std::rotate( arr , arr ... (by andywestken)
Recreating a Java program and Trying to pass a derived class as the base class.
 
here is the code. in question // // main.cpp // question // // Created by admini on 6/9/15. // Copyright (c) 2015 admini. All rights reserved. // #inclu...
[3 replies] Last: I'm not sure what you are asking. But I noticed this. In helperClass,... (by BlatantlyX)
Cin
 
Is cin >> variable considered a software vulnerability? What about forgetting to call delete after new in a program with only a main function? I wrote a prog...
[3 replies] Last: Sorry Computergeek I left you in the dark after I found out what it wa... (by ForTheReallys)
Object access
 
OK so I have a Game class which contains an array of pointers to a Player class which is declared within the Game class like so: Players **gamblers Now, the ...
[1 reply] : Alright so I've figured something out. I declared a global Game point... (by ForTheReallys)
by AmitH
Delete directory and its content to recycle bin
 
Hi, I have this code: static bool deleteDirectory(string lpszDir, bool noRecycleBin = false) { int len = lpszDir.length(); TCHAR* pszFrom = new TCHAR[len + ...
[no replies]
My teacher isnt helping me...Please help I am so lost
 
So I am using "starting out with c++" seventh edition and I am very lost on what to do. Currently we just got through with functions and Arrays. This class is s...
[5 replies] Last: Some more concrete hints: Write a program that will calculate statis... (by Duthomhas)
Storing regular expression result in vector<string> using <regex>
 
I am extracting a line of text from a string using regular expressions. I am storing them in a vector<string> to used later. My problem is when I access the tex...
[no replies]
Is there a header that defines the RICHEDIT_CLASS for a window class?
 
I know this post belongs in the windows programming section but not many people seem to respond to my posts. Anyway, I am trying to make a word processor appli...
[2 replies] Last: Thank you (by SomeAmazingGuy)
by mmw
class member pre-sizing
 
Hello, I have a question about hiding class member definition of a definition 8-), I have a core_lib which links against private deps headers et cetera. ---...
[4 replies] Last: Hello, yes thx, I could verify this way ; but still this is not a to... (by mmw)
String replacement
 
Hi I am new to prgramming. At the moment I am trying to Convert roman numerals to arabic. I want to replace IV with IIII , IX with I(9 times), XL with XXXX and...
[3 replies] Last: Could you please go back and reformat your code using code tags. "How... (by andywestken)
Class that can access a non-direct class?
 
Hello I'm having trouble with classes. Basically I want ExistenceClientMainLogin(etc) to have access to ExistenceClinet functions and variables, both read an...
[2 replies] Last: Hello, you should first create more tiny classes holding a single jo... (by mmw)
by dj 123
Error in Calling a function which has an array as vecDoub
 
Hi ! I have a code for 2-D KS Test from the Numerical Recipes, as it has many routines that which has been used as header files. All I need to do is call the...
[1 reply] : Without seeing your code, it's impossible to know for sure. It sounds... (by MikeyBoy)
by Ozzy69
Help with this error matching functions in class
 
Hi, i can't fix this code, 'cause i dont know reason be giving this error. Help please! My code: #include <iostream> class Retangulo{ public: Retangulo()...
[3 replies] Last: 1. Please use code tags to make your code readable: http://www.cplus... (by MikeyBoy)
by Aydin
NTL Library
 
Hi everyone I need to know whether NTL library supports big integers (1024 bits). So if I have n pairs (x_1,y_1),...(x_n,y_n) where the elements are big inte...
[1 reply] : A very quick google search got me to here. http://www.shoup.net/ntl/d... (by doug4)
DialogBoxParam error
 
I am rewriting old program and compiler gives C2664 error - cannot convert argument 4 from 'FARPROC' to 'DLGPROC' It underlines lpProc in all 4 instances. I ...
[2 replies] Last: Thanks mate! I can't tell you whether this works since this is a reall... (by SteveOshnall)
Unexpected Class Error
 
Hello, I have this header and it generates a strange error : obiect.h(10): error C2236: unexpected 'class' 'Obiect'. Did you forget a ';'? I'm using microsoft ...
[2 replies] Last: Thanks, it looks like I forgot to write a semicolon inside the Materia... (by Golden Lizard)
June 2015 Pages: 1... 910111213... 16
  Archived months: [may2015] [jul2015]

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