General C++ Programming - July 2012 (Page 28)

Greedy Algorithm
Hi I was recently trying to create a greedy algorithm and found good tips and source code on this si...
[2 replies] Last: A bit useless to offer a greedy algorithm without describing the probl... (by Gaminic)
cin and cout as arguments of a function.
Is it possible to accept objects like cin,cout and the objects of ifstream fstream(file buffers) as ...
[5 replies] Last: Stream objects cannot be copied or assigned, for good reasons. Here ar... (by Moschops)
about random numbers
Hi, --- ( value % 30 + 1985 ) is in...
[3 replies] Last: ok thanks! (by newdomingo)
by cdf
Array of Pointers to Objects
Can someone explain this (and maybe show me a simple example): I am supposed to code a class (Doc...
[1 reply] : The problem you see is real. The usual method is to allocate a new arr... (by fun2code)
what(): std::bad_alloc Issue
QVector<task> repository::read() { QFile data("tasks.txt"); | ...
[2 replies] Last: std::bad_alloc simply means your program ran out of memory. Perhaps ... (by Cubbi)
How can I make Ms VS 2010 solution updates file extensions without excluding and re-including files
I was using Ms VS 2008, and I used to create a project called "new project" and include all cpp file...
[no replies]
C++ class variable access (1,2)
Hey all, I have made a class to store a tile-based map for a game. Every time i try to access a v...
[27 replies] Last: lol think you got my mind ticking the right way, i think i may of fix... (by SuperStinger)
function scope
Hi. what is the scope of a function. can you please include an example. Thanks for your help. Thanks...
[2 replies] Last: There is no exact definition of the function scope in the C++ Standard... (by vlad from moscow)
by Yung
Having a image interface
For a summer project I have been thinking of making a text based game using c++. However, with just ...
[3 replies] Last: To draw pictures on the screen, you have to ask the OS nicely to do i... (by Moschops)
by woohoo
[Sockets] WSAAsyncSelect vs Separate thread?
I heard over some other coding forums that it would be best to have a separate thread when reading c...
[4 replies] Last: I have found async sockets to be a royal pain and you're forced to de... (by bartoli)
confused about atoi getting the wrong value
so i have a char array p =[ 1,2,+] when i store those values using the atoi i get all the ri...
[5 replies] Last: In your original post did you mean so i have a char array p =[ 1,2,... (by doug4)
by qingze
My program can compile but doesn't run at all, need help
I am a green hand on C++ and I write a program for calculation. It can compile but doesn't run at al...
[4 replies] Last: If you create them using new , they are made on the heap. (by Moschops)
Why is gets() dangerous?
Can somebody show by example how gets is dangerous?
[2 replies] Last: Ok. Now I get it. (by johnwestman)
by Owain
Joing with another program? (1,2)
Hello. Is there any way that I can write a program that can join itself onto another program file, s...
[20 replies] Last: Okay, well, I have plenty of topics to research now thankyou everyone!... (by Owain)
Different files
How do you get a file (get("text.txt")), but the file isn't defined in the programme but rather by u...
[1 reply] : You can fetch input from a user to populate a string. string x; cin >... (by Moschops)
Where to get function definitions of standard libraries?
i want the definitions of functions that we just use by including their header files. Like strcmp()...
[5 replies] Last: thanks JLBorges. I did find source codes of many functions. (by johnwestman)
by qingze
about matrix
Dear all, if I define a matrix like double arrayP ; . should I access it like for ( i = 0; ...
[3 replies] Last: Thanks for your help! (by qingze)
by CMarco
Strings into vetcor
Hello, I'm trying to store strings into one vector, and I'm thinking in do in this form: std::...
[13 replies] Last: Hi again, thanks you all for the help it was really important for m... (by CMarco)
by EirikO
Link fortran, c++ and a library
I have a C++ module that I have build as a library (myLib.a) and use this module from another C++-pr...
[2 replies] Last: I'm using Debian Linux here. fwrapper.f: program wrapper_f ... (by kbw)
by cniper
quadratic equation using function
i m supposed to write a program to solve a quadratic equation. output should look like as follows: c...
[6 replies] Last: Oh, jeeze, I haven't seen a quadratic equation since high school. Just... (by newbieg)
July 2012 Pages: 1... 2627282930
  Archived months: [jun2012] [aug2012]

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