General C++ Programming - May 2010 (Page 19)

by mickey
Read file and extract text
 
Hi, I am new to C++, I was wondering if someone could help me with this. I have a file and it has 20 records. The format is itemname id wt code...
[9 replies] Last: Checking the first column: std::string arg1 = "XYZ"; std::st... (by Galik)
How to get the Responce from vmware
 
Hi Experts I need The Help that how i will get the responce from the vmware That what happening in the vmware i wanted to know. Speciallly a need to know...
[1 reply] : If your code is running, the VM is on. :-) Is what you really want ... (by PanGalactic)
Getting Address of Current Instance
 
Ok so my situation is this: I have a static member of my class which happens to be an array of pointers to my class type class sprite { private: ...
[2 replies] Last: For serious! Oh my gosh, thank you for that! (by ultifinitus)
noskipws stringstream
 
Hello everybody i have the following question: "Hello world" to cin and the following code string str,msg; getline(cin,str) stringstream ss(str); ch...
[no replies]
by sidjey
class, realising binary tree
 
People, help to make please the program with binary tree...Here the task.. To create the class, realising binary tree. To realise functions of addition of ne...
[1 reply] : Look at wikipedia for Binary Search Tree: http://en.wikipedia.org/wiki... (by imi)
counting paired elements in a Vector
 
I have the following functions that pairup different elements in the container, I want to cont the pairs by using the function that sorted them in the first pla...
[4 replies] Last: Well void sort( BidList &bidlist ) { stable_sort( bidlist.be... (by gnwillix88)
by sedrel
Virtual operator== overloading in derived templat classes
 
Hi, I'm fairly new to C++ (old Ada guy), and I'm having a problem which I hope you experts can help me resolve. I am implementing a callback functionality. H...
[5 replies] Last: I prefer this solution over the one in the link: template <class... (by imi)
by bezad
Template Link Error LNK2019 Can be avoided
 
I have seen this Link Error when using templates with Microsoft Visual C++ on many occasions. This is the error: Error LNK2019: unresolved external symbol "p...
[2 replies] Last: ... or template pre-instantiation. (by kbw)
Quick sort algorithm troubles
 
void quicksort(vector<int> &data, int start, int end) { int i=start,j=end; int l; int tmp,pivot,closest; int sum=0; double finalsum,a...
[1 reply] : What do you want for someone to debug it for you? Have you tried to d... (by kempofighter)
.txt to ASCII Code Array
 
How would I go about importing a text in to an array in ASCII code. Not the actual characters, but the number representation. e.g. the .txt contains "samp...
[3 replies] Last: You've got it. The only difference between and ASCII value and what... (by Duthomhas)
counting number of words in a text file in C++
 
i am kinda of on the right path i think. the problem is i am reading the number of characters in a file but i want to count the number of words in a file and wh...
[3 replies] Last: yeah i think gcount or istream& get ( char& c ) or istream& get (char... (by timbomo)
by niti
Problem in pointing to next address in linked list
 
Hi Consider the following piece of code: - int main() { lst *start = NULL, temp1=NULL; lst *temp; for (int i=0;i<10;i++) { temp->data = i=2; ...
[1 reply] : That code is totally, completely wrong. First of all, temp is uni... (by jsmith)
C++ on Windows V.S. Unix
 
I'm a beginner in C++ Programming (not to programing in general) and I wasn't sure if this post should go in beginner's forums as people might not know as much ...
[14 replies] Last: @TheTSPSolver You might want to look at something like Cygwin: http... (by Galik)
by LuisRT
Events on C++
 
How can I do to have a routine that gets started everytime there's a rise of volume on the microphone?
[2 replies] Last: You're getting ahead of us helios. Either one requires a process to wa... (by Computergeek01)
by oha
match column value in text file
 
I've a small problem with text file in c++. I need to extract the value of one column with condition on the other one for example I have data file like below ...
[5 replies] Last: many thanks Imi :) my problem is solved, I used stri... (by oha)
by Javac
C++ - unsigned long long int comparison
 
Hey all, I have two unsigned long long int variables that i want to compare (such as >=, == etc) and occasionally want to apply arithmatic to (simple - opera...
[3 replies] Last: I think you get wrong results when var is larger than var , eg: ... (by Null)
File I/O
 
I have a file to write in binary mode. Right now I am doing this as below int main() { int num; long long time; FILE *fin = fopen("test1.tx...
[7 replies] Last: Oh ok, I got the problem. Thank you. :) (by rachitagrawal)
Bitwise Operators
 
Hello Everyone! I am currently working on a program that requires me to ask the user to input two numbers and then displays those numbers bitwise AND, OR, and E...
[3 replies] Last: Wow, I guess that is why it wasn't throwing a message, because when I ... (by ohsnap1319)
Type name Expected: Error
 
Hi, I have a class as below, when am trying to compile getting the error "Type name Expected". Could any help me to resolve this error. class _EX...
[1 reply] : You should post the full error message, and the line with the error, a... (by kbw)
by Null
int to char array conversion
 
I need to convert an integer into array of chars: unsigned int ret_num() { return 112; } int main() { unsigned char *dest=new unsigned char ; ...
[2 replies] Last: Endian-unsafe: union int_bytes { unsigned char chars[ 4 ]; ... (by Duthomhas)
May 2010 Pages: 1... 171819202122
  Archived months: [apr2010] [jun2010]

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