General C++ Programming - January 2011 (Page 4)

Max size of 2D matrix ?
 
Hi guys, I have problem of initializing a 2D matrix. I want to initialize matrix but my Visual Studio doesn't allow me. There is a runtime error if I make ...
[2 replies] Last: Yeah, I did that and it solved the problem. Thank you for your quick ... (by Phalanx99)
loop assignment issues
 
I'm having trouble with my assignment to make a program with a nested loop that averages out peoples score ignoring the highest and lowest scores then prompts t...
[10 replies] Last: also another thing that confused me was the phrasing for if a variable... (by narshen)
smart calculator
 
I made a calculator that you can type in a expression and it will figure out the operator and numbers and calculates it. well I got it to work but then i wanted...
[4 replies] Last: Here is a simpler version that uses decimals: #include <iostream... (by shadowvillian)
undefined reference
 
Hi guys, I am trying to read the data from a flat file named data.txt. My flat file looks like this: USERNAME PASSWORD USERNAME PASSWORD I need hel...
[5 replies] Last: string read(ifstream&); That line declares a function... it's loo... (by cran)
Visual Studio 2010 Express Question
 
Hey, Decided to give VS2010E a try and I'm baffled by some debugging output that is sent to the auto window during debugging. I'm hoping someone here uses VS...
[5 replies] Last: Just wanted to update in case anyone else new to VS is watching this o... (by wolfcry)
by Logert
Genetic Algorithm Project
 
My project is to optimize wind turbine placement in a given area. In order to do this, I'm using both a wind simulation program (openWind: awsopenwind.org) an...
[5 replies] Last: It might be easier to replace openWind's optimizer code with the genet... (by Logert)
Makefile Error!
 
$ hoppity.cpp Makefile /usr/bin/hoppity.cpp: line 4: using: command not found /usr/bin/hoppity.cpp: line 6: syntax error near unexpected token `(' /usr/bin/h...
[9 replies] Last: Try something like this (where the indentation is a tab, not spaces): ... (by moorecm)
memory dump
 
Hi guys, I am playing around with reading memory. I have the following code, the output is a lot of numbers. I am wondering how to interpret the significanc...
[2 replies] Last: Notice: - you never allocated a dynamic array - you are reading loc... (by Bazzy)
Class object question (1,2)
 
The question is: 9.11* (Geometry: The Circle2D class) Define the Circle2D class that contains: -Two double data fields named x and y that specify the center o...
[21 replies] Last: Your formula is incorrect. And the excess of temporaries makes your co... (by ne555)
perfect number
 
i m a bigginer in c++. I need to write a complete C++ program that allows the user to enter a positive integer and then displays the proper divisors of the numb...
[7 replies] Last: You can replace the if statement above with return sum - number; ... (by rocketboy9000)
Circle2D class question (1,2)
 
Here is what I have so far...it seems like I am doing it right, but I'm not sure how to even start the last two functions. Which are below. I did part a, I t...
[28 replies] Last: Ah I see...so 'this' points to the object that is being used rather th... (by kraigballa)
I/O related
 
hi all, my question is How to read and print one character(including spaces) at a time from the keyboard? and What is an invariant? Thank You :)
[8 replies] Last: yeah! we have u :p (by busymaverick)
by mIXpRo
invalid covariant return type for ‘virtual....
 
hii , im studying polymorphism in c++ , i tried this code : #include <iostream> using namespace std; class Food { public: void print() { cout << "...
[3 replies] Last: your right it didn't cross my mind , but know i remembered , cause i... (by mIXpRo)
C++ inadvertant pointer manipulation in Interface objects
 
Hi all, I have a major problem with my code when attempting to dereference a pointer contained within a structure that is ifself an instance member within an...
[5 replies] Last: I'm away from my machine with the actual code so the above code was be... (by barryso)
by vaanie
separe coding into 3 file
 
i have done this coding and its can be run.. but if i seperated into, header,implementation and main file its have error. someone plz help how do i seperate thi...
[3 replies] Last: let us know what grade you get on that assignment! (by ceruleus)
What are the Standard C++ & C Library
 
Hello need some c++ & c libraries for all programming.. Ive wanted to know what is it and when to use it... Thanks!
[1 reply] : http://www.cplusplus.com/reference/ (by quirkyusername)
by AMSA
C++ and Console. Ok. And GUI?
 
Hello there people, I always had a crush for programming. I've wrote some programs in C, because I had a course in C language, but always in "console mode" a...
[16 replies] Last: I don't see much problem with creating the program if you know the too... (by simeonz)
Erase rows from file with condition IF
 
Hello, i have an input txt file like this: 5,210000 5,212508 5,220000 //erase cause the next row has not the same second decimal number 5,230000 5...
[7 replies] Last: Actually if I'm given such an assignment I would immediately implement... (by sohguanh)
SegFault on QuickSort Implementation
 
Hi, I implemented QuickSort to work with integers and it worked and know that I use the same implementation for Comparable objects i'm getting a Segmentation Fa...
[1 reply] : void Rotar(Comparable datos , int primero, int segundo) { Com... (by sohguanh)
how can I interface my c++ program with MySQL database?
 
As above, do I connect via some socket or what?
[5 replies] Last: It says in the link In addition, a native C library allows developer... (by unregistered)
January 2011 Pages: 123456... 24
  Archived months: [dec2010] [feb2011]

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