General C++ Programming - March 2017 (Page 10)

How To Call a Text File
 
Hello everyone I want to now how do I call for a text file and then output the continence of the tex...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by closed account 1Afj1hU5)
future value
 
I seem to be having trouble with my program. It was easy until my teacher decided to make it where y...
[3 replies] Last: i actually just figured it out. changed two things This fixed it: do... (by kohl5555)
call winapi function
 
how i can call this api: static const wchar_t *lol=L""; LRESULT WINAPI BSSSendMessageW(HWND hwnd, ...
[no replies]
Call send message function
 
Hello i do this: static const wchar_t *lol=L""; LRESULT WINAPI BSSSendMessageW(HWND hwnd, UINT msg...
[2 replies] Last: I did so: return baseSendMessage(hwnd, msg, wparam, lparam) But now... (by omarespanol)
Invalid friend declarations in template
 
Hi, I have the following code which does not want to compile: template<typename RatioSequen...
[5 replies] Last: Thanks ... I have reported the bug to microsoft connect! Will keep th... (by JUAN DENT)
what is the relationship about cmakelists and VS project?
 
I create a VS2015 project from a cmakelists file, and there is a problem I do not understand, in cma...
[1 reply] : https://prateekvjoshi.com/2014/02/01/cmake-vs-make/ (by dost6)
How to link openthread
 
I get these errors: C:\Users\Androide\Desktop\minhook\Dynamic>g++ -o bot.exe Dynamic.o hook.o hde32...
[1 reply] : https://openthread.github.io/openthread/df/d4f/group__config-general.h... (by dost6)
what's wrong with the following program?
 
int main() { int score; score = 1000; float & rScore = score; return 0; }
[1 reply] : rScore is a reference to a float. What float does it refer to? (by dhayden)
what's wrong with the following function?
 
int & plasThree(int number) { int threeMore = number + 3; return threeMore; }
[1 reply] : The function returns a reference to an integer (int &). What integer ... (by dhayden)
error LNK2019 unresolved external symbol
 
I'm trying to write code to read and display 10 integer values from a text file. When I try to com...
[2 replies] Last: Look at your declaration for readInts() and how you're calling it: De... (by AbstractionAnon)
Having Trouble Compiling GUI Example Code PPP2
 
I tried to compile GUI example code listing from Chapter 12, Section 12.3. Showing the output from t...
[no replies]
Has_f<T> not working
 
I am trying to get a a type predicate Has_f<T> to work. It's purpose is to check if a type T has a m...
[11 replies] Last: what is the difference envisaged b/w has_f() and has_Tf()? get_f_res... (by gunnerfunner)
Variadic Argument Expansion
 
Please consider the following variadic: template<typename... Args> constexpr bool check1() {...
[1 reply] : Briefly, All(Convertible<Args, size_t>()...) Becomes All(Convertib... (by mbozzi)
by RiCtz
grading system but i when i go to next student record it adds to the final grade to the current student record.
 
#include<iostream> #include<cstring> #include<cmath> #include <cstdlib> #include<fstream> using...
[1 reply] : this is my proposed program. in the first student grade it calculate c... (by RiCtz)
Metadata / Unique ID to differentiate data in C
 
Hi people! I am currently in a project where I should make a simulation of how a system (wearable...
[1 reply] : the vector index, mentioned below link, would be the unique ID: http:/... (by gunnerfunner)
by tushu
Segmentation fault( core dump)
 
using namespace std; static int index = 0; class neighbor { public: int dest ; ...
[3 replies] Last: @Peter87 I removed that 96 lines. Now no error. But not getting des... (by tushu)
Gauss-seidel and ASCII (1,2)
 
Hey I'm in mechanical engineering and hate coding lol if someone could help me with this assignment...
[35 replies] Last: lmao no, who you doe? (by ar569)
Error with template class
 
#ifndef STACK_HPP_INCLUDED #define STACK_HPP_INCLUDED #include "NumStack.hpp" template <class...
[12 replies] Last: Welcome to the forum! You didn't define or link Stack<>::add(), or yo... (by mbozzi)
Pointer to iterator is not properly working
 
So when I do this auto iterator = listeners_[event->type].begin(); while (iterator != listener...
[10 replies] Last: You are right, the problem is somewhere in logic. Thank you very much!... (by Putarda)
dfa automata
 
#include <stdio.h> #define NSTATES 3 #define NCHARS 2 #define NACCEPTS 1 int L ={{0,1},{0,2}...
[no replies]
March 2017 Pages: 1... 89101112... 19
  Archived months: [feb2017] [apr2017]

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