General C++ Programming - February 2013 (Page 15)

strncpy difficulties
 
Hello all, I have a problem using strncpy defined as: char * strncpy ( char * destination, const char * source, size_t num ); The cursor get's lost or in othe...
[6 replies] Last: http://beej.us/guide/bgnet/ (by sysopfb)
beginner in c + +
 
Hello all, I have a problem and do not know how to solve (I am a beginner). Here is the problem: Check items of equal value a[i,j]=b[i,j] in the manner of t...
[no replies]
by alefux
Work with fractions and irrational numbers.
 
Hello everybody, I'm new to this site and to the C++ world, and I need your help. I'm looking for a library that handles rational, irrational and trascendental ...
[4 replies] Last: You need a computer algebra system, this one is available free (should... (by mik2718)
Student array Calculator
 
Hey! im working on a program that gives the following results: Enter a number of figures: 10 12 -5 20 -2 15 0 Sum = 50 mean value = 8.3 largest number = 2...
[no replies]
Visual C++ 2010 Express - Jai Ho!
 
Finally, i came onto a IDE that i understand. And is quite easy to code in too. I agree that it does not have any code completion options like in code::blocks....
[2 replies] Last: But man code::blocks is so hard to please. I tried like 9 times to g... (by joneele)
Becoming a mad programmer
 
A programmer needs to work their skills all day long. Alot of knowledge won't be found until an actual problem accurs. But with a database of knowledge you can ...
[no replies]
by Alam
??????????????
 
I didn't remember how to input a sentence in char variable using getch() plzzzzzzzzzzzzzzzzzzzzzz help me!!!
[1 reply] : #include <iostream> #include <string> int main() { std::cout << ... (by LB)
by md9405
Kronecker (direct) vector product
 
Hi! Does anybody know how to code the Kronecker/direct product of two vectors?? The direct product of the vectors a and b is given as the matrix below (note "...
[3 replies] Last: Another option is direct calculation, which seems practical because th... (by closed account D80DSL3A)
by eapwf9
Randomly Remove Points From Array
 
Hey, So I am fairly new to programming with c++ and I was wondering if there was a way to set up a code with an array of variable dimensions that removed ran...
[2 replies] Last: Okay! That makes sense, could you explain why you used void there? I a... (by eapwf9)
starting problem
 
yesterday i installed g++ from the following page. https://github.com/kennethreitz/osx-gcc-installer i have a macbook. and i wrote a very simple skript-code:...
[3 replies] Last: Now that you have gone past the first hurdle, start using > g++ -std... (by JLBorges)
GCC lambda optimization issue?
 
The following function causes my program to stall if the program was compiled with either -O2 or -O3 . See the two std::clog statements. Using nuwen's ...
[8 replies] Last: What's wrong with this? unsigned char c = 0; do { ... (by LB)
How do I pause after outputting results?
 
I mean on the executable file. It just displays the results and quickly flashes away, cin.get() has no effect and system("PAUSE") is undeclared. I never ...
[4 replies] Last: It is very problematic to use cin.get(); and similar functions to pa... (by Peter87)
New to Windows GUI
 
Alright, I have a question... Is there any significant difference between programming the windows GUI by hand and just using a premade one and we just add to i...
[1 reply] : It's not just the difference between programming a GUI "by hand" or us... (by plexus)
by tanja
reinterpret_cast: unsigned char to unsigned int
 
hello, i have following code to print out the content of a pointer in hex and dec std::ostringstream msg; msg.str(""); unsigned char value = 'F'; ...
[4 replies] Last: thank you very much (by tanja)
Invalid read on exception
 
Hi, I catched an exception and want to log it on the console. This works as exepcted, but Valgrind shows me a set of invalid reads. Here the code of the ca...
[7 replies] Last: Solution is simple and easy: don't mix delete with free, i.e. if somet... (by closed account D4S8vCM9)
Class Constructor with string const pointer as parameter
 
I know my product.cpp constructor is wrong but how can I set my private variables. //PRODUCT.h #ifndef PROJECT1_PRODUCT_H #define PROJECT1_PRODUCT_H ...
[2 replies] Last: Or even better, use std::string and initialiser lists: #include <... (by Lodger)
Recursive function for "vowels",Recursive function for "sum of array"
 
Hello, Will you please write a c++ program which includes all functions, 1) Recursive function for "vowels", that returns number of vowels in string. 2...
[3 replies] Last: I see, here is one that works well long BackwardNum(long num) { in... (by Smac89)
Using Templates, how to?
 
This is my .h file #ifndef CONTAINER3_H #define CONTAINER3_H #include <iostream> #include <sstream> #include <string> #include <iomanip> #include "item.h" #in...
[7 replies] Last: I see now , so if I give _count a constant type of int . and change... (by eibarra)
merge two linked-list without sort
 
i write code that's merge two linked list without sort I think it's little have lot of code have any idea for smaller code sorry for my english node * merag...
[1 reply] : Post main code here and implementation of node (by Smac89)
by Phiru
What are they for??
 
I am reading a C++ book and have a question. class A { A(){} A(const A&); A& operator=(const A&); }; what are the bold lines?? And they don't h...
[4 replies] Last: The book I am reading doesn't explain what they are and how they work... (by Phiru)
February 2013 Pages: 1... 1314151617... 43
  Archived months: [jan2013] [mar2013]

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