General C++ Programming - January 2011 (Page 21)

by owjian
Segmentation Fault in C++
 
Hi all ,, I initialize a pointer as below , v->reg .u = 0; v->reg .u = 0; v->reg .u = 0; ...
[6 replies] Last: owjian >May I know why I do need to allocate the heap storage for va... (by lionishy)
without to press enter key
 
guys i forgot how this goes.. example: Press 1 to Jumble word Press 2 to Twist The Word .....
[1 reply] : Here's an example for Windows: http://www.cplusplus.com/forum/beginner... (by Null)
Making the right predicates
 
I have recently been learning to use <functional>, and I am trying to build a predicate for the foll...
[3 replies] Last: You can also use a function or combination of function and bind and ac... (by onur)
translating the code in pure C
 
#include<iostream.h> #include<conio.h> #include<fstream.h> #include<string.h> #include<stdlib.h...
[3 replies] Last: Thanks a lot Black Coder.. :P (by joeneldeasis)
Reading bitmap header
 
I'm trying to read a bitmap header and according to the specifications I have done it correctly. The...
[7 replies] Last: Alrighty, I'll try fstream. (by privateabstract)
by dkaip
problem between XP and Ubuntu in code ...
 
Using CB,GCC,Win XP all are ok. Using CB,GCC, Ubuntu i have the problem... error: type/value mi...
[1 reply] : int link(const char *, const char *); defined in unistd.h (it is inc... (by ne555)
for loop and vectors
 
hello, i am making a simple program that you input numbers and it outputs them once you enter the nu...
[3 replies] Last: It worked fine for me. Maybe you are entering a large number that is ... (by ericeps)
Idea of mine,but whats the best method?
 
Hello all.. I was thinking of making a useful tool for the community Im from. I have studied C++ ...
[2 replies] Last: Though you should probably be using perl for text processing. It's no... (by sohguanh)
(&) question
 
My old instructor never used this symbol before, but my new one does. I have read the book on what i...
[6 replies] Last: Ah, just noticed you are actually using & in both ways. void incre... (by ericeps)
Displaying console output on button_click
 
Hi, I've been looking everywhere, and can't find the answer to this one. I'm making a program and ...
[no replies]
Const & Classes With Pointers
 
Here is some "code" to help me explain the problem: class Matrix{ double* mat; //Mem...
[5 replies] Last: You could also return a const reference (by closed account 1yR4jE8b)
declaration of ... shadows template parm ...
 
I cannot figure this one out, nor do I understand how to fix it. My biginteger class is declared ...
[5 replies] Last: Well guys, I am always happy to learn new aspects. On the other hand, ... (by simeonz)
Rotating line gets shorter
 
Hi guys, I wrote the following function to rotate a line (x1,y1)->(x2,y2) about a point anchor: ...
[9 replies] Last: The trade-off is actually easy to see. Suppose you have n x n mat... (by simeonz)
how to sum a string array? iam getting confused...
 
i have a 2d array which contains numbers and characters loaded from a txt. i declared the array lik...
[8 replies] Last: to answer your question about the -48 the character stored in each ... (by grailer)
getline() problem
 
Hi, I'm trying to get my application to read in input with spaces. I already found out that I hav...
[1 reply] : cin >> leaves a newline in the stream. getline finds it after cin >>... (by hamsterman)
arrey cons in c++ oop
 
# include <iostream> using namespace std; class a{ int b; public: a(int c){b=c;} void set() {...
[15 replies] Last: Throwing at the end of the try block allows me to execute the catch co... (by simeonz)
pleas its urgenttttt i have a final in 2 hours
 
i need to know the answer of this question cos we r getting one at least with the same idea and im t...
[3 replies] Last: @ budman85: For practical real world purposes you are correct but sinc... (by Computergeek01)
count..
 
hello! i need a formula(using for loop) to count the letter of input string... i need is to get t...
[2 replies] Last: Hint: You'll need two if statements that check for the characters in y... (by wolfgang)
question about bst
 
Hi everyone,I'm trying to do some kind of things about bst. actually,program finds occurencens of e...
[6 replies] Last: Thanks for your advice and code,I really appriciated! (by elektroc)
Why is this code not working? - file reading
 
This code normally outputs the contents of a file, while numbering the lines! This is the code #i...
[4 replies] Last: @Celtc #include <stdio.h> #include <conio.h> // so i can pause i... (by joeneldeasis)
January 2011 Pages: 1... 192021222324
  Archived months: [dec2010] [feb2011]

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