General C++ Programming - July 2010 (Page 10)

Redirect cerr from a dll
 
Hi, I am writing a program which is using taglib to read audio tags. When calling the taglib dll, sometimes a std::cerr message is generated. I want to catch th...
[no replies]
by amiref
Problem In Prime number Program
 
Hi I programs a Prime number . code of my program is under : //////////////////////////////////////////////////////// int main() { long int num,temp=0...
[5 replies] Last: [quote=Seraphimsan]:/ correct me if I'm wrong but isn't the proof of p... (by m4ster r0shi)
2d Collision detection
 
in my new project i want to detect when a ball hits a rectangle. every article/tutorial i have red about this has involved sprites which gets me a little confus...
[2 replies] Last: If your rectangle's edges are aligned to the axes, there is a faster w... (by hamsterman)
GetSaveFileName and GetOpenFileName
 
I have GetOpenFileName and GetSaveFileName running without errors, but there r 2 problems/questions i have. after Get Open File Name opens a text document how c...
[no replies]
by moslem
what's the wrong with my code C++?
 
hello every one, my code is to read a file and inserting it to a list and type it to a nother file my problem is with files when opening it it already be open...
[5 replies] Last: [quote=mtweeman]your wrote C:\\infile.txt. I didn't write C:\\infil... (by chrisname)
undefined reference to winmain@16 in cygwin gcc
 
I'm trying to compile a project in cygwin and I keep getting this error. I have a main so I'm guessing this is a linker issue but I'm not sure why its not link...
[4 replies] Last: Windows GUI programs should have a winmain function and console prog... (by guestgulkan)
FIX Protocol: FIX using QuickFix
 
Hi: I am new to FIX. I am using quickfix engine in c++ to create a initiator. The host is saying that they cannot see username and password in tag 553 or 554...
[no replies]
Error during build of QuickFix in Exceptions.h
 
Hi I am in the process of learning FIX protocol using QuickFix, I am following the example which is given in the documentation,however I am getting an error d...
[2 replies] Last: Please mark this post as resolved. I set the character set of the VS p... (by arupsarkar)
Sparse Matrix
 
Hi guys, I need a library that can help me to manage Sparse Matrix. I must work with matrix 2^22 x 2^22. I have these constrains: - Windows - Visual S...
[9 replies] Last: If you know C++, you could learn basic Java in a week or less. It is m... (by xoreaxeax)
by korg
Programming questions/puzzles
 
Hi, I am trying to build up a better logical approach to solving problems in C++. Hence i am looking for some questions which would qualify for "Homework" or...
[4 replies] Last: 1. Find a number of all fours (a,b,c,d) such that (a + b + c = d), whe... (by xoreaxeax)
How to "combine" two text files
 
Dear all, My script tried to make one column of file_2 combine into file_1, but failed. Like this. File_1 1.0E-8, 1.2E-3 1.3E-8, 1.1E-3 1.5E-8, 1.5...
[7 replies] Last: 1. This is Scala. You can start here: www.scala-lang.org. At first the... (by xoreaxeax)
by vijkrr
scope of a variable
 
hi int main () { int a =10; { int a = ::a; // this is giving error how to fix this?? a =20 cout<<"a :"<<a<<endl;...
[1 reply] : You can't do that. Inner "a" declaration shadows outer "a" declaratio... (by jsmith)
Use 'scanf()' scanning in decimal problem
 
int main() { int num ; while ( num != -1 ) { scanf( "%d", & num ) ; printf( "%d\n", num ) ; } // while return 0 ; } // main() ...
[12 replies] Last: I am still not exactly sure what you want this to do, but if you need ... (by Galik)
Manipulating direct output on the Monitor
 
Does anyone know of a way to directly manipulate the monitor screen output? Maybe a hardware based solutuion, or something that can tap into whatever interface ...
[1 reply] : What also might work is a way to constantly move everything on the scr... (by RyanCaywood)
Pass data to other functions?
 
hi guys, i was wondering how i can pass data to a function parameter using cin>>
[2 replies] Last: If you mean something like this: void MyFunc(std::string Str) { ... (by elega)
Cant make Directx work
 
i recently wanted to try directx. i know opengl quite well, and want to use directx for comparison purposes. i took this code strait from a tutorial: // inc...
[5 replies] Last: nadda. i think i will just stick to opengl. (by poonninja)
SFML Scrolling Background
 
I'm making a simple game with SFML (C++) where your cursor turns into a reticule and you just shoot stuff on a scrolling background. I'm having trouble with ...
[6 replies] Last: In the console I print their positions when the transition happens and... (by bluezor)
by mgupta
Doubt about size of structure with inner structure
 
Hi I create a structure with another one nested inside it. The doubt is regarding the size of structure if I create a pointer object to the inner structure. ...
[11 replies] Last: Thanks all. (by mgupta)
Trying to get program to recognize keys pressed.
 
I'm making a automatic spell checker program but it doesn't work as planned. I got it to work once but it would change all I's and not just I's that need capita...
[3 replies] Last: But the functions being used are Windows-dependent. (by NGen)
by POUYA
Pointer to Arrays
 
I have created an Array of chars. char name ={'p','h','o','n','e'}; then I used a pointer to hold the address of Array. char name ={'p','h','o','n'...
[2 replies] Last: This happens because the << operator of the cout object is designed to... (by m4ster r0shi)
July 2010 Pages: 1... 89101112... 20
  Archived months: [jun2010] [aug2010]

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