General C++ Programming - May 2013 (Page 45)

Long double not working
I'm currently working on a simulation of the motion of magnets on a rod. As part of it, there are ar...
[4 replies] Last: I had finals week. Not enough time to do much else. I'm glad you figur... (by aaronfjerstad)
runtime error
the code is for generating a finite automata #include <iostream> #include <map> #include <set> ...
[no replies]
Dynamic memory
pec_vlog_file = new char[strlen(argv[i+1])+1]; if strlen(argv[i+1])+1 = 50 This code give p...
[1 reply] : This code give pec_vlog_file a dynamic memory which is in char type w... (by MikeyBoy)
Step into function
Hello everyone I was wondering if there is a way to make Visual Studios step into a function while I...
[4 replies] Last: You're welcome! Glad it worked :) (by MikeyBoy)
Storing class in Array
How do I go about storing info to an array of class? I need to do something like this: info =...
[2 replies] Last: Either function ReadNameRating() returns a value that has your class a... (by keskiverto)
Passing an array into function as parameter
Hey everyone, I've literally spent hours working on this assignment and I just can't seem to get ...
[5 replies] Last: "to pass" might actually refer to two things: 1. How to define that... (by keskiverto)
extern "C" doubt
extern "C" { char *getwd(char *); }; May I know what does this code means? As I know...
[5 replies] Last: > Basically it tells: this function was compiled in C, not C++. It te... (by JLBorges)
I just recently installed directx june 2010 sdk and everything seems to be set up fine, my problem i...
[3 replies] Last: Shouldn't this question be in the Windows Programming forum? (by MikeyBoy)
by Aceix
About IMPLEMENT_APP() macro
Hi all, Just want to know how the IMPLEMENT_APP() macro in wxWidgets work, how it replaces explicit...
[2 replies] Last: Can't you see that for yourself by looking at the macro definition in ... (by MikeyBoy)
please help
You now have a good foundation of C++ programming skills that you can use to develop a larger pr...
[7 replies] Last: You now have a good foundation of C++ programming skills that you can... (by MikeyBoy)
Please Help In Char Pointers
Well there is this code I recently found in a book and I need help from someone to help me understan...
[7 replies] Last: You're welciome :) (by MikeyBoy)
How does a compiler work?
I'm interested in eventually building a compiler. As I understand it, these are the steps involved ...
[no replies]
by Progg3
A quick question around enumerations
Hi, Let's say I have a "Weapon" class, which stores the weapon "Type" as an enumeration. As I in...
[2 replies] Last: > As I instantiate this class I wish to specify what type of weapon th... (by JLBorges)
by crypto
Vector troubles?
So here's my code... #include <iostream> #include <vector> #include <fstream> #include <string> #i...
[2 replies] Last: ifstream f ( "text.txt",std::ifstream::binary); int length = f.tell... (by cire)
Using time?
So I'm trying to learn how to use time for time based movement and what not. I did this only knowing...
[1 reply] : a) nobody said that time_t contains seconds. b) nobody said program wi... (by MiiNiPaa)
by Phiru
How to use namespace???
I have two header files, A, B. A.h namespace test { struct info { int a; } }...
[2 replies] Last: I don't recommend asking for help with code and just saying that there... (by Austin J)
by Dozo23
Towers of Hanoi Using Iteration
I am trying to write a towers of hanoi c++ program using iteration. i have written the same program ...
[no replies]
by Jgwman
Accessing pointed-to value in a struct vector of pointers
Hello, I have a somewhat complicated question. I have a vector (structures) in a struct (instances)....
[4 replies] Last: What it is, or do you have a link to its documentation? I can't find i... (by Jgwman)
by him92
code that reads from a file and writes it, inverted into another file
the error message is this one, and this is my first c++ code so i really want to see it work. any pi...
[8 replies] Last: its okay now, i have fixed it using the resources from this page and a... (by him92)
Inserting a row into a matrix?
I'm writing a function that inserts a row into a matrix and deletes the last row. But I'm having tr...
[1 reply] : So the first column has to look like 2 3 4 5 6 7 8 The Row with the 4,... (by JazzyJeff123)
May 2013 Pages: 1... 4344454647
  Archived months: [apr2013] [jun2013]

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