General C++ Programming - March 2012 (Page 3)

Search strings with regex
 
I have a txt file called test.txt I want to take user input from cmd line and search this text file with regex - or anything for that matter...ive never used...
[no replies]
Taking a .txt file and editing another .txt file
 
I have to use structs and arrays for this to work. I have made a function to get data, another function to print the data into a struct and then another functio...
[1 reply] : It would be better if you posted the code here. There's not much valu... (by kbw)
Quadruple precision float
 
Greetings, my current projects requires high-precision numbers. My calculations indicate that double is insufficient, but quadruple, with its 112+1 bit manti...
[1 reply] : I can't see any reason why MPFR would not be portable. This list of c... (by kbw)
Errors overloading "<<" and ">>" functions...
 
Doing a program for adding, subtracting, multiplying, and comparing two complex numbers and printing the results. I'm pretty sure my syntax is correct, but the ...
[2 replies] Last: class ComplexNumber { public: ComplexNumber(); //Default construct... (by ayanda83)
HELP!!!! Error c. 2062
 
Hey! I have a program due tomorrow and I have been searching everywhere to find out how to fix this error. The program is to take sentence and translate them in...
[11 replies] Last: Thank you for you help. I was actually able to find all of those befor... (by Spikes6669)
Trouble with binary files
 
HI, I'm using AES encryption. The encrypted text is then saved into a binary file. And elsewhere, that file is opened and the text decrypted. Pretty standard...
[9 replies] Last: That worked out. Thanks! (by JulianRoss)
by abhi89
NO ERROR but still doesnt works !! file mode open issue !!
 
ON compilation it shows no error but it doesnt runs !! #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> #include <sstream> usin...
[1 reply] : ON compilation it shows no error but it doesnt runs !! Perhaps you ... (by cire)
Deleting item from array
 
Hi everyone, im programing an agenda in c++ but im having a little trouble erasing an entry. Sorry the code is long, i was too lazy to use call functions... any...
[3 replies] Last: There's no new or delete statement in that code. Without knowing how ... (by cire)
by Mannah
String Tokenization!!!!!! URGENT!!!
 
Hii this is my String tokenization code......when i debug..it shows badptr ...PLZZ i need help as this is DUE tomorrow!!!! Book *Getinfo(char *b)//Tokenizati...
[11 replies] Last: You didn't do anything on that atoi() problem. Or is your problem solv... (by coder777)
by Bhmu
After Deleting the Object I dont see memory freeing
 
Hello All, I am using VC++, I have created objects of a class and i am taking care to delete after i am done with using that object. Since I have limited Mem...
[7 replies] Last: GFreak, what you say there is correct, but if you're using it to justi... (by cire)
find a number from a given .txt
 
hello everyone i have been having problems with this. i need to develop a program to check if the entered Number is in the prerecorded data file. the Data fi...
[3 replies] Last: some one please reply to this thread .. m sure its easy ..hhttp://www... (by abhi89)
by jae
C++ Textwist Project brainfreeze
 
hello everyone Heres the summary of my project. I am given 2 .txt lists. The first is a list of 6 letter words. The second is a list of words that can be mad...
[no replies]
Is traversing through an unordered_map O(n)?
 
Is traversing through an unordered_map with an iterator O(n)? I am not sure that this operation is O(n) because a hash function might complicate iterating th...
[no replies]
array given numbers
 
i need to develop a program to check if the entered Number is in the prerecorded data file. the Data file with 300 Numbers is already provided in a file .txt ...
[5 replies] Last: thank you so much for all you help Stewbond (948) .. i really really a... (by j0semigue1)
Trouble with Functions
 
Ok so im sure im doing something stupid :D i have a function: int wordFunc(string a){ std::ifstream inp; inp.open(a, std::ios::in); if (inp.is_op...
[2 replies] Last: Yea i was just coming back to post about the infinate loop - knew it w... (by hazyumps)
Help!!!
 
Write a function named allMutipleFive which has two input parameters: number(represents an integer array) and size (the actual size of the array). The function ...
[2 replies] Last: This question is very easy. int allMutipleFive (int number , int size)... (by w397090770)
A fix for wxWidget
 
If you are using wxWidget for CodeBlocks and you keep on getting errors like strdup not defined and etc and if you have enabled the -std=c++0x flag, then try d...
[no replies]
DarkGDK for MS Express
 
I want to use the DarkGDK library to write a game, as it is easy to use (compared to GLUT) and effective. I am using MS Visual Studio 2010 Express. MS Express d...
[no replies]
Taking the following formula, is my code consistant?
 
sin(x) = x - (x^3)/3! + (x^5)/5! + ... + (-1)^i*(x^(2*i+1))/(2*i+1)! for(;prec<10;++prec) { work=heapvar_pow(deg,(prec*2)+1); work/=hea...
[1 reply] : http://cplusplus.com/forum/general/65838/ Gotta learn to debug your o... (by closed account o1vk4iN6)
by htown
Rotate Right
 
How would you create a rotate right function with >> or << ? Ex: 0111 = 7 1011 = 11 1101 = 13 1110 = 14
[3 replies] Last: Consider rotate right by one: given: 1010 LSB is 0: 101 0 shift righ... (by Duthomhas)
March 2012 Pages: 12345... 49
  Archived months: [feb2012] [apr2012]

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