Beginners - July 2011 (Page 50)

Declaration of vector with pointer
 
Hy guys!I have just began learning visual c++ and i have a little problem.I have the following code: #include<stdio.h> #include<stdlib.h> #include<conio....
[2 replies] Last: I am dynamically allocating because i make this program as a homework ... (by crawler)
Cannot Get Text From .TXT File.
 
Heya, guys. I've been trying to make a command-line RPG game for a little bit, and I've gotten to a point where I ask the user if they want to learn more about...
[9 replies] Last: Ok, I'll go through it line by line: ifstream InFile ("FamilyHistory... (by LB)
Average Rainfall
 
i have been reading my book and looking online but it is easier said and done when it comes to this assignment. For the following program, include: a. Ps...
[2 replies] Last: What? Do you expect us to write it for you? (by nano511)
The Random Number Guessing Game
 
I having problems putting this game together for class, i am very new to this thing. please assist!!! here is what is needed: The Random Number Guessing Gam...
[1 reply] : It looks like you are avoiding doing the biggest part of the assignmen... (by LB)
what does exactly happen when the destructor run?
 
let's say you have a very simple class; class A{ public: A(){} ~A(){} int GetData(){return a;} private: int a; }; int main(){ A myObj; myObj.G...
[4 replies] Last: when the destructor is called, as well as the member data, the object... (by LB)
Can't read the file when adding '\n' to it
 
fseek(f1, 0, SEEK_END); long Size = ftell(f1); rewind(f1); buffer=(char*) malloc(Size); if(buffer==NULL){ cout <<"Memory al...
[2 replies] Last: Thank you very much, I've changed it and it works now fine! (by pcultras)
by stage0
how to delete all files in a directory c++?
 
#include <cstdlib> #include <iostream> #include <windows.h> #include <winable.h> http://www.cplusplus.com/forum/thread.cgi?w=new&i=851 #include <iostream> ...
[1 reply] : You have to delete each file with a call to remove. Also std::remove ... (by binarybob350)
compilation woes
 
Hi guys, relative newbie here I downloaded this guy https://download.github.com/robbeofficial-KinectTouch-a980ecf.zip and tried to compile it with ming...
[3 replies] Last: Ensure that the #include line encloses the file in double quotes and n... (by jsmith)
How to find the saddle point of a matrix?
 
How to find the saddle point of a matrix and how to locate it in columns and rows? A matrix is said to have a saddle point if some entry a is the smal...
[2 replies] Last: Thanks for your help hamsterman :) now i have an idea although i'm sti... (by marklycris05)
"Fortune Teller.exe has encountered a problem"
 
Ok, so after executing a loop in my program 2 times i get this error message: "Fortune Teller.exe has encountered a problem and needs to close. We are sorry for...
[1 reply] : while (answer == "Yes" || answer == "yes" || answer == "No" || answer... (by Branflakes91093)
by ploglo
Calculator Problem
 
I am extremely new to c++ and, after spending a few evenings learning the basics, decided to try and code a basic calculator. I got the first part, addition dow...
[2 replies] Last: yeah try removing the two semicolons. Then if it still doesn't work so... (by bzb95)
Array of Pointers to an Array
 
Hi, I am teaching myself C++. I am currently writing a program to sort 10 numbers. I have the array with values working, and I can print the values on the ...
[3 replies] Last: pnumbers is an array of int*, and i is the offset you want to look at.... (by Zhuge)
Struct/string function not working
 
Can anyone help me get this function working? It is supposed to reorder the words in alphabetical order. It only puts the first two words in order and ignores t...
[4 replies] Last: Oh, okay. We have just started talking about constructors and destruct... (by Axl Van Damme)
by dev200
Color ???
 
How can i make a color like a square ? like a example: ---------- |Wellcome| ---------- but this square insade to be in a some color :? is it possible im ...
[6 replies] Last: That's It man thanks very much :) works that i wanted to do :) (by dev200)
c++ help please
 
thanks
[2 replies] Last: thank for your answers. program give the correct answer. (by exmlash007)
by exbow
merging vectors problem.
 
hi guys i am new at C++ and i am right now learning about vectors. i created 2 vectors which deposit high scores for a game, and while i try to merge them it ke...
[4 replies] Last: oh man ... thanks for helping me out LB!! your help is really apprecia... (by exbow)
Help with IDE
 
Hi guys, I am scratching c++ and I am a little bit confused. In Eclipse (galileo 3.5) if I do this: ############################################## //h...
[4 replies] Last: Hi guys, Here is the output: #################################### **... (by shotgun)
by Tankz
Variable Size Multi Dimensional Array Casting
 
Hi all. This is my first post so before I start begging for help let me first say that I am very grateful to the people who contribute and created this site. I...
[3 replies] Last: The compiler should optimize *8 to <<3 for you. Also, each result in... (by hamsterman)
little help plz
 
//why the compiler shows error when we write cout<<gree instead of cout<<gree #include <iostream> using namespace std; int main() { char gree ="who r u :";...
[2 replies] Last: The edited code is correct now, I believe. (by LB)
by Amirah
Pointer Upcast and Downcast
 
converting integer pointer to char pointer: int main() { int* ptrInt; char * ptrChar; void* ptrVoid; unsigned char indx; int sample = 0x12345678; ptrIn...
[3 replies] Last: Anyways, I was wondering if pointer variables has a different take in... (by Disch)
July 2011 Pages: 1... 4849505152... 54
  Archived months: [jun2011] [aug2011]

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