General C++ Programming - November 2011 (Page 17)

wether statistic
 
Can any one help me to check my code? Why it is not pulling the lowest temperature? But it can pull the highest temperature. #include <iostream> #include <...
[1 reply] : Here are my test results, the lowest temperature is wrong. I can not f... (by MINHUI HAN)
conversion
 
hi all how can we write this in c++? #include <stdio.h> #include <stdlib.h> typedef struct { int x, y; } * Point; void init (Point p) {p->x = 0; p-...
[11 replies] Last: If you're compiling as C++, then it makes no odd if you use <stdio.h>,... (by andywestken)
remove_if help!!
 
i would like to know how to remove an object from a list base on a condition? Class A { public: A(int x,int y); int x; int y...
[no replies]
sparse matrix multiplication by using Compress Sparce Column Scheme (CSC)
 
Could you help me how to multiply two non-symmetric seven banded matrix by using Commpress Sparse Column (CSC) storage scheme? Which library do I have to use...
[no replies]
difference between selection and quicksort
 
so im sorting a list of numbers contaning different numbers like 2000,4000 0r 6000 numbers and sorting them from small to large. and both are working but i know...
[1 reply] : can anybody explain why??? Poor implementation. Even at n=2000, quick... (by helios)
heaps
 
and column (x) having an intensity F(x,y). For an image of size N x N pixels, the values of x and y range between 0 and N-1. The gray-level intensity F(x,y) is ...
[3 replies] Last: I agree with webJose (post some code to prove you've at least made a... (by quirkyusername)
please help me
 
please help me to solve this question http://im11.gulfup.com/2011-11-20/1321821429641.png
[1 reply] : Sorry, no homework requests. Put some effort into it. Have specific ... (by webJose)
Using Array as function pararmeter
 
I am using this function to obtain data from either .txt or .dat and part of them are going to a string file. However, I cannot compile this function and is giv...
[no replies]
Should I be using STL containers for allocation...?
 
I'm trying to write a custom allocator. After doing some searching, I decided to try implementing something I can just throw in just by overloading new/delete. ...
[no replies]
by fluky
Copying arrays using pointers
 
The output of my code comes out with spaces (T h i s i s a t e s t) can some please help me with this. #include "stdafx.h" #include <iostream> ...
[2 replies] Last: I can't believe I didn't catch that. Thank you very much Moschops. (by fluky)
Sorting <vector> of objects
 
I am looking for a simple way to sort <vector> of custom objects by value stored in member var of those objects. Is it possible to bubble sort it with swap? Hop...
[1 reply] : See http://cplusplus.com/reference/algorithm/sort/ Note that you'll ha... (by hamsterman)
reaching EOF question
 
hi, this does not work for me: ifstream object; object.open("file.txt"); //...cheking OK object.seekg (0, ios::end); //ERROR //... char ch; object....
[13 replies] Last: so at the end of file last line in the file at the end is EOL and EO... (by codekiddy)
Compiling a DLL or lib.
 
Until now, I've only ever compiled .exe applications. I've written a set of utilities in a .cpp and .hpp file that I'd like to share with several other projects...
[2 replies] Last: This is very helpful. Thank you. (by Stewbond)
problem string
 
the error is it can't take the next name that user input. and can someone tell me how i can sort the name that user input in alphabetically order then print t...
[9 replies] Last: here its the image.. http://postimage.org/image/ns2vsd99x/ (by chocolatsprintz)
Profiler?
 
Hey, I need a profiler to find out how many times certain functions were used and which ones took the longest time. What is the best one to use? I also need to ...
[1 reply] : Any help? (by Calender Man)
isolating substrings
 
I'm trying to isolate a first name, space, middle initial, space, and last name. The full name is given by the user. The only problem I'm having is isolating th...
[no replies]
passing vectors by reference
 
What am I doing wrong here? class Demod { private: DemodNyq dnI; DemodNyq dnQ; vector<int32_t> phaseBufferI; vector<int32_t> phaseBufferQ; ... vo...
[6 replies] Last: Doesn't appear so, but...I just rebuilt my entire project, and the pro... (by mzimmers)
by bxdin
Pass data to a Dynamic String Array That uses A Structure And Function
 
Objective of the program is for the user to enter 1 of 3 options at the beginning in processing and updating information in real time that can be later displaye...
[4 replies] Last: This is what i have so far. Time's running out for me :x #include <... (by bxdin)
by Gldnbr
infix to postfix?
 
Hello cplusplus members, I have not done programming in quite awhile, so I'd like to ask a few questions on how to do things. Is there any way to read a l...
[1 reply] : You're still using infix. It seems you're concerned with converting b... (by kbw)
Frequency output of letters from input
 
Hey everyone, This is my first time posting here. Sorry if it is a repost. I just started learning C++ about 2 months ago and I need some help with an assignm...
[no replies]
November 2011 Pages: 1... 1516171819... 47
  Archived months: [oct2011] [dec2011]

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