Beginners - June 2011 (Page 5)

Review: Long-Distance Calls
 
Hello, I am having trouble completing this code on Long_Distance Calls, i'll post the code i have done so far /*A long-distance carrier charges the following...
[no replies]
qsort () explain
 
I do not understand qsort I have already read http://www.cplusplus.com/reference/clibrary/cstdlib/qsort/ This is the third paarmeter of qsort function : ...
[2 replies] Last: thanks a lot (by Anon777)
How do I make the program check if a value exists?
 
How do I make the program check if a value exists?
[2 replies] Last: I think the only options are 1. Use your eyeballs 2. Compile the cod... (by nano511)
Save function not working properly
 
My save function seems to have a logic error. The problem is that instead of saving all the objects in the vector, it only saves the last one. Here is the Funct...
[3 replies] Last: This a very effective way I save files. #include <iostream> #... (by TexanMonkey)
Doesn't display results of the switch statement correctly
 
#include <iostream> #include <iomanip> #include <cstring> #include <string> #include <cmath> #include <ostream> using namespace std; int main() { ...
[3 replies] Last: I've altered my attempt a bunch recently. A guy is helping me out in ... (by Ryogathelost)
Removing Outputted Text
 
Hi all. I know that there is a way to remove outputted text from the console, yet I don't know how and there isn't anything on it in my book. I want to use it ...
[3 replies] Last: No problem. :) (by Tresky)
Pointer doesn't show changes from another class
 
I don't understand why the pointer doesn't get reflected back to main when storing it and changing it in Class2. It's still 5 when it should be 9. WTF is going...
[5 replies] Last: Thanks L B, that worked. I just had to make these changes to Class2: ... (by pandamaster)
debugging error
 
Hey everyone. So I've been programming for about 6 months now. And I've reached a new error. I tracked the problem down to case 'T'. Specifically line 19. This ...
[1 reply] : Found it was an incorrect setup for my virtual tables in the class its... (by edithsong)
Installing Qt Sdk
 
Hey guys i have downloaded Qt sdk v1.1.2 offline installation for ubuntu 10.10 but want to know how to install it properly. Can anybody help? Thanks.
[1 reply] : Why did you download it? Just install Qt Creator using the Software Ce... (by Athar)
Doubts about constructor destructor
 
Hi I have few questions regarding constructors and destructors and memberwise initialization... 1. Can a class have many constructors?? 2.what is member...
[2 replies] Last: OP probably wanted to say: 3. Does the compiler provide a defau... (by m4ster r0shi)
by acorn
does this vector of pointers using new look ok
 
What I wanted to do was allocate and store 10 pointers into a vector and then assign some data to it. I wanted to display the data as well as its address and th...
[9 replies] Last: i did this as an exercise to be sure I understood how certain things a... (by acorn)
Other programming language
 
Hello all. My university requires me to take a programming language course other than C++. The languages to choose from are C#, Java, and Visual Basic. I have n...
[6 replies] Last: it seems like a waste of time to learn basic when C# is around now. C#... (by acorn)
Number Generator. Need Help!!!
 
Generate all the possible 7 digits combinations from 1 - 36. #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; int main ...
[4 replies] Last: maybe he wants to see the odds to win lottery :D (by Breadman)
File I/O
 
So I was able to do part of a program, and only got stuck on one part. The program uses text input file to return things such as age and gender. However, The on...
[4 replies] Last: Thanks for the help! @screw: those links were helpful :) @Maese909: Y... (by xXmusicmanXx)
by tonnot
A list of var types with endianness - operating system ?
 
I'm looking for a list in which I can see var types and the endianness used clasiffied by operating system and /or processor. Any link ? Can I use a specific ...
[4 replies] Last: The OS can only follow the endianness enforced by the CPU. You can't r... (by helios)
file I/O question
 
I'm trying to write an application where I ask the user for the text that goes inside their file and then what the file should be called. here so far is the cod...
[1 reply] : wchar_t* fileName ; Are you sure you want an array of pointers to c... (by Mathhead200)
C++ Books
 
Recently I have developed an interest in c++ and started studying it. Now I have finished with Accelerated C++ book and I am not sure about how to proceed from ...
[17 replies] Last: Thank you (by STLreliant)
Replacing white spaces in a string
 
Hi, I have the following string: string a = {12 450 000 EUR, 13 452 700 USD, 34 500 CHF} and the following code: string str (" "); for (i=0; ...
[3 replies] Last: Nevermind, looks like it works well. What? the problem was when th... (by coder777)
by nanger
what is wrong with the virtual destructor in my codes?
 
newchannel.cpp: In destructor ‘virtual NewChannel::~NewChannel()’: newchannel.cpp:45: error: no matching function for call to ‘NewChannel::~NewChannel(...
[1 reply] : Um, you don't call destructors yourself. That's done automatically by ... (by Athar)
Removing last character using cstdio
 
I was playing around today stdio.h functions and one thing that i was trying to do is to delete the last character from a file but i can't see a function in the...
[11 replies] Last: thanks man i actually now changed it and it works well i mean the remo... (by pcultras)
June 2011 Pages: 1... 34567... 41
  Archived months: [may2011] [jul2011]

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