• 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]
Windows timer
Hello everyone! I need to implement a multi platform timer. I implemented it on Linux using '...
[12 replies] Last: Pure C++ #include <iostream> #include <chrono> #include <thread> #in... (by JLBorges)
by Nwb
Is my logic right?
void remove_coordinates(const unsigned int &index, coordinates *&path_array, unsigned int &current_...
[7 replies] Last: I forgot to mention move(...). You can use std functions with arrays a... (by coder777)
How to solve in less than O(n2) where N=100000 (length of string) and time limit 1 Sec (1,2)
We have to find the product of the length of all substring of a given string such that substring for...
[32 replies] Last: Again you are getting angry. I think you should focus your energy more... (by MyCreativityDiedWithEngg)
About class's(OOP): i need some information. And Multidimensional Vectors
we have 1 class variable. like we know the class have methods... and some of that methods can be ano...
[7 replies] Last: So... you're going to completely ignore the questions I've asked? Aft... (by MikeyBoy)
passing a function to an array.
[5 replies] Last: Please DON'T remove your question after getting an answer. It makes t... (by MikeyBoy)
merging two files into third file
Can anyone tell why the last alphabet of both file print twice in third file? #include<iostream> ...
[3 replies] Last: [quote=swahajali]What about space between these words? You can eithe... (by lastchance)
i need help with array of searching and sorting
Implement a Bubble Sort. In main, declare an array of 10 integers. Create 3 function to inputA...
[4 replies] Last: Forget about the bubbleSort (and swap) for now. Can you do this? #i... (by tpb)
by alreem
need to answer
What si the output of the following code: int vb char dd for (int i= 0; i < 8; i++0 cin >> ...
[5 replies] Last: The code is idiotic and does nothing interesting at all, no matter wha... (by tpb)
Need Help
This is my coding #include <iostream> #include <cstring> #include <fstream> using namespace std;...
[1 reply] : 1. "need help" isn't a subject title. http://www.catb.org/esr/faqs/sma... (by salem c)
by alreem
anyone know how to write a program
HELP me please to solve this problem using if statement Write a C++ programme that reads a sequ...
[5 replies] Last: Okay then break it into smaller assignments. First make a do-while (y... (by Nwb)
Pig Latin Help
edit: I guess long story short is how do you save and detect spaces in a string vector? Because the ...
[1 reply] : got it. I fixed the vector a bit for (int i = 0; i < str.length(); ... (by arblinked)
by rgood
Two-Dimensional Array Duplicate Values
Howdy, I am attempting to create a program for costing allocations to different projects. I wo...
[1 reply] : I think a map is a more appropriate data structure. http://www.cpluspl... (by Browni3141)
how to pass a templated function as argument?
I'm playing a bit around with function pointers. Here I tried to implement a simple generic sorting ...
[1 reply] : It's simpler than you have it. #include <iostream> #include <list> ... (by tpb)
Find the power of and than modules large numbers
I am trying to find the power of very large numbers and than the modules unsigned long long base ...
[5 replies] Last: So you trust one random person's code over another random person's cod... (by tpb)
Need a suggestion
Hey, I am Numan. I am a student of BS Computer science.can anyone suggest me best c++ author book. p...
[2 replies] Last: oh . okay, I removed my email. thank you for your kind advice. :) (by NumanRKI)
While Loop
[1 reply] : & is a bitwise operator you must use && for logical inclusive. (by Nwb)
Share object between files
Hi guys, Can I share same object(Adafruit_SH1106 Screen(4)) between main.cpp and ui.cpp? How I can ...
[9 replies] Last: I use functions on same way in both files. I'll do more tests and writ... (by Pararera)
why this code giver error in visual studio on the other hand it works fine in code blocks
#include <iostream> using namespace std; void disp(char *c) //here visual studio says it should be...
[4 replies] Last: https://en.cppreference.com/w/cpp/language/string_literal OK: string ... (by lastchance)
Undefined Reference even the library is there?
I have been trying to compile a trivial static library. I used the library in another project Th...
[2 replies] Last: Oh... But if no slashes means relative path, why the command I origina... (by As74s22)
Pages: 123... 18
  Archived months: [sep2018]