Beginners - August 2011 (Page 12)

HAVING TROUBLE WITH ARRAYS
 
Here is the segment of code that sets up the matrix. //Matrix Declerations for Words int LIBRARY(){ const int pocetWord = 8; string Word = new string...
[4 replies] Last: No. (by hamsterman)
container questions and probems.
 
Hi! I'm quite green so I might have formulated the question wrong. I'm using a Class called "Cell" to save all the information i need to have about one cell on ...
[5 replies] Last: ok, solved it all Thanks for the help! (by Jonas Wingren)
by Phazon
Sleep() still allows input
 
What I'm trying to do is pause my program for 2.5 seconds so that there's enough time to read some text before you make an input. Sleep(2500) seemed to do this,...
[14 replies] Last: That assumes that there is an input to ignore. (by Duthomhas)
Good Idea?
 
I am working with a new program of and it is a large size. I need to have variables that do not go out of scope after each function. The problem with global var...
[3 replies] Last: Ok it seems like classes are a much better option that namespaces. (by deathbutton1)
Common data of two objects
 
Hi all, I am designing a program with C++. There are two objects in my program. The two objects perform quite different tasks, but they use one common large da...
[5 replies] Last: Yes, thank you very much. I will think more about those ways tonight.... (by chucthanh)
by snash
New Compiler
 
Can anyone please help me to get best compiler? C++ language tutorials are really helpful. But programs are not at all running in my 'Borland's turbo c++ v4.5'...
[14 replies] Last: [quote=Albatross]that's because Visual Studio isn't smart enough to ke... (by anonymous23323124)
input, output, sum problem.
 
Hello everyone. I am new to C++ programming, and am in need of serious help. This is a HW assisgnment I'm not going to lie. It's actually a big project:( S...
[4 replies] Last: cin >> does not like character arrays... I suggest looking into get... (by wolfgang)
Doubt in using pointer to Array of Classes
 
Say I create a class A. Then I create an Array of 5 objects of type *A This is the format of my code: class A { private: int X; char...
[6 replies] Last: I was using it for Polymorphism. I was making an array of pointers to... (by Nisheeth)
Ignoring spaces
 
I wrote this program to determine if you are calling the U.S. based on the area code you dial. I've only got three up for trials. I'm trying to make it ignore s...
[7 replies] Last: For input, just for( int i = 0; i < number_of_codes; i++ ) cin >> are... (by hamsterman)
Good book
 
Can someone please tell me a good beginner book on c++ tcp/ip programming?
[2 replies] Last: Thanks! (by COD3RCODE)
HELP!!!!!!!!!!
 
i need to create a program that finds common interests in people to match them up. I have an array of men and an array of women of the class CIndividual. I th...
[2 replies] Last: I believe your program is a classic example of when operator overloadi... (by sohguanh)
class arrays
 
How do you declare an object of a class that is an array. This is my code to try to get across what I'm asking. #include <iostream> using namespace std; cl...
[2 replies] Last: That totally makes sense, thanks man! (by jeffsg605)
Arguments in function.
 
Hi . Friends i am new in programming. I want to know that what is the main difference btwen arguments by value and by reference. And where i use which one .
[12 replies] Last: The "Does using pointers qualify as pass-by-reference?" debate is akin... (by shacktar)
Do While Loop Early Ending
 
Alright so this is my first do while loop, and I'm having some interesting flaws. First of all, let me say that everything runs without error messages, it just...
[4 replies] Last: EDIT: Never mind! I did some more reading on it and everything now run... (by helios82)
HELP! CANNOT UNDERSTAND ERROR MESSAGE!!
 
Here is the current code i am trying to run. i see nothing wrong with it but the errors are listed below #include<iostream> #include<string> #include <stdio.h...
[12 replies] Last: Danny, std::cin.clear( ) only clears the flags set by std::cin ; it... (by closed account zb0S216C)
Simple simple simple
 
im tryin to write my first loop, very simple but cant get it to run. What is wrong? #include<iostream> using namespace std; int main(); int i=0; ...
[6 replies] Last: [quote=Cong]It's not compiling because main isn't returning a value ev... (by closed account zb0S216C)
why wont my compiler debug my program any more?
 
I recently started my assembly language class and I'm using C++ express 2010 to compile my programs but now when I write a c++ program I have nothing but troubl...
[1 reply] : Try... #1 check the projects "General" properties - is the "Output Di... (by andywestken)
Exponentional recursive function
 
Hello! I need some help writing a function,that calculates the value x^y,when x and y>0. I´ve wrote a function that calculates the value with the base 10,but...
[3 replies] Last: Thanks,got it to work:) (by menopaws)
creating "wchar_t" at runtime
 
why wont this line work? I am just simply trying to create a wchar_t string at run time but my definition below won't work. wchar_t * cptrDocname = new wch...
[4 replies] Last: #define _countof(X) (sizeof(X) / sizeof(X )) blech. Do this inste... (by Disch)
Structure Help
 
I'm new to C++ and I'm working my way though some beginners tutorials and making simple programmes from what I've learned. I've gotten up to Structures so I ...
[4 replies] Last: The only pure, cross-patform C++ way to clear the screen is to print l... (by andywestken)
August 2011 Pages: 1... 1011121314... 39
  Archived months: [jul2011] [sep2011]

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