General C++ Programming - January 2010 (Page 12)

Stopping OpenDocumentFile getting called from OLE
 
Any ideas how I can stop OLE calling the OpenDocumentFile function when I paste one of my doc types into, say, Wordpad. I know what I'm doing may sound a bit...
[no replies]
how to cout colored text with cygwin
 
Hello everybody, I m working on a project and i would like some help. Here is my question, i would like to print some colored text in my console. For exa...
[3 replies] Last: Thank you very much Duoas or Michael. I think, i like Duoas, it is coo... (by tukuniata)
Custom Characters
 
I read there's a way to create custom console characters in BASIC. I was wondering if there's a way to do that in C++. Like this: http://www.cracked.com/blog/...
[1 reply] : That's an old hardware trick for EGA/VGA cards. On modern GUI syste... (by Duthomhas)
what is the difference between == and =
 
what is the difference between == and =? i tried this out with a primitive calculator that i created #include <iostream> using namespace std; int main ...
[2 replies] Last: The proper term for operators is not "returns". It's "evaluates to". ... (by helios)
Count Function (using vectors)
 
Here is an example I took from the docs here:- // counting elements in array: int myints = {10,20,30,30,20,10,10,20}; // 8 elements mycount = (int) c...
[13 replies] Last: I wouldn't say more accurate; I would say more generic. (by jsmith)
by ckdur
LIBUSB, How to enumerate USB Flash Drives
 
Hello All! Anybody knows an example that explains how to enumerate USB Flash Drives connected in a PC using LIBUSB? I need to enumerate the mountage point...
[8 replies] Last: OK.... thaks you very much! I'll try to post this in UNIX/Linux progr... (by ckdur)
find doesn't find a string in a range?
 
string::find isn't working as I thought it should... here is the example, I'm looking for the word "class" on the same line as a key sequence buy using the stri...
[1 reply] : From the reference: n Length of sequence of characters to search fo... (by hamsterman)
sorry
 
im really but i changed my program and i got closer to finishing my goal (printing out the numbers larger then their neighbors and their location) However, is p...
[4 replies] Last: sorry about that. and i fixed the program. but thanks anyways. :D (by coolProgramer5)
isn't printing out
 
My program isn't printing anything. Please help. #include <stdio.h> #include "genlib.h" #define size 5 void displaymatrix(int ne [size); int main() ...
[13 replies] Last: thank you guys soooooooooooooooooooooo much i it works. you guys ROCK!... (by coolProgramer5)
c++ code crashing dont know why
 
hi guys.. i've got the c++ code only problem is the .exe thing keeps crashing any one with any idea what i could do? thats the code.. #include <iostream> ...
[6 replies] Last: Whoops. Sorry. (by tummychow)
by snkngl
standard normal distribution table
 
i need to write this programme:"normal level of standard deviation significance using algorithms to create a standard normal distribution table". normal standa...
[5 replies] Last: Sorry!My main language is not English.I didn't want to upset you. I'm ... (by snkngl)
c++ need some insight
 
i have this much done,i need to program it so if a score under 1 0r over 6 is inputted than i will get an error message due to invalid number!also need to avera...
[9 replies] Last: I wrote the full code under your other post "diving competition". I... (by Sputnik)
Segmentation fault :S
 
Hey guys, I've been trying to nut this one out for the last few weeks but I'll finally admit I have nfi... If you can help me/tell me why my program gives me s...
[2 replies] Last: yeah. for( int a= 0 ; just declare int a; for(a=0;... (by olredixsis)
seperation of query using c++
 
hi frns i m new to this forum. i have a problem to seprate the subquery . for example :- query file contains:- ((paltform==0)&&(Application==NO))||(Anatomy=...
[2 replies] Last: are you using dev-C++ or visual C++????? and please clarify on what y... (by coolProgramer5)
not printing
 
sorry guys but i have a new problem...my program isn't printing out anything i dont know what to do. Please help. /* This program uses multidimensional arra...
[19 replies] Last: I see why... (by tummychow)
matrix class
 
hello i really need help, my code is a class matrix that should a matrix multiplication .i am not familiar with classes .When ever i run the code an error with ...
[4 replies] Last: the top of your program should be #include <iostream> #include <f... (by coolProgramer5)
check the largest number
 
i am trying to make a program that finds the largest number compared to its neighbors and its almost done. However, its not printing out correct numbers. please...
[13 replies] Last: Thanks soooooooo much you guys rock!!!! (by coolProgramer5)
by vitor
problem when compiling multiple source files
 
When I compile (that is to say, try to compile) two .h and two .cpp files into a same program, in Borland C++ 5.5, I get an "unresolved external" error. Let me ...
[6 replies] Last: I'm kind of amazed that people still actually use the commandline dire... (by Disch)
stick integer to string and char*
 
Dear all, How can add an integer variable to a string and char* variable? for example: int a = 5; string St1 = "Book", St2; char *Ch1 = "Note", Ch2; St2...
[2 replies] Last: I would recommend using stringstreams. http://cplusplus.com/reference... (by iharrold)
IF CONDITION PROBLEM
 
Hi! My problem is that I've to compare to string carecters and I've checked with Debugger that the condition is ok and the strings are the same, but the prob...
[6 replies] Last: Thank you Bazzy! ;) (by TroyMcFont)
January 2010 Pages: 1... 1011121314... 17
  Archived months: [dec2009] [feb2010]

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