General C++ Programming - March 2011 (Page 13)

Help with function pointer syntax
 
Hi guys, I need some quick help. I want to know how I can write this better, I'm sure it's possible....
[1 reply] : It's possible, but why would you want this? It gets very ugly without ... (by Branflakes91093)
read all lines in text file and store in one string
 
Hello I am making an encryption program and It is working.The only problem I have is that my program...
[2 replies] Last: getline() can accept a deliminator parameter. This means that it will ... (by ModShop)
Sorting problem
 
Hello everyone! I'm far from understanding all I do with C++ so please forgive my foolish mistake...
[9 replies] Last: Just wanted to post a few links. These should be all the tools needed... (by sharris)
by Katma
File input and modules
 
I'm doing another project for school, and I'm struggling a little with a few glitches I'm having. Wh...
[6 replies] Last: Well, one small modification is to substitute line 87, which is curren... (by simeonz)
prints something but i don't know why
 
http://i52.tinypic.com/153npcx.jpg my code is alright, but why it prints me this -85893460...
[7 replies] Last: i copy-paste your code and now it works.... i can't understand lol t... (by Black Pearl)
Linking Libraries - VC++ 2010 - General
 
I am having some confusion about how the linking of separate or 'third party' libraries works. First...
[3 replies] Last: Very very helpful posts, thank you so much. That cleared up everything... (by Nuclaer)
C++0x doubts: RValues and Move semantics
 
Can anyone give me an explanation about the new features of C + +. I wonder what kind of reference ...
[2 replies] Last: thanks, Bazzy. I did not think the specialization of templates to sepa... (by pavanetti)
Question about geting my program to work muti part program frist try
 
Question about puting mutiple programs into one. I am studying C++ for part of my networking course ...
[2 replies] Last: I appreicate that still kinda hard to understand but il try it the exa... (by dtw103184)
by JRevor
Operator << overloading apparently not working.
 
The following code compiles, but does not "work". It's supposed to print "There goes foo 0 1 2 ...
[2 replies] Last: oh my god.. XD I stop programming c++ for 6 months and this happens to... (by JRevor)
by venot
i need some basic guides to write this program
 
i have problem's with how to write a program that will find the largest and smallest integer numbers...
[15 replies] Last: #include <iostream> #define MAX 100 using namespace std; void max (... (by Janlan)
by Icenel
How to Split a Word into letters
 
char letters ; char input ; gets(input); My input is "binary" then I want to have b >> lett...
[6 replies] Last: In both cases you are comparing a character to a C string. You need t... (by PanGalactic)
Class ? O_O
 
Ok, I do medium level C++ exercises, but I havent done yet a ”class”. I have here a matrix (done...
[2 replies] Last: In this specific case, it might make sense to think about modeling mat... (by PanGalactic)
Sorting objects in a vector?
 
I'm writing a program that requires me to sort a vector of objects. I already know how to compare tw...
[12 replies] Last: I tried the swap() function in the algorithm header and it's still not... (by packetpirate)
Parameter of a global function is undeclared
 
I'm trying to use a class object as a parameter in a global function which is defined in my main.h, ...
[2 replies] Last: It did indeed include main.h, and that fixed it. Thanks! (by uviviii)
string method definition
 
Hey this is my first post and im trying to figure out how to complete this method definition if some...
[1 reply] : Look at strncpy(). Also, s does not have any member functions, so s.c_... (by PanGalactic)
Switching between bitmaps and writing to the console
 
So I am making a game and I want to be able to switch between bitmap scenes and writing directly to ...
[4 replies] Last: Figured it out! I was switching between two screenbuffers and setting ... (by skibbyama)
Purpose of the Comma Operator
 
I think that the comma operator returns the rightmost expression so 10, 12, 15 returns 15. However...
[7 replies] Last: Ok. I can see how that might be useful on occasion... So thanks again... (by anonymous23323124)
by chess
c problem
 
I should write a program for simple calculator that does addition,subtraction,multiplication,divisio...
[2 replies] Last: I think you should have ch = getchar(); before line 27. EDIT: You s... (by simeonz)
A matrix
 
A code for matrix made by myself, I know that I didnt translate the comments but I hope you will man...
[2 replies] Last: yeah, I did an update for it. And good idea Ill do a class for it ;D ... (by jumper007)
Function generator
 
Hello to all, I want to make an integrator to compute a physical problem. My function should take...
[8 replies] Last: Well, I have no experience with it whatsoever, but I think I should th... (by simeonz)
March 2011 Pages: 1... 1112131415... 31
  Archived months: [feb2011] [apr2011]

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