• 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]
Reading line by line
I know how to read a .txt file line by line using ifstream, but I need a specific action this time. ...
[5 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <v... (by lastchance)
by volang
Handle TCP protocol on your own
Is it possible to somehow dive deeper, and handle the initial TCP handshake(SYN/ACK) on your own? At...
[9 replies] Last: If you want to watch the wire. One of these (or the pre-assembled one... (by salem c)
by Dee5
Taking inputs
Recently I've been helped on making a program which counts numbers found in a string. A little prob...
[5 replies] Last: My aim is not counting number of digits. It's to count occurrence of n... (by Dee5)
Memory allocation problem
Dear all, I'm studying C++ and now I started implementing a code to solve some numerical methods. I...
[2 replies] Last: Dear Aldo, thank you very much for the help. I understood the problem... (by nunesanderson)
Stacks (1,2)
#ifndef DYNINTSTACK_H #define DYNINTSTACK_H template <class T> class DynIntStack { private: //...
[28 replies] Last: I'm not sure why my source file won't print the stacks in reverse tho... (by coder777)
Determining argument is given or omitted by compiler
how to determine / check whether argument is given or omitted in compile time? bool a_function(cha...
[1 reply] : The parameter is not 'omitted' in that sense that the function can det... (by coder777)
Rotate Left and Right
May someone please help me with this code. The task is really simple i guess. The call rotateRight ...
[6 replies] Last: The inputs are number arrays and char arrays, you have to use templat... (by againtry)
Read from a text file and then write into a binary file
CAN NOT USE VECTORS In this program I have to read a text file and write into a binary file. when...
[7 replies] Last: Change line 68 cin.ignore(); to inFile.ignore(100... (by lastchance)
by Dee5
Division by zero problem
Hello guys..I'm working on a program which determine if numbers divided have remainders or not. If ...
[2 replies] Last: Thanks (by Dee5)
there is a questions about c++.
int main(int argc, char** argv) { int cart1,cart2,cart3,cart4,cartotal,x; string players ; ...
[2 replies] Last: for example; start program. Then choose "A player". I give card1 and c... (by o1m2e3r4)
by Dee5
Finding the hidden numbers (1,2)
Hello guys,I'm kinda new in c++ and Im having a little problem. I'm trying to make a program which w...
[25 replies] Last: Sorry again, so what if I want the user to input the number of items h... (by Dee5)
Student Binary Files
#include<iostream> #include<fstream> #include<cstdio> using namespace std; class Student {...
[6 replies] Last: If you use an object in Student, say std::string instead of char array... (by kbw)
Why error: ambiguating new declaration of 'std::string& strs(std::string&, const char*)'
Got this error: ambiguating new declaration of 'std::string& strs(std::string&, const char*)' thoug...
[1 reply] : > ie. only in returned value type the return type is not part of the s... (by ne555)
by volang
How do I store a returned class?
auto test(){ class yo { public: int a = 2; }; yo yo1; return yo1; } ...
[8 replies] Last: auto has its uses. For example: Using it to declare an iterator to... (by Furry Guy)
by jebek9
game sorry
#include <iostream> #include <cmath> #include <cstdlib> #include <time.h> using namespace std; in...
[1 reply] : bool win = false; int winner; while (!win) { for (i... (by Repeater)
How to fix these error for radio sort algorithm?
There are two errors on this header file: Line 22: expression did not evaluate to a constant. Li...
[9 replies] Last: I am not going to rewrite your whole program for you 3 times over. yo... (by jonnin)
by volang
Load/edit/update functions from dll.
I want to export a function, from a .dll file in to my C++ program. I read that I have to load the e...
[7 replies] Last: So if I unload the library, the address to the function that i've got... (by helios)
Greedy algorithm
Hi! Here's a problem about greedy algorithm. The statement is below : Suppose we have a set S = {a...
[1 reply] : yes, you can do it that way. it just changes the solution accordingly.... (by jonnin)
by exro
Converting an integer in an array to an integer
Hi, so I am trying to create a program where I can give it arguments from a batch file, which contai...
[4 replies] Last: At risk of sounding like a broken record - this is why you should alwa... (by MikeyBoy)
Pages: 123... 11
  Archived months: [oct2019]