Beginners - April 2012 (Page 31)

Quadratic factoriser
 
Does anyone think it's possible to create a program to factorise a quadratic equation? How difficult 1-10?
[7 replies] Last: you forgot the chance there is an equation like 14x^2+12x+213 it... (by ui uiho)
Classes help
 
Hi All I need some help. I am trying to learn C++ and I'm not grasping classes can some one help me with this code: //Coordinate.h #ifndef COORDINATE_H ...
[14 replies] Last: add and subtract don't need to return anything, void is sufficient. I... (by kbw)
by hvigil
Help with errors on arrays?
 
Newbie here, right so I'm trying to get some integers from a text file and store them in a array. I have not been very successful as I keep on getting errors. ...
[3 replies] Last: Errors i spot: Might be a copy and paste error but line 1 you forgot ... (by Need4Sleep)
Exception throw will not execute?
 
Ok, I am trying to throw an exception if the user enters in 0 for their major, for some reason my exception will not execute if 0 is entered in for the major th...
[2 replies] Last: Geez, im getting tired lol, Thanks for pointing that out @cire! (by gmenfan83)
Trying to understand structures.
 
whats the difference between this two codes (i am asking about structures). #include<stdio.h> struct xfile{ int offset; }; int main() { st...
[3 replies] Last: Thank you guys that was really useful information. (by time to c)
Can't find error - Google Code Jam problem
 
In the recent Code Jam qualification round on problem B: http://code.google.com/codejam/contest/1460488/dashboard , I got the small test case correct but the la...
[8 replies] Last: If you consider a triplet that contains the 'best' value 8. The non-s... (by cire)
multi dimension array
 
/* 7-20 Multi-Dimensional Array Do an advanced, multi-dimensional-array Array. */ #include <iostream> #include <string> using namespace std; void mai...
[4 replies] Last: @magadavixt Yes. One goes right after the other. for (int n=0; n < 3... (by whitenite1)
by TribaL
Need some quick help
 
So I am just starting to learn C++ and I am using the book C++ Without Fear A Beginner's Guide That Makes You Feel Smart. I am trying to do exercise 2.4.1 but I...
[no replies]
Static Cast (from Array) trouble
 
Hello, I have a program in progress to dump the contents of my array (by subscript) into individual int's that I will use to create a Check. However, my sta...
[2 replies] Last: Thank you Albatross. I didn't even really think about that I was casti... (by TNavy99)
Array sorting help
 
Write a program that asks the user the daily temperature at noon over the course of one month. Store the values in an array. At the end of the program, display...
[1 reply] : look up bubble sorting c++. that is a simple sorting method. (by ui uiho)
Crazy error about architecture
 
I'm working on a program for class, and I'm getting an error message that I don't understand at all. My TA doesn't understand it either. Here's the message: ...
[3 replies] Last: You're very welcome. (by Disch)
Whats wrong with this code
 
Writing code to read a .txt data file into a 2d array, and when it displays the array for some reason it does not include the first 2 elements of the data. I h...
[2 replies] Last: Ok, I see what you mean, but how can I fix it? I have to use the give... (by youngblood1)
24: error: invalid conversion from ‘char’ to ‘const char*’
 
I keep getting the above error message, and I can't seem to figure out what's wrong. I also get this error: 24: error: initializing argument 1 of ‘void std...
[3 replies] Last: That fixed it. Thank you! (by EricaFH)
Linked List
 
Hello, I am playing with a test program to explore the functionality of the common linkedList.h algorithm. This algorithm has been written and is well known, t...
[1 reply] : linkedList.h is a header file, not an algorithm. A linked list is a c... (by LB)
Background Game Timer?
 
What method would I have to implement into my program if I want to make it so if my character casted a spell (this is a console text based RPG) and I wanted it ...
[2 replies] Last: Unless the game is moving in realtime (which I doubt), there isn't muc... (by Disch)
Why Use Empty Structures?
 
template <typename T> struct Ref { }; Every so often, I come across code that uses empty structures, like the one above, for all sorts of stuff. In one scen...
[9 replies] Last: Thanks for the additional information, guestgulkan :) I'll look into... (by closed account zb0S216C)
"EXC_BAD_ACCESS" error while trying to use pointer classes :s
 
SO for my assignment, I had to make a matrix class, and using pointers, make the user enter a matrix, and then run the program to copy that matrix into another ...
[2 replies] Last: Eh thanks man, But I guess that's not the only problem... My program i... (by emperorvinayak)
by smk702
Simple Program just stops
 
Hi, I wrote a simple program for class and its made to run with input using linux redirection, the problem is that it just stops about after about the 20th line...
[3 replies] Last: The goal of the assignment was to take words from a file, count conson... (by smk702)
by Fliize
C++ random number trail
 
Hi! I have to make a very simple game. There are 4 players in a 10x10 array, they get there random starting position and then go collecting other positions in ...
[10 replies] Last: Yeah, that's OK. I have only some stylistic observations: - You can r... (by bbgst)
word Separator
 
I had to create a program which seprates a word if there is an upper key ex kyaBeChutiye should become kya be chutiye or FuckYouDickhead should become Fuc...
[1 reply] : tried it and it doesnt work.. (by chaossettler)
April 2012 Pages: 1... 2930313233... 66
  Archived months: [mar2012] [may2012]

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