General C++ Programming (Page 2)

Fast Graph
 
Iam trying to load a very large text file into a graph, where all words with the same lenght and tha...
[5 replies] Last: Start with all words of a given length. Sort them, starting with the s... (by dhayden)
by yj1214
Why would you use const?
 
void foo(const char *) This 'foo' function requires constant char address, right? so what do I ...
[8 replies] Last: Well, there are many reasons you might use const... Imagine you have ... (by Gamer2015)
loops
 
Write a complete C++ program that produces a table showing the temperature equivalents in degrees F...
[6 replies] Last: You tell us. Use @Disch's Post and get started on something. Come back... (by TarikNeaj)
How to start console app in current console app
 
I have a Console Application and I was wondering if there is a way to start a different Console App,...
[1 reply] : Maybe this> http://stackoverflow.com/questions/14327981/run-c-sharp-co... (by iQChange)
by yj1214
const object or object const?
 
Foo const *foo1; The object that is pointing to is going to be constant, right? Foo *co...
[3 replies] Last: The "read backwards rule" is a useful way to remember this. Read the ... (by Disch)
Array of Class Objects Errors.
 
I'm getting some errors in my code for an array of class object, but I'm not sure why. Everything wo...
[5 replies] Last: I use Microsoft Visual C++ 2010. At least that's what we use for my co... (by RelentlessChaos)
by Addsy
Snake game
 
Hey guys I'm building a snake game for a project using shapes as food. I've created cpp and hpp f...
[2 replies] Last: you could create (or use if you are using some other compiler) a goto... (by programmer007)
[SOLVED] LNK2019 unresolved external symbol
 
I've searched the forms for common causes of this problem, but have not been able to find any misspe...
[2 replies] Last: Issue seems to be having public: Animals(); in Animals.h After ... (by gunman353)
Bool function??
 
Here is my homework.. I'm little bit confused about the range Write a function bool isprime (in...
[2 replies] Last: In your isprime function, you never return false. If it iterates past ... (by Ganado)
by yj1214
A question about g++ -l
 
g++ -l I heard that this tells compiler the library name. What is it mean by library name? is it t...
[5 replies] Last: > What is it mean by library name? is it the file name? not quite if ... (by ne555)
Fill array using function. Error: assignment of read only location
 
i am trying to populate a presorted array (sorted while as it is being populated). I get the error b...
[1 reply] : arr is const, this makes it non-modifiable. change int makeSortArray... (by MrProGamer121)
Learning C++ and constructing a GUI.
 
Hey guys, I'm a CS student at a community college and I was wondering, when do schools (if they do, ...
[1 reply] : Unless you use a library, for the most part programming a UI would be ... (by MrProGamer121)
question about the CRITICAL_SECTION
 
...
[no replies]
Help Me , I need to learn this and I have to pass PLEASE :'(
 
#include<iostream> using namespace std; int main() { int SIZE = 5; float COFFEEPRICE = ...
[10 replies] Last: Ok, I will :) Ps. I know that Im wrong what I did there, im too lazy t... (by vokzkriyel)
multiple definitions error.
 
I'm trying to compile a project in Unix but keep getting the following errors. I have tried compilin...
[4 replies] Last: > Make sure any functions in xran.h have the whole function. ¿ah? ¿w... (by ne555)
need help with C++
 
need coding for a program that allows user to enter numbers and then display greatest and lowest val...
[6 replies] Last: No, it's not. The >> function reads ints from the stream cin until the... (by Faison)
by anup30
Challenge: faster 3n+1 solution
 
Make your code as fast as possible: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Ite...
[15 replies] Last: 36 millisecond // UVa online judge, problem 100, The 3n + 1 problem ... (by anup30)
Problems with Connect Four.
 
Hi to everyone. I'm writing a connect four game by alpha-beta pruning (modified minimax) algorithm. ...
[1 reply] : Please edit your code to be in code tags (by Mats)
Theoretical Question
 
Could you, theoretically, create a program that writes another program and compiles and executes tha...
[4 replies] Last: METAPROGRAMMING! Thank you. (by Aaron Vienneau)
Dynamically allocating a struct that's inside of another struct??
 
This is what I'm trying to do: there are many grades in a school, and each one has many students. I ...
[5 replies] Last: Thanks! understood now. (by alexei123)
Pages: 1234... 52
  Archived months: [jan2015]

Cannot post in this page. To post a new message, go to the first page.