• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
LINKED LIST FUNCTIONS IN HEADER
 
So I want to implement three different functions into my header file. I am working on the first one ...
[17 replies] Last: If you see the time. I edited it at 8:13 and your response came at 8:1... (by CodingIsHard17)
by volang
Concat strings, assign to char pointer
 
How can do something similar below that works: char * d = new char ; string str1 = "string1"; s...
[2 replies] Last: strcat() is C's of concat/+ operator. you should not use most C funct... (by jonnin)
speed of Newton's binomial by recursion
 
Hi,I have to have faster code (count Newton's binomial) , and I have not any idea how do this. assum...
[4 replies] Last: @ jonnin Chances are this is a "basic algorithms" homework. I dont th... (by Duthomhas)
by volang
Allocate memory then point it to another block
 
char * a = new char ; a = b; Is the "new char " still associated with "a" somehow? Or is the leng...
[4 replies] Last: You can use them ... just don't do what you have done here and "lose" ... (by lastchance)
by volang
Open files without binary set
 
When I open the file(a php file that contains html and javascript) with "ios::binary" the output of ...
[5 replies] Last: If opened as binary, there will be no conversion on input. If opened a... (by lastchance)
by H00G0
Anyone interested in giving feedback on program/app I created?
 
Hello people! I've asked around, quite some time ago, about a program I was working on : I've mad...
[8 replies] Last: If you are going to burn it all to the ground and build up from scratc... (by Furry Guy)
Unit testing in C++ ?
 
Hey guys, I have recently got a new job and they require unit tests everywhere, such that it will c...
[2 replies] Last: As an aside,think about unit testing from the start. Ideally before y... (by Repeater)
function, its argument can accept a string variable with and/or without const
 
How do we have a function with its argument accept a variable with and/or without const specifier, w...
[1 reply] : Huh? #include <iostream> using namespace std; void foo ( const int ... (by salem c)
Can I override assert macro? (1,2)
 
I want to add a message in assert like static_assert. It's possible?
[26 replies] Last: The comma is an operator if and only if it is part of an expression ;... (by JLBorges)
Compiler error: Expected primary expression before...
 
project12.cpp: In function ‘int main()’: project12.cpp:220:23: error: expected primary-expres...
[1 reply] : It looks like you need to review your documentation on how to call fun... (by jlb)
a function returning Eigen::VectorXd failed type inference
 
Dear all, I often use Eigen, and when I make a function which returns Eigen::VectorXd and then call...
[2 replies] Last: Dear kbw Thank you for your kind reply. I understand type deduction ... (by Mitsuru)
by arr
dp with bitsets
 
iam trying to solve a dp problem using maps as follows - #include<bits/stdc++.h> using namespace...
[1 reply] : You need to define operator< to compare the map elements. It's unlike... (by dutch)
operator overloading? or overriding? What is the right?
 
I know the difference between overloading and overriding. overloading is doing add function anoth...
[2 replies] Last: Thanks for your answer! (by woohyeon)
by fog22
What does this error code mean? exit code -1073741819 (0xC0000005)
 
I am trying to recursively sort by job title. Job Title is declared in the Employee class. Whenev...
[3 replies] Last: Check for null before using a pointer. Top is null in this case.... (by kbw)
can you help me for Data Structures
 
Hello guys I can't do this can you help me please. In computer science, an arithmetic expression ...
[1 reply] : If you google "infix to prefix" you'll find some solutions. (by dhayden)
I wonder if I just use like this about template
 
template <class T> class Test { .... Test() {createTest();} using value_type = T; using class_...
[7 replies] Last: That's exactly what I meant. Thanks! maybe I should study English.. no... (by woohyeon)
Can you check me if this is valid program ? because i dont find an output screen
 
//Example: Write a program that reads grades from a file and store them in 2x4 array. Then it finds ...
[2 replies] Last: @Reem Alnuaimi I see where you open the file, but fail to find where ... (by whitenite1)
by colt
OpenGL: No triangle, only background (shader problem?)
 
Hello. I recently tried to execute a simple OGL code that should generate a red triangle over a gree...
[2 replies] Last: Your vertex shader: attribute vec3 vertexPosition_modelspace; // ..... (by Ganado)
by b p t
Open mailbox
 
Hi I need some code wich will open mailbox like "mailto" in html. Thanks
[2 replies] Last: It worked. Thank you (by b p t)
Pages: 123... 13
  Archived months: [oct2019]