General C++ Programming - April 2009 (Page 19)

by obai
Runtime error R6025
 
Hello, I am trying to run my c++ programm and I get the following error in debug mode R6025 Pure virtual function call and in release mode it interrupts th...
[3 replies] Last: http://support.microsoft.com/kb/125749 (by kbw)
by dkaip
another copy problem ...
 
I work on code blocks, the file is in utf8. When runs i take the problem. Program received signal SIGSEGV, Segmentation fault. wchar_t *s1(L"today is a be...
[3 replies] Last: wchar_t is a wide char, a permamently wide char, i.e. Unicode. You ar... (by kbw)
(SOLVED) "Ignore this" code ~ General Question
 
Hey guys, I am writing this code, and I just want to make sure one part of the code works while another part is incomplete. How can I have it so that a segme...
[5 replies] Last: An */ ending comment block operator doesn't act like a brace. One will... (by eker676)
by jzackt
names will not switch using bubble sort
 
Im trying to rank a class from least to greatest by average, but Im trying to switch the names along with them, but the names do not switch. Can someone help me...
[2 replies] Last: names_array is a char array. Thanks i will try strcpy (by jzackt)
getline (1,2)
 
I am to write a program in C++ to input my complete name and adress during program exicution and then print it on the secreen. Main problem that i am facing ...
[26 replies] Last: You don't have to press enter twice, the second time you pressed it wa... (by Bazzy)
to count the number of spaces vowels consonants and digits in a line
 
wads wrong with tis... #include <iostream> #include <cstdlib> #include <cctype> using namespace std; int main() { int digit=0,consonant=0,space=0,vo...
[2 replies] Last: If you ever want to check multiple inequalities, you need to use a log... (by jdd)
how to count spaces in a line
 
wads the problem with tis... int digit=0,consonant=0,space=0,vowel=0,i,c; char text ; cout<<"Input a line of text terminated with the @ character -> ";...
[2 replies] Last: That program is counting the number characters in the string. If you w... (by Bazzy)
Grab unknown number of integers out of a C++ string
 
I have a string that looks something like "Cell 4,102,210:13" The problem is that I don't necessarily know how many numbers are separated by a comma and how man...
[1 reply] : You can use stringstreams to get numbers from a string and a vector to... (by Bazzy)
Creating a two dimentional array.
 
Guys... was going through a post in beginner section.. Creating a 2 dimensional array in C out of curiosity, if we have this: int **ptr; what c...
[9 replies] Last: In C++, you can always do something like this: //Create your po... (by Tristanm)
by ilyes
destruct a set of classes
 
hello, i have a question a about destructor. if i have a set of classes #include <set> set <classe_name> exp; should ...
[2 replies] Last: I don't think it's needed. Say for instance: // ifndef BOB_H //... (by closed account S6k9GNh0)
abstract class
 
http://en.wikipedia.org/wiki/Prototype_pattern#C.2B.2B In the prototype pattern described on wiki page in the link above, the class Record has a pure virtual...
[5 replies] Last: Thanks! (by n4nature)
by ilyes
set of class
 
hello, i have a problem with set. the problem is not the declarartion: set<TS> sec_ts; TS* t=new TS(w); sec_ts.insert(*t); the insertion cause an erro...
[4 replies] Last: that is a good RQ ! my pb is resolved!!! (by ilyes)
by Disch
Derived function chainging problem
 
I'm having a design problem that maybe someone here can help me with. It's pretty tricky, but kind of fun. - I want a class which has a bunch of properties ...
[2 replies] Last: template< typename Derived > class A { Derived& a() { return ... (by jsmith)
by ilyes
a problem with the operator < in a set of class
 
hello, i need help!!! i have defined an opetarator in class TS bool operator < (TS const & t) const { return this->getcoutinuity_counter() < t.getcouti...
[2 replies] Last: Also assuming you ever write the destructor to free the memory allocat... (by jsmith)
Chess board program.
 
I'm supposed to be writing a program for a programming class that involves taking an infinitely scalable chess board, and randomly placing queen pieces on it in...
[8 replies] Last: actually your design will not be able to solve the problem which are d... (by writetonsharma)
programe to perform Matrix Multiplication for 3x5 and 5x3 matrix.
 
can someone tell me wads wrong with my program.. #include <iostream> #include <cstdlib> using namespace std; int main() { int Table1 ; for (i...
[8 replies] Last: Look at two for loops for(int i=0;i<5;i++) ( for(int j=0;j<5;j++)... (by buffbill)
Merge Sort
 
My directions are to create a program that will read two files containing a sorted number of integers and merge them into one with all the integers sorted in de...
[9 replies] Last: You can do this using two boolean functions more () and copy() providi... (by buffbill)
Insertion into Linked Lists
 
I'm trying to use insertion into a linked list by position. i.e. numbers.insertByPosition(0.5, 0); that's my function call and the first parameter is the...
[3 replies] Last: notice that while (nodePtr != NULL && nodePtr -> value < value) is... (by Gumbercules)
by ehullz
Maximum Velocity Problem
 
I am completely lost on this one - I've been told I'm making it too hard, but I'm still not seeing it... I'm not asking for a complete answer, any help is appr...
[11 replies] Last: Well you could do something like: while(r>max_r) {//calculate r ... (by buffbill)
Overloading opreators error
 
Well, I am overloading the << and >> operators for two of my custom classes, and I am getting this error: Error 4 error C2248: 'std::basic_ios<_Elem,_Traits...
[4 replies] Last: Ok, I found the error. There was another function I was calling insid... (by firedraco)
April 2009 Pages: 1... 17181920
  Archived months: [mar2009] [may2009]

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