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

by barbis
How to call a function from dll?
 
Hello all, how would i use this function in visual c++ 6 from a dll: function LoadRoentecSpectrum(FileName:PChar;SpectrumBuffer:Pointer;var SpectrumBuff...
[11 replies] Last: Does anybody know how to use Delphi languages "Packed record" in c++?... (by barbis)
nested loop
 
how to show 1112131415 22232425 333435 4445 55 in c++ using nested loop (for) ....im beginer... thanks before can you help me??
[5 replies] Last: johnbob, don't post solutions. In 99,9% of the cases, you're making so... (by Gaminic)
Fibonacci #s and Prime #s Help please!
 
Hi im having problem with program it is not working correctly. Take a look im fine with choice 1 and 2 but currently stuck on choice 3 & 4. #include <iostream>...
[2 replies] Last: Hi, First I personnaly would suggest to use a function "bool isPrime... (by johnbob)
figuring out video transitions using c++
 
I have written a program in visual c++ using GUI's which makes the user import a video and then it breaks it into frames and converts into grey-scale. What need...
[no replies]
by kribel
Write output to a file using a template
 
Hello, is there a library or an implementation available to write some information into a file using a template. For example: Let's say I would like to w...
[no replies]
Adding numbers in an array
 
I am having trouble with a program I am working on that takes in 2 numbers from the user as a string, converts the number to individual integer values stored in...
[1 reply] : I'd say something like this: // Outside loop: int carry(0); // In... (by Gaminic)
Map memeory issue in c++
 
Hi, I was loading data from database and insert into map. When I tried to print map size and data. it is still showing size 1 and only last row is printitng. a...
[1 reply] : It can't work because you're using an array as a key, so you don't hav... (by DarioDigiuni)
Classes and Objects?
 
How would I create a .cpp file that calls all of the functions. Here is my header file: // This is the inventory.h file. // It contains the Inventory clas...
[10 replies] Last: Let me do your homework. int main(int argc,char* argv ) { Inventor... (by DarioDigiuni)
Need help with finding sum of an array plz.
 
I need help finding the sum of the expense in this array. Please tell me whats wrong with this and help me fix it. Will appreciate it thank you #include <io...
[1 reply] : On line 31, you're subscripting the variable "amount," but it's not an... (by mzimmers)
compiler help.
 
are there anny compilers that work for all programming languages or maybe just these programming languages? java/javascript,lua,c++ it has to work for all 3 ...
[8 replies] Last: You can call lua or javascript code from C++. You can download lua lib... (by hamsterman)
by jls36
Hash Table with chaining
 
Im creating a Hash Table with chaining with an array of STL list(s). My getNext function works but after calling the first function then getNext it gives me the...
[5 replies] Last: I know about STL Hash Tables but my teacher wants us to create our own... (by jls36)
Need help outputing months and days.
 
This program works fine but I am having trouble outputting the months and day and I can't seem to find a way to display them on output as I continually getting ...
[no replies]
by LB
Best way to scope?
 
#include <iostream> using namespace std; int main() { cout << "Hello, World!" << std::endl; ::std::cin.ignore(); } Which style of scoping do yo...
[1 reply] : According to the C++ Coding Standards by Sutter and Alexandrescu, in... (by Cubbi)
by bxdin
Bool member function won't return argument correctly
 
I've added only parts of the code giving the main problem. I've included useful comments for the segments giving me the trouble. Basically the user enters a ...
[13 replies] Last: I didn't say anything about syntax. I just pointed out what I think ca... (by Peter87)
by vivmen
checking performance of array
 
Hi all i have written a very small code to see which container is faster. here is code & result i use visual studio 2010 professional on intel p4 dual cor...
[12 replies] Last: well i tried above code but my result does not differ much 13211 4191... (by vivmen)
Amortization chart problem
 
Hi everyone. My assignment is to do an Amortization chart for an inital balance of 350K, a 5.5% interest rate and 500 dollars added additionaly to the montlypay...
[no replies]
Music in C++
 
Well I am wanting to play BAKCGROUND music in C++. The way I tried it, it opens a windows media player window and plays it from that. Is there any way to play b...
[1 reply] : You need the PlaySound function. http://www.google.com/search?btnI=1... (by Duthomhas)
by doilin
Trying to add 'backspace' Functionality to my Text Editor
 
I have a text editor that uses the 'getch' function. I did this simply because 'std::cin' would not allow me to add spaces. I do have one problem now; although ...
[2 replies] Last: OP also wants to use Alt+Key combinations. (Sorry to respond so late.... (by Duthomhas)
Urgent! Trouble with a Programming Assignment Please help
 
I am having trouble with my program. I have been working on it for the last couple of days. I am supposed to use Simpson's rule but I am having trouble implemen...
[4 replies] Last: it should be: if(i%2==0) sum+=yValue*2.0; else sum+=yValue*... (by DellaCoder)
ctime !
 
hey guys, I wrote a simple O(n) sorting program. I need to check its time elapsed using ctime but the whole library confuses me... the whole program is lo...
[2 replies] Last: thank you :) (by wtfshawn)
November 2011 Pages: 1234... 47
  Archived months: [oct2011] [dec2011]

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