Beginners - July 2011 (Page 40)

by wtf
What do you think of my footwork?
 
A while ago I remember asking on here something about trying to do something like this. (To be able to get the type of a variable). And I was told it wasn't po...
[1 reply] : You should look into typeid .. (by hamsterman)
Problem with char
 
I'm trying to copy out this program, which illustrates a use of char type. #include <iostream> using namespace std; int main() { char letter; ...
[4 replies] Last: Wow! your absolutely right. thank you for your reply. My compiler told... (by jollyroger151)
Funtion Headers
 
error C2447: '{' : missing function header (old-style formal list?) error C2447: '{' : missing function header (old-style formal list?) I keep getting these...
[2 replies] Last: too easy (by bwillisb)
Hiding User Input
 
Hey I have a project where I need a user to enter a password. I had saw this post, and It seems to work. However, There is a problem. I was hoping that every ch...
[1 reply] : That is actually the correct way to do it. Unfortunately, people want... (by Duthomhas)
Multiple method definition - linking
 
So I have this project I've been working on and all files there within work fine, but when I try to build it gives me an error saying that every method has been...
[4 replies] Last: Ok nevermind I totally messed up and forgot to copy over one of my cla... (by tam0009)
by oahsen
Flickering Problem in Drawing a Panel
 
Hi everyone, I am trying to continuously visualize an image in a panel with C++ using Visual Studio 2008. So, I have the following code which basically reite...
[3 replies] Last: Thanks guys. I managed to solve the problem. In case anyone searches t... (by oahsen)
initialising a pointer to an object problem
 
Ok so code is roughly like: class someclass{ private: int x; int y; public: someclass(int x1, int y1); }; someclass::someclass(int x1, int...
[3 replies] Last: Returning from main is implicit, if you do not specify a return somewh... (by LB)
static class variable problem..
 
Hey everyone, I'm having issues with static class variables.. Here is my source.. class Ground { protected: //Amount of ground blox static u...
[2 replies] Last: ok sweet thanks (by strongdrink)
error: modified outside of wxDev-C++
 
All of a sudden, I'm getting this error message when compiling my code in wxDev-C++. Even when I start a new project from scratch, eventually this error pops u...
[3 replies] Last: It doesn't have to be specifically notepad, just any program capable o... (by LB)
I need Help!!
 
I searched for a library that includes a code like openfile ,closefile and searched for a code in c++ libraries.i couldn't find it. pls reply if there is a code...
[1 reply] : http://cplusplus.com/doc/tutorial/files/ It's called the standard C+... (by anonymous23323124)
by Savale
trying to read from a file
 
Hey guys I am trying to read from a file and put that into a string called data, which I believe I am doing correctly. When I print out whatever is in data in...
[2 replies] Last: Thanks ill try that out (by Savale)
Incorrect Loop
 
I am trying to display a polynomial equation using numbers entered by the user. When trying to decipher the negative and positive value of the numbers it keep d...
[3 replies] Last: What's the definition of end ? Try moving the n++ statement to the... (by closed account zb0S216C)
Visual studio c++ 2010
 
Im having problem with this program. in Dev-C++ i countered error that it doesent support long long, so i changed to visual studio, but now im gettign one error...
[10 replies] Last: place your code under the source files (by vastrolorde)
passing ifstream by reference doesn't work
 
Hey, I'm trying to write a short program with a function ('OpenFil') that prompts the user for the name of a text file and then opens this using ifstream (pa...
[4 replies] Last: Thanks! I didn't realize about not being able to use ifstream to open ... (by treegirl)
Any proper tutorial on sockets for mere mortals ... and windows?
 
I have understood a great deal of socket programming in C# and have written a mall network Tcp library using sockets, not TcpClient/Listener (just ask if you wn...
[4 replies] Last: ...finally, this one seem understandable and don't expect me to unders... (by GisleAune)
Problem with "While" loop
 
Hi, I recently started coding in C++ and came to the subject of loops and the keyword while. I tried to create a simple program that finds the prime factors of ...
[4 replies] Last: Thanks a bunch guys :) You really helped me figure out what to o for t... (by Cdoimne)
by b1tR4r
C++ Exponent Help.
 
Hey Guys I am new to C++, And for the past hour I have been trying to create a program that calculates the powers of any two numbers the user gives... For examp...
[8 replies] Last: Ok thank you, I kinda get it now... I HATE BEING BAD AT MATH! :/ (by b1tR4r)
by nand
how to determine the largest of 4 ints?
 
Hello, I need for my program to determine whitch one of four ints is the largest. I need the name, not the value. eg: int a = rand()%9; int a1=1; // a fact...
[8 replies] Last: Hi, Thank you all for your help. In the end, I made a 2x4 matrix with... (by nand)
The "new" operator in a function
 
Hi all, I wrote a program in C++, it runs and sometimes crashes at runtime with the report: inversesmw.x(1488) malloc: *** error for object 0x100100960: ...
[6 replies] Last: Thanks, ne555. I found a carelessly deletion the pointer in the destru... (by chucthanh)
Inventory program
 
As I was struggling through a recent Java class a good friend of mine told me that something which helped him learn the language was to pick a project for himse...
[9 replies] Last: Use dynamic memory, or an STL container like a vector. (by Zhuge)
July 2011 Pages: 1... 3839404142... 54
  Archived months: [jun2011] [aug2011]

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