Beginners - March 2012 (Page 55)

question on virtualmemory
 
Hi, many times i have seen virtual memory restricted to twice the ram size..why is it so? can u please explain.
[1 reply] : That is usually an administrator's choice. It also is designers of o... (by Azagaros)
Need help adding a dash/hyphen in this code
 
I need to add a dash (-) in the phone numbers in the code. I also need to detect and display a message saying the number has double digits in the 7 digit number...
[2 replies] Last: okay I used your 2nd option and it worked. Now I just need to display ... (by bhwdragon2012)
Why must SFLM be so complicated to install?
 
i've spent a good 4-6 hours of my day trying to get SFLM to run a simple window, the tutorial on the website offers very little information and their are no up ...
[5 replies] Last: @Stewbond 8 hours each time? You are either exaggerating or there is s... (by closed account 10oTURfi)
question on best approach, class or function
 
I thought I would try and do a McMurphy's Mansion type thing to help me learn the basics of programming. I think I really got the concept of objects backwards....
[5 replies] Last: I understand. I just whipped this out. In a previous semester of sch... (by Azagaros)
Finding the root of a "real" quadratic equation
 
We were given an assignment yesterday to have it submitted today,i did the solution to it only to find it working abnormally. The question was to find the root ...
[9 replies] Last: You've been so helpful buddy,appreciate it alot.Thnx (by OxBADC0DE)
Reversing a string (URGENT HELP!!)
 
I made a program to reverse a string. #include <iostream.h> #include <conio.h> #include <string.h> void main() { char srcstr ,desstr ; int i,len; c...
[2 replies] Last: ohhh..so..the new string..I created i.e desstr din't finish at a null ... (by Shaurya)
for loop problem
 
/* 4-20 for Sales Tax Re-do the Sales Tax assignment for Week 2 with a for loop */ #include <iostream> #include <string> using namespace std; int m...
[6 replies] Last: cout << fixed << setprecision(2); tells cout to display exactly 2 di... (by long double main)
by pzling
How to call inherited class function
 
Hi Suppose I have a class Parent and a class Child. Child is an inherited class of Parent. Child also has a class function Function() (which is not a base cl...
[2 replies] Last: ahhhh, thank you! (by pzling)
help with creating a function
 
/* 5-40 String is on the List? Design a function() to Confirm that a Certain String is on a List. */ #include <iostream> #include <string> using nam...
[7 replies] Last: OHH! thanks! i get it now. LOOOL. (by magadavixt)
by shangy
Print even numbers up to 10 using 12 as predefined variable
 
//this program needs to print even numbers form 2 - 10 #include <iostream> using namespace std; int main() { int count; int x = 0; while (...
[5 replies] Last: Its this //include everything that starts your source code blah bl... (by OxBADC0DE)
Correct memory address?
 
Hi, I'm creating a program that asks the user for a number between 0 and 27 and returns the letter in that number position of the alphabet. So far so good, but ...
[10 replies] Last: Okay, quick lesson in pointers. * refers to pointing to something & i... (by WilliamW1979)
by mtsac
Tip Calculator
 
I will begin by outright saying that I have no prior c++ experience so pardon my incompetence. This is my third day in class and I'm doing all I can to grasp th...
[2 replies] Last: 2 things: First, you have tip as an integer type which can't hold dec... (by WillMalina)
by Lio
throwing an instance of 'std::out_of_range'
 
This program is removing the first two collumns of a text file.Does the job,but sometimes is giving me this error( I dont want to fix it with exeption handler) ...
[4 replies] Last: You would get the same results with line.substr(2) ; the second param... (by cire)
Directories in VS Standard C++ Library?
 
Is there a header or something in the Standard C++ Library for manipulating files? I want to do all file operations in native C++ because they are going to be t...
[3 replies] Last: His answer is still the correct one. All file manipulation is done thr... (by WilliamW1979)
Missing Template argument
 
I have a class that inherits the private members of a class called LinkedList. They are both template classes. I am getting these compiler errors but I am not s...
[11 replies] Last: When you separate the definition from the declaration, the linker won'... (by closed account zb0S216C)
help with code, rotating an array
 
My code outputs the following array first: 0 1 4 9 16 25 That "rotateList" function outputs this: 25 0 1 4 9 16 What do I fix so that the following outputs ...
[8 replies] Last: Honestly, it sounds like your instructor screwed up on the output requ... (by cire)
by hvigil
dice 21
 
This program is about dice 21. The problem i have is when i go to the second round it adds up the total turn value i got from the first round, and I dont want...
[3 replies] Last: I don't know about making each loop shorter but since round 1 code is ... (by vin)
Need help understading expression.
 
Hi everyone, I'm new to both C++ and these forums. I'm reading up on the language but can't seem to get this expression wrapped around my head. expressio...
[5 replies] Last: Nice! I totally get it now!!! Thanks! (by rutski76)
Why the IDE hate?
 
So I keep hearing from, generally, the more seasoned users of this site that IDE usage is the devil. So why all the hate guys/gals? Yea sure it has a ton of han...
[12 replies] Last: path\to\mingw32-g++ -c myfile.cpp Compiles myfile.cpp and puts th... (by hanst99)
serialization of object with pure virtual function
 
All, I have a basic question. I hope some one could help me with a better implementation of what I am trying to do. Basically, I have a bunch of child c...
[no replies]
March 2012 Pages: 1... 5354555657... 71
  Archived months: [feb2012] [apr2012]

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