Beginners - May 2010 (Page 5)

Weird error
 
Hi! As you will soon note, I am such a noob to this C++ thing... I am creating (or at least trying) a calculator that allows you to make operation with mathe...
[5 replies] Last: Well... It worked!! Thank you! I inserted that line between line... (by BenjaminB)
Confusion over code that won't break right
 
I have a program I've been writing to test myself over a few things I've learnt in the past few days but it won't work right. I want it to stop when the user ha...
[8 replies] Last: I appreciate the formatting concerns and help but were I to do this su... (by jaeger138)
Put int in int array
 
Hello, I have a problem putting an integer number in an integer array. For example, if the user enter 5454 and we have int b How can we put 5 in b ...
[7 replies] Last: Hopefully you are able to use std::deque so that you can grow the arra... (by kempofighter)
Let User Make New Object of a Structure
 
I am trying to let the user declare new objects of a structure. The issue is that I don't know how to declare an object of a struct based off of their input. ...
[2 replies] Last: I don't know anything about map, but based off of what I have read jus... (by SnakeJam)
Non-aligned pointer being freed
 
Nevermind, I figured out why I was getting the error and how to fix it. Its' because I was trying to delete things that aren't at the beginning of contiguous ...
[1 reply] : I found one issue, which is that I wasn't actually filling my vector o... (by Schraiber)
linked lists problem...
 
Hi. I am trying to create an alphabetical list from given book titles using strcmp and I can't figure out how to call the compareTo function I've created, or...
[2 replies] Last: omg, thankyou! I can now rejoin the living. I compile. Logic is... (by boiwonder)
by CodyS
Arrays
 
I am very new to C++, I am in highschool and am taking an intro to C++ class, except it's an independent study so I don't get any help. Anyways, I'm having trou...
[11 replies] Last: That little snippet I gave should be used in a loop, and the final res... (by Albatross)
why processing time is so slow
 
Hi folks, I'm trying to import a large numeric file into C++, but the processing time is slower than I expected, so I'm wondering if there is any way that I cou...
[15 replies] Last: Thanks, everyone, it works now. (by gter2010)
by Macz1
Making graphic API's (1,2)
 
Hi all I was just wondering how people like Microsoft create APIs like win32 isit OpenGL?
[24 replies] Last: Id have to see the code but cheers (by Macz1)
by brgms
Constructors / Destructors
 
Hello, I'm having some problems creating proper constructors/destructors for the following classes: class Nhood; class Tuple { public: long m_nValues...
[4 replies] Last: Thank you (by brgms)
double mess
 
hello I'm new to c++, but I need it to make a dll for game-maker. now i have this: #include "dll.h" //Include de head...
[5 replies] Last: I've solved it. int (doublename) (by dvdbrander)
Need assistance with a Banking code
 
I need help with some homework I have for a programming class. I am supposed to make a bank account program that's able to have the default value of money se...
[2 replies] Last: My try I used switch statement #include <iostream> using namespac... (by thapchi)
by Deluge
Accessing Member Values from Static Member Function
 
Is there a way to access the value of a member variable from within a static member function? class MyClass public: MyClass(); ~MyClass(); s...
[4 replies] Last: http://ubuntuforums.org/showthread.php?p=9362621 Got figured out wh... (by Deluge)
String array declaration error
 
Hello, have tried searching for a answer, but am most likely too dense to understand answers so far ;) I am trying to create a bidimensional array of strings...
[2 replies] Last: doh! thank, feel a bit slly now. this would also hold true for any... (by Blooded)
by NickL
getline returns whole file contents
 
Hi in the code below the value of int x is always 1. This leads me to believe that getline(openfile, string) reads in the whole file instead of a line at a ...
[8 replies] Last: Denis I didn't notice those changes in your code, you were indeed c... (by NickL)
by Deluge
Trying to Debug
 
I am running Ubuntu Linux and cross-compiling to Win32 with MinGW/g++. Compiling the program for Linux seems to work fine, but when I try to run the Win32 exec...
[2 replies] Last: http://ubuntuforums.org/showthread.php?t=1490068 Appears to have be... (by Deluge)
by terier
Finding isolated nodes in graph :(
 
#include<iostream.h> const n=10; struct link { char key; link*next;}*g ; void init(link*g ) { for(int i=0; i<n; i++) g =NULL; } int search_node(li...
[6 replies] Last: Yeah. It works only for the first node in the graph. There is a proble... (by terier)
int * numchar() can not return an int
 
write the function numchr(). the function has two parameters: a const char * s pointing to the first character in a C-style string, and a char c. return the nu...
[3 replies] Last: As I think you don't understand difference between pointers and variab... (by Denis)
by making
error c2447
 
I run this program and get several errors, could someone tell me what the problem is. Error line 21 error C2143: syntax error : missing ';' before 'switch; E...
[6 replies] Last: making , As I said I do not want to be harsh. It is not my intensi... (by closed account z05DSL3A)
Unresolved Externals Error
 
I have been learning for a few days now and today tried to combine a few things I have been learning to create a program. I have come across an issue that is wa...
[4 replies] Last: Yeah no worries, to be honest the only issue I didn't notice was the '... (by jaeger138)
May 2010 Pages: 1... 34567... 33
  Archived months: [apr2010] [jun2010]

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