• 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]
forgot proper way to get info of one class into another class
ok im trying to setup my game. first I have my main.cpp which just creates Game game; game.r...
[2 replies] Last: ok that works for the game.run(player) function but not for the rest o... (by morngrym)
multiply values in array
hello guys if we have array like int numbers = {3,4,8,9,6,3,2,58,6,3,2,5}; how can we fast ...
[2 replies] Last: #include <iostream> using namespace std; int main(){ int prod=1; in... (by sujitnag)
Question about statically allocated 2D (or nD in general)
So if I declare a 2D array like int a and I go into memory view I can see that a is not a vect...
[no replies]
how to convert numbers from char array
hello i want to convert in loop for example this char number ="54465465445646848640"; and in l...
[1 reply] : char is really a byte (so, an 8 bit integer). So, you can simply do th... (by BasV)
Error in function call of search function..Urgent!!
Error in long kitti=B.search(s,no,B); line....I have no idea ...Pls help..urgent!! I have an examin...
[3 replies] Last: Make the search function static: class batsmen { public: static long... (by coder777)
RunTime Error
Hi guys, Yesterday I've changed something in my program and didnt debug before I closed it. What'...
[6 replies] Last: Sorry I suddenly felt ill but after 16hours of sleep im Feeling way be... (by HalfNOoB)
C++ help.
int sum=82; for(int i; i < sum.length; i++) { final=sum +final; } i need help getti...
[4 replies] Last: I already post on http://www.cplusplus.com/forum/general/154342/ threa... (by sujitnag)
C++ Difficulty with File Input Loop?
Hello! I'm a very novice programmer and I'm having trouble with File input looping. I'm reading f...
[1 reply] : Hmm, I copied your code all into one file, and the only changes I made... (by tipaye)
issues saving and loading from txt file
hey guys, I am having issues with loading the string "Dirty T-Shirt" from a text file i use to save...
[4 replies] Last: And that is the issue of mixing formatted and unformatted input: http:... (by MiiNiPaa)
by Martes
overload operator=
Hi! I want to overload the operator =, but my object has pointers, so when I do the return, event...
[3 replies] Last: Also: http://www.gotw.ca/gotw/059.htm (by keskiverto)
How to print matrix ?
I wants to print matrix such that Consider that original matrix look like following 1 2 3 4...
[1 reply] : Assuming that you input the matrix in the console, the shortest way wo... (by poteto)
How to calculate and apply all possible char combinations (1,2)
I'm trying to figure out how to write a password cracking program that will try all possible char co...
[23 replies] Last: And again you are trying to make next() function to do extra work. Do ... (by MiiNiPaa)
Seeking general solution to this problem (explanatory only)
There are N containers containing elements of type Thing*. Many Thing objects have identical data v...
[6 replies] Last: #include <type_traits> #include <utility> namespace detail { usi... (by JLBorges)
Help with letter grade to numerical grade
#include <iostream> using namespace std; int main() { char a; int b; cout << "Pl...
[5 replies] Last: Thank you! I didn't realize there was a default case for switch statem... (by kmiller3401)
I am working on this assignment and I have half of it completed, I am struggling with writing code a...
[3 replies] Last: Next time don't wait until the last second to try to get a project don... (by Pindrought)
College Assignment help!
This is my second week of C++ course, and I have an assignment due. My instructor doesn't tell much;...
[2 replies] Last: WOW! So quick; it works. Thank you so much! (by nomanrasheed)
Command prompt buffer problem.
I've coded a packet sniffer as console application that outputs a lot of different data into console...
[5 replies] Last: I haven't looked at the API for you, but I'm pretty sure you can query... (by Duoas)
head file for the use of 'error'
In the c++ codes, I would like to use error("Something I would like to say"); what is the headf...
[3 replies] Last: std::cout is for output. std::clog is for logging. std::cerr is for er... (by EssGeEich)
Printing name in reverse using pointers.
There is alien code. What's wroooooong? Thanks in advance. #include <iostream.h> #include <con...
[5 replies] Last: [quote=Idontownaplanet]-namespace std should not be practiced anymore ... (by cire)
Pages: 123... 51
  Archived months: [nov2014]