Beginners - April 2012 (Page 14)

by Helf
Files
 
I have this program and I am doing an IF statement to get it to save a file but i am having trouble understanding why it wont let me, I keep getting error LNX20...
[5 replies] Last: What is the exact error? Are you sure the problem is there? Or is the ... (by Vlykarye)
methods for sorting file input of a mixed type into usable data
 
Hello, I'm nearing the end of my first semester in C++ and I've pretty well covered the entire text (starting out with c++ 6th ed, by Gaddis) However, my ...
[1 reply] : ive never done this myself, and am actually working on a final project... (by zertech)
trouble with const functions inside class header
 
Main.cpp #include "stdafx.h" #include <iostream> #include "arrow.h" using namespace std; int main() { arrow arrowobj; arrowobj.printstuff(); ...
[11 replies] Last: I appreciate your feed back after he reluctantly explained what manage... (by bleachy)
best ide for windows?
 
need help on choice as i want to do C++ in windows with a ide that does gui ect and is free and just good to use
[2 replies] Last: Visual C++ 2010 Express Edition is free and includes intellisense, deb... (by LB)
Program won't run properly
 
Hey, I wrote this program with the help of a few people. I build the program and I get 3 warnings and no errors. All of the read "warning C4305: 'argument' trun...
[1 reply] : At first glance your assignment operator is incorrect and I think it i... (by clanmjc)
by mowicz
Basic template question
 
If I have some class based on templates ie template<typename T, int something> Class { }; is there a way I can get the 'something' value out of it? Fo...
[2 replies] Last: You could create a function that returns the something value or make a... (by Peter87)
Game of Life functions
 
All, The assignment is just to create a 42x42 grid (so that we have a 1 space buffer, working with spaces 1-41.) We will manually create the first grid (within...
[no replies]
General advice
 
I have been practicing programming in C++ for roughly a couple years and was wondering if I should try other language(s) at this time. I'm fairly new to compute...
[4 replies] Last: Haskell was very refreshing to me. I personally can't recommend prolo... (by hanst99)
Eratosthenes' sieve
 
How would I go about programming a sieve that: Print out the number of primes between 2 and 40,000. Print the number of primes between 10,000 and 20,000. P...
[4 replies] Last: Here's an overly complicated version I made once (I guess it's ok to p... (by hanst99)
Converting Image data to a Matrix (Help :])
 
Hi Guys, I am having some problems implementing some things in C++. I currently have a text file which has the information for a picture within it... Here is so...
[2 replies] Last: Cheers, I am hopefully going to spending a full day tomorrow trying to... (by squash30)
Program not running properly ... i think
 
Hey, I wrote this program with the help of a few people. I build the program and I get 3 warnings and no errors. All of the read "warning C4305: 'argument' tr...
[2 replies] Last: Sorry I'm quite new at this. I'll keep that in mind when I do this ag... (by squishy fish 25)
whats wrong with my linklist? Small code, hopefully easy fix :)
 
Just barely started coding up LinkedList.h from my textbook as we are supposed to add some functions. So that I dont end up with a complete mess I've been runni...
[8 replies] Last: Are you trying to instantiate the LinkedList in main now? e.g. Linke... (by clanmjc)
Having a hard time understanding the * operator
 
Hi, I'm doing a school project, and I'd been making ok progress up until today. I was working on an implementation of Dijkstra's Algorithm. It was all in a sin...
[8 replies] Last: When using pointers, there is actually memory in 2 places. First, the... (by doug4)
How to add a loop, user-defined function and an array/structure to the program
 
Hello, guys. I have to do this assignment until tomorrow. We had to write a "selling program for computers, laptops and tablets", which I did but for the ext...
[2 replies] Last: Just put ur menu in a while loop, And try not to use "do". Its a prope... (by It3rat0r)
by vujic
INPUT Protect C++
 
I need protection input for decimal number. Terms:input of decimal +/- number; at start of input mustn't be "."; after input 0(at start),write "."; after fi...
[4 replies] Last: YOu can simply check the input validation by but a if statement.. int ... (by Shahrukh)
Problem with my inheritance
 
Hey guys, I can't seem to get my inheritance to work correctly. I have multiple classes each with their own inheritance. The base class is a Plant. A plant has...
[3 replies] Last: when I dequeue the item, I cannot tell which type of plant it was. ... (by Cubbi)
FLOATING POINT ERROR: OVERFLOW
 
CAN SOMEONE BE KIND ENOUGH TO TELL ME WHY I HAVE A FLOATING POINT ERROR: OVERFLOW ABNORMAL PROGRAM TERMINATION IN MY CODE? #include<stdio.h> #include <ma...
[8 replies] Last: @Disch: When I started writing C++ programs, I didn't know anything ab... (by TheDestroyer)
Read .txt into String (1,2)
 
Im new to all of this. My problem is that I'm trying to find a specific text in a .txt file. Currently im opening the Text File as ifstream, then reading it wi...
[28 replies] Last: Thank you:) i will try that when im at home. (by Kramurx)
Pointers with linked list start with value '0'
 
I'm writing a vigesmial calculator (base 20 number system) and using liked list and pointers. I am in the early stages so when the program runs it will always ...
[3 replies] Last: I'd say that Print() should work when the next member of listnode ... (by coder777)
Need help making a table
 
I need to make a table made of 4 rows and 11 columns. The first column has the numbers 1, 2, 3, and 4, the rest of the columns contain the results of multiplyi...
[17 replies] Last: I would have loved to post up threads about my concerns for this cours... (by ProWorks250r)
April 2012 Pages: 1... 1213141516... 66
  Archived months: [mar2012] [may2012]

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