General C++ Programming - August 2018 (Page 7)

by dune
IF statements and Radio Buttons
 
I have 2 radio buttons. When I select one of them, the function is called and both execute. I select radio_button_1, it and radio_button_2 execute. I select rad...
[7 replies] Last: Yeah. I've already removed everything. I'll come back to it though, at... (by dune)
Char
 
char city = "Dallas"; How many characters are stored in city?
[3 replies] Last: @Repeater, this is true, this is true. (by tpb)
Print on new line
 
How do I get the results to print onto a new line so the average arent one after another? code */ #include<iostream> #include<fstream> #include<string>...
[1 reply] : cout << '\n'; where you want the new line. (by Repeater)
Help me find the error
 
Hello guys, please help me find the error in the following code: template<class T> int to_int(const T& t) { ostringstream os; int num = 0; os << t; stri...
[4 replies] Last: // Example program #include <iostream> #include <sstream> #include <s... (by Ganado)
Conditional Operations help
 
#include <iostream> #include <string> using namespace std; int main(){ cout << "You want me to do you a favor? "; cout <<endl; str...
[2 replies] Last: You cannot do it without assigning the magic word to a string as the f... (by fewdiefie)
by zigooo
dynamic allocation of a multidimensional matrix
 
Hi, it's my first post. Sorry if i done anything wrong. My question is really straightfoward, i need to creat a n! multidimensional matrix for exemple: if the ...
[15 replies] Last: @Ganado ops, my mistake. Its the dimension, if you have (a,b,c,d), the... (by zigooo)
undefined reference to `browse'
 
Hello, I'm having a problem linking a c library to c++ project. In the build I'm facing the following error.. Test.cpp:25: undefined reference to `browse...
[3 replies] Last: Undefined reference means the linker can't find it. Which means one of... (by Repeater)
Struggling to make this code work
 
I have these 2 classes that are supposed to work together, but it won't even compile. missive.cpp file: #include "missive.h" #include "request.h" ...
[9 replies] Last: I've added some stuff to my previous post. I see a couple of other err... (by tpb)
Storing data for Scientific Programs
 
Hi All, Most scientific programs involve solving multiple equations to evolve fields (3D xyz matrices). This requires us to maintain multiple matrices of same s...
[1 reply] : it depends on what you need to do really. I did a lot of matrix math,... (by jonnin)
by ikhram
AES encryption and decryption not going over whole array
 
Hey guys the code takes in a string,converts it into a hex decimal string and puts it into an array (52 bytes) and is then encrypted in 16 byte fragments and th...
[6 replies] Last: I do salute you for seeing that you could cut it to 2 lines. I strug... (by jonnin)
by tusin
Solve this problem
 
write a c++ program to calculate fare from aiub to uttara , mohakhali , new bazar , dhanmondi and banani by car or taxi or cycle or bus or by walk. (input is as...
[4 replies] Last: You still need more info, either made up yourself or from the assignme... (by jonnin)
Help with Programming
 
Hi, So below are 3 files I have for a multifile project and i keep getting an error of: Undefined symbols for architecture x86_64: "_main", referenced from:...
[8 replies] Last: My code for client has: #include <iostream> #include "fraction.h" ... (by Jaybob66)
Center numbers in a cell
 
I decided I wanted to write a simple spreadsheet program. Just adding, subtracting, etc., in specified cells. Each cell is 13 characters wide. I would like to b...
[4 replies] Last: 123.50, and in would be converted to something like, 123.499009. A... (by Repeater)
subtract the 1st value of coulume form next values in the coulume
 
I want to read a text file. # Before scan of next column: # X Y t I 0.01 0.00 1.92 330 0.02 0.00 2.92 335 ...
[7 replies] Last: @lastchance, thanks a lot for your time and effort. It helps me very m... (by khuramtariq)
Limited number of input.
 
Guys, I need your help. How can i make an input on a limited loop only? Like i want to ask the user to input only 6 numbers. Thnx
[1 reply] : #include <iostream> #include <vector> int main() { const std::si... (by JLBorges)
xerces and memory usage
 
i am using xerces 2.8.0 in linux platform.For each xml file(very huge file) parsing i can see huge memory increase. Below is the sample code #include <xer...
[no replies]
remove_if bugged?
 
int main() { string str = "Archer Level 1"; remove_if(str.begin(), str.end(), isspace); cout << str << endl; cin.ignore(); return 0; } ArcherL...
[4 replies] Last: Thanks guys i understood! (by beerato)
August 2018 Pages: 1... 567
  Archived months: [jul2018] [sep2018]

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