-
Replied To a Post in Pointer to Member function
You can't get a non-member pointer to a member function. If you did, and called it, what would the function use for `this`? -
Replied To a Post in Equation Solving in Java
> What I'm looking for is a library that can read in an equation... Well, if your input is like the example (`V = Q/C = ...`), you can split … -
Began Watching Indexes in Databases
Can anyone give a clear,short and simple explanation about database indexes? -
Replied To a Post in Indexes in Databases
You mean like the first paragraph of https://en.wikipedia.org/wiki/Database_index ? -
Began Watching Understanding undocumented code
Did any of you guys ever encountered a situation in which you were faced with a code base that was poorly documented and poorly written and you just had to … -
Replied To a Post in Understanding undocumented code
All too often, sadly. My two most recent experiences went like this: 1. Notice awful code, realize it's so tangled that it's impossible to work on it bit by bit, … -
Began Watching Equation Solving in Java
tl;dr: Looking for a java library to solve equations. Suggestions welcome. I'm looking to write an app for the sake of writing an app. I figured that, as a firmware … -
Replied To a Post in Equation Solving in Java
> define "equations". I second the question; are you looking for an algebraic solver, like a system of equations kind of scenario? > What do you see as an equation? … -
Began Watching Split String
Hi! I am writing my own string splitter and i'm stuck. When I'm trying to split the same string the second time im getting only the first word. Im using … -
Replied To a Post in Split String
This right here is your problem: *ptr = '\0' ...because you do this earlier: ptr = string ...which means you're modifying the string as you scan it. This is not … -
Began Watching DOS interrupt
Mention the DOS interrupt that is used by the printer to send acknowledgment of its output. Also provide the corresponding service number and registers to be used -
Replied To a Post in DOS interrupt
Sounds like a homework assignment; we won't do it for you. If you don't know where to start, you might try [Ralf Brown's Interrupt List](http://www.cs.cmu.edu/~ralf/files.html). -
Began Watching Question about accessing character handling functions
Hi all! Whenever I am working with my code in my main.cpp file, I can call character-handling functions like * isdigit * isalpha * isspace * toupper without importing the … -
Replied To a Post in Question about accessing character handling functions
What other headers are you using? One of them must be including `cctype` for its own purposes. -
Began Watching Clean up resources when user closes console
Hi I have encountered a problem where I cannot think of a solution. I'm attempting to work with event tracing but the problem is that a handle is not released … -
Replied To a Post in Clean up resources when user closes console
Do you have a complete example that's short enough to post? You may be able to use some sort of [RAII](https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization)-like approach; *i.e.*, release the handle in some object's destructor. … -
Began Watching How to upgrade database fields
So I just got an entry level job at a company, and I have been given a business application to tweak and improve. I have a senior, and more experienced … -
Replied To a Post in How to upgrade database fields
> Would you temporarily allow for the fact that both algorithims could be used in the code, or do you create a program that makes the necessary conversions, and uploads … -
Began Watching class and objects
class brick { private: int length, width, height;// in mm public: void set(int len, int wid, int hei); int getlength(){return length;} int getwidth(){return width;} int getheight(){return height;} }; void brick::set(int … -
Replied To a Post in class and objects
I was able to compile this without changes using VS2013... what are you using? -
Began Watching Projects
i have a project in c++ 1-31 anyone who can help me? -
Replied To a Post in Projects
I'm sure someone here can help if you give us details. What's the project, what are you having trouble with, and what have you tried so far? -
Began Watching Is this the correct way to convert from java to c++
import java.util.*; class occult { public static void main(String[] args){ int n = 2; for (int i = 0; ; i++){ if(Integer.toString(i).contains("666")){ if ( n == 1 ) System.out.println(i); n … -
Replied To a Post in Is this the correct way to convert from java to c++
Here's your main problem: if( to_string(i).compare(s) == 0){ [string::compare](http://en.cppreference.com/w/cpp/string/basic_string/compare) looks for an exact match, which only happens when `i` is 666. But you're ignoring the first time the match happens, … -
Replied To a Post in Loading related objects from database
>> Have you actually profiled the code? It wasn't clear from your post, nor from your response. > I thought this "Not what I am after, but what I stated … -
Replied To a Post in Loading related objects from database
>> Does the loading really need to be more efficient? > Yes, it does. >> Where in code is that time being spent? > As stated, in getting the child … -
Began Watching Loading related objects from database
This is more a general approach question. I have an old ORM like framework for this application. Basically what it does, if it needs to load a bunch of objects/records, … -
Replied To a Post in Loading related objects from database
Question one is always: Does the loading really need to be more efficient? In other words, is there a measurable and significant wait/delay when you're loading things? If not, or … -
Began Watching I don't understand the memory part I got confused any help please?
add $5, $7, $2 sw $9, 4($6) lw $4, 8($12) or $6, $5, $3 Assume that the code is stored starting at 0x00600000, the values in the memory are all … -
Replied To a Post in I don't understand the memory part I got confused any help please?
> I don't understand the memory part I got confused It says that memory at `0x00600000` through however long the assembled code is contains the program, and everywhere else (*i.e.*, … -
Began Watching Generic Method <T>()
Hello Everyone, Actually i have one question. I create one generic method like below:- public static dynamic ExecuteSelectProcedure<T>(string procedureName) where T: class { SqlDataReader reader = ExecuteSelectCommand(procedureName, CommandType.StoredProcedure); if (typeof(T).FullName.Equals("System.Data.DataTable")) … -
Replied To a Post in Generic Method <T>()
With generics, you can use [type parameter constraints](https://msdn.microsoft.com/en-us/library/d5x73970.aspx) to limit the types someone can use with a method, to a certain extent. If I'm reading you right, though, that's not … -
Began Watching How to implement interface member
Hi, I get an error when trying to compile a class that I have created: "EWrapperImpl.cs" **Error: TestCsharp.EWrapperImpl' does not implement interface member 'IBApi.EWrapper.currentTime(long)** It is documented in an example … -
Replied To a Post in How to implement interface member
You're writing a class that implements an interface: > public class EWrapperImpl : EWrapper This means your `EWrapperImpl` class must have methods that match everything in `EWrapper`... > Error: TestCsharp.EWrapperImpl' … -
Began Watching few questions about c++ then and now
I have some source code done back when time first started and long before unicoding of a old gaming/chat system used mostly in 90s knowing to millons of young gamers … -
Replied To a Post in few questions about c++ then and now
> am just wondering would it be possible to convert the server side to a windows based system? Maybe. depends on if you used any OS-specific libraries. The networking code … -
Began Watching Hello! I've got a problem with my code.
The problem is while i execute my code the function modifiko_note(); doesn't work in a proper way. It execute with errors.`` #include<stdio.h> #include<stdlib.h> #include<string.h> #include<sys/stat.h> #include<conio.h> struct student{ char emri[20]; … -
Replied To a Post in Hello! I've got a problem with my code.
> doesn't work in a proper way. It execute with errors. What are you expecting it to do, and what is it actually doing? What are the errors? -
Began Watching Read the data from Serial port......
How to read the Serial port data ? apart from WinUSB or Win32 method in C++.I'm also Search the internet ,But i didn't get any idea . So if any … -
Replied To a Post in Read the data from Serial port......
A simple search comes up with a variety of serial communication libraries... https://github.com/wjwwood/serial http://www.teuniz.net/RS-232/ http://sigrok.org/wiki/Libserialport http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/overview/serial_ports.html ...would one of these work for you? -
Began Watching help needed in programing
Write a function in C++ which accepts an **2d array and its size** as arguments/parameters and exchanges the values of *first half side elements with the second half side elements … -
Replied To a Post in help needed in programing
Show us what you've written so far, and we'll try to help you get it working. -
Replied To a Post in Audio mix/fade
> Had a quick glance at PortAudio, but I do not see any mixing features listed in the docs (unless overlooked). You didn't miss anything; that's why I called it … -
Began Watching Audio mix/fade
Hi. We're looking into building an easy to use audio player to use at parties. BPM Studio works great, but most people don't know it and have trouble using it. … -
Replied To a Post in Audio mix/fade
I don't know NAudio, but it looks useful at a first glance. Do you have language/platform restrictions? If you have the time and inclination for portable DIY, you might look … -
Began Watching Practice
#include <stdio.h> int main(){ int i,j,k=1; int loop_count = 10; for(i=1;i<loop_count;i++){ if( i > 1){ for(j=0;j<i+k;j++){ if( i == 2 ) printf("*"); else{ if( j%k == 0) printf("*"); else printf(" … -
Replied To a Post in Practice
Do you have a question for us? -
Began Watching c++ stl map with string keys
Hi, I have the following map : listOfPolicyRuleInfo CPCRF::m_mlistOfCliConfiguredPolicyRules; where typedef map<string, PolicyRuleInfo> listOfPolicyRuleInfo; where PolicyRuleInfo is a struct struct PolicyRuleInfo{ BearerQoSInfo stBearerQoS; TFTInfo stTFTInfo; PolicyRuleInfo(){}; PolicyRuleInfo( BearerQoSInfo const& qos, … -
Replied To a Post in c++ stl map with string keys
What's the error you get? At first glance, it looks like you may be trying to print the iterator, `it`, which isn't the same as the object it points to. … -
Replied To a Post in Circular buffer please help me
> I corrected the mistakes. Post corrected code please? > I could not replace 25 with the macro as my compiler was giving errors, may be i will try it …
The End.