General C++ Programming (Page 36)

Find String help
 
I'm trying to use the find string to erase a '\n' from the end of a word. I tried something along t...
[7 replies] Last: ut it had no effect. Any suggestions on what I'm doing wrong? It d... (by cire)
Including a JPEG file
 
How to include a jpeg file into a c++ program??
[2 replies] Last: Do you mean embedding into executable itself and access it at runtime ... (by modoran)
No operator matches this operan
 
Im almost done with this code,, this is what i have to do Write a program that displays the roman n...
[3 replies] Last: Thank you guys! it worked! (by Christian Feliciano)
Why doesn't it run in Release mode?
 
I've been working on the Euler project problems, and I have the solution to problem 25, but it only ...
[4 replies] Last: If you want to see which warnings are generated (that warning is one ... (by Ikaron)
Ranking Problem With Arrays
 
At a contest, a team (3 – 4 members) is given one computer and a set amount of time (typically 4 â...
[no replies]
Array into function as parameter pass
 
Hey everyone, so I have been working on this all day, and its due in like an hour and a half. I have...
[1 reply] : Your functions should be outside of main. Forward declarations are d... (by Computergeek01)
by Smac89
data corruption in vector
 
I have this code that is supposed to store numbers in one vector and another vector stores pointers ...
[9 replies] Last: well then for-loops it is. thank you both (by Smac89)
C++ catching strings
 
I am making a very basic calculator, but the problem is that when I input a string, it goes on repea...
[10 replies] Last: Normally cout is "tied" to cin. Whenever you use cin, cout is flushed... (by cire)
Issue with function
 
void add_inventory(string item){ int x; //Counter while (x << bag_space){ //While counter is l...
[2 replies] Last: Alright that makes sense. I read somewhere about using inventory .com... (by Nathaniel Sheller)
threads : variable allocated on the stack is persisting
 
I always thought variables allocated on the stack vanish when the function returns / ends However, ...
[8 replies] Last: No. They are part of the static data area of the program, which exist... (by MikeyBoy)
converting a double to a string
 
hi i think i need to convert a double to a string, we are working in visual studio doing a program. ...
[1 reply] : never mind i figured it out that quick, i had area as int and i was di... (by latenwrong)
Returning A Different Data Type Depending On A Variable
 
Okay, I've been working on this Texture class that's going to be compatible with both SDL and OpenGL...
[4 replies] Last: @ OP: Have you looked at the template tutorial here? It's how I learne... (by Computergeek01)
check if number belongs to particular base or not
 
i am making a number base conversion program in c++, suppose that user enters an base 2 number and ...
[6 replies] Last: how can i detect that number is belongs to base 2 number system or no... (by cire)
if statement doesn't work as I expected
 
#include "stdafx.h" #include <iostream> using namespace std; int main() { int a,b; b = 2...
[6 replies] Last: Pardon me so why it's not working for me ? You're using VC++ which... (by cire)
by CroCo
Winsock & double in C?
 
Hello all, I'm trying to send a double array using UDP over the Internet. I did establish the conn...
[1 reply] : Thank you. I did figure it out. (by CroCo)
by maxrax
Getting bug: 'first defined here'
 
while using codeblocks to compile, I get the errors Multiple definition of main and first def...
[8 replies] Last: Better yet, start a new, clean project. Make sure it is a "command lin... (by Duoas)
Problem with members initialisers
 
Hey, i was practicing member intialisers.. But I am being accused by the compiler for not declaring ...
[3 replies] Last: where is the object "so", line 9 in main.cpp (by Bourgond Aries)
Issue with vectors
 
Vector and String headers are both included. Using namespace std. //The following 2 functions setu...
[2 replies] Last: * invertory = "Empty" (by MiiNiPaa)
help!!
 
Question: State the values of each of these int variables after the calculation is performed. Ass...
[4 replies] Last: Stewbond fails for supplying full homework solutions. Especially when... (by Disch)
Month Class : Overloading prefix and post fix?
 
I hope this is the right place for this. I just made this account because I am at my wits end with t...
[5 replies] Last: I forgot to mention the check if number is in range 1-12 for your erro... (by zoran404)
Pages: 1... 3435363738... 92
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.