General C++ Programming - November 2010 (Page 9)

by kemnet
Write files from TXT into 2D array
 
Hello ALl im new just wanted to ask a quick question thanks. so im writing a program that reads in data from a ".txt" file and im supposed to use it to do c...
[13 replies] Last: yea ty :) got that (by kemnet)
A question
 
I am in an Object Oriented Programming class and we as doing an assignment about overloading operators which I get... But I need to get a "fraction" from the ke...
[3 replies] Last: No mystr1 I think is actually a string. my "str". (by LittleQuick)
operator overloading problem
 
hi guys. I am working on class operator overloading, here I got problem with comparison operators. I am using visual studio 10 and it shows the curly underline ...
[3 replies] Last: thank you guestgulkan it works. i really appreciated. (by bshrestha)
Extending 3rd party APIs (Qt) -- diamond inheritance problems..
 
Hello. I'm writing a UI library which uses Qt as a base, and I want each of my widgets to derive from my own version of QWidget which adds some base functionali...
[4 replies] Last: Maybe this will help someone in the future. The solution in this case ... (by JimFromTexas)
by Xzi
Segmentation Fault (1,2)
 
I am virtually done with this program but there is a segmentation fault and I am not quite sure how to fix it. I am sorting 5 beatles albums alphabetically whi...
[35 replies] Last: Alrighty thanks man I appreciate it. (by Xzi)
sorting algo causing seg fault
 
any ideas on how I could fix this seg fault would be great! thanks! template <typename I> void merge(I begin, I mid, I end, bool (*compare)(typename I::v...
[2 replies] Last: When calling a function pointer, I think you have to do it this way: ... (by firedraco)
|| in ifdef
 
Can we use || operator in ifdef?? e.g. #ifdef _WIN32 || GNU
[5 replies] Last: #if defined(_WIN32) || defined(GNU) just like the example moorecm ... (by Duthomhas)
by dibzyo
how to make this function to create a E with words
 
write a function that makes you give a caracter,c and a impar (ex:1,3,5) number between 5 and 21 (included) that designs on the monitor a E with the caracter gi...
[3 replies] Last: If you can do the first two, then where's the problem? Post an attemp... (by hamsterman)
Problems with converting string to an Integer in a calculator program
 
Hey im having problems with my program and i am not sure whats wrong.i will underline what i think is not working I do know that error messages pop up telling ...
[5 replies] Last: Have you tried debugging your program? (by kbw)
Clearing Screen
 
Ok, I know this has been brought up before, but how do I clear the screen without system("cls"); , if you know any alternatives, or know the thread where...
[3 replies] Last: "I suggest using this epic piece of Godliness" void ClearScreen() ... (by LittleQuick)
how do I handle a dll function that does not return?
 
Hi, I am using visual C++ ver 8. I have written a application that calls a third party dll function that communicates to a connect embedded device via TCP...
[4 replies] Last: Hi Helios, Am I right in saying that a deadlock condition may occur... (by visionman)
by Gorith
list<T>, does it ever reallocate?
 
Hi everyone, I am facing the following problem. I have a class with two list container and a map that somehow puts elements of the first list in relation wit...
[4 replies] Last: coder777 +1 The standard containers are free to reallocate their... (by Duthomhas)
by aj3423
why boost thread executes immediately?
 
void f() {} boost::thread thrd(&f); the f() executes immediately after thrd is defined, but what I need is something like this: Thread t(&f); // just i...
[17 replies] Last: Oh, it's my mistake, I called doIt() directly in main().... Thank y... (by aj3423)
extended euclid and modular linear equation
 
I know i posted similar code in another thread,but i have a new problem so bear with me. Im trying to get my extednded euclid code to work with my modular linea...
[1 reply] : f:\rsacrypto\rsacrypto\functions.cpp(42): error C2440: 'initializing'... (by coder777)
Error "cannot convert parameter 1 from 'char *' to 'char' "
 
Hi guys, I've got a problem with a VS2008 project. This project consists of 13 header files and of 12 cpp file. I've created a procedure in a cpp file called ...
[3 replies] Last: extern is just unnecessary for a function I didn't know that. Yes... (by graculo)
PigLatin
 
Working on this program and I am kind of stuck When I try to show the call the rule1 function to show the swap nothing changes #include <stdio.h> #inclu...
[1 reply] : First of all, stop using "void main()", main is an integer returning f... (by taylorc8)
by rwan
Memory usage of member functions
 
Hi all, I am writing a program which will have many instances of a class (in, say, an array) and am concerned about memory usage. Suppose I have this kind...
[5 replies] Last: Thank you for further explaining about virtual methods. I actually ... (by rwan)
templated functions causing linker error
 
class mergeSort.cpp #include <iostream> #include <vector> #include "mergeSortContainer.cpp" using namespace std; template void merge<vector<int>::it...
[3 replies] Last: Alright I fixed the problem. (by coder123321)
Calling function using input
 
Hello guys, I want to call a certain function based on an input of the user, for example I declare a int Num; then I have multiple versions of a function n...
[3 replies] Last: if not, a switch/case would be easier on the eyes than an if/else if/e... (by rocketboy9000)
Gauss siedel method in c
 
Hi i want to solve 6 equations with 6 unknowns using gauss siedel method in c. i wrote a code in c and solved for 3 equations and 3 unknowns: #include <stdio...
[3 replies] Last: Try one: _Before starting reorder the rows so it couldn't be any 0 in... (by ne555)
November 2010 Pages: 1... 7891011... 21
  Archived months: [oct2010] [dec2010]

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