Beginners - November 2010 (Page 8)

Whats wrong with this?
 
One moment its working another I get a (LINK : error LNK2001: unresolved external symbol _mainCRTStartup) message. When it does work it executes the if statemen...
[2 replies] Last: Thank you very much I had used the AND operator where it was supposed ... (by tmassey28)
Problem with begginer program. Problem on C++ for Dummies page 64.
 
I'm a beginner, so please explain in simple terms. I've tried everything. everything. I know there might be a typo of two of this symbol: "<<" rather than "<" b...
[1 reply] : What are the errors you are getting? The only thing I can see is your... (by firedraco)
Palindrome in a function
 
I'm trying to write a program that will use functions that can tell whether or not something is a palindrome. The definition for the function is [bool palin...
[1 reply] : If it won't compile, at least tell us what errors the compiler is givi... (by Zhuge)
c++ to c#
 
I am a novice in c++ (taken c++ I & II at college (actually just finishing up II next week)) and I was wondering if anyone can't help me use the skills I have l...
[no replies]
If else statement problem
 
Hello everyone. Im new to C++ and have been learning for the past few weeks but ive been having a problem with a program I created. #include <iostream> using ...
[2 replies] Last: [co de] Code tags (your code goes here) [/co de] Everything that ... (by ne555)
repetition statemens
 
hello.. i'm working on how you can display numbers from 11 to 100 i wrote the program but i have to display the result , 10 values per line as the following ...
[4 replies] Last: try if(i%10 == 0)cout << endl; within the while loop. (by closed account D80DSL3A)
by hit45
visual C++ 2010 express? Anyone have experience with this program? (1,2)
 
Does anyone have any experience with visual C++ 2010 express? New to this all, I have been using Dev-C++ and found ( in the relatively short time using it) that...
[20 replies] Last: Nope, just joined there forums etc. and checking out their site. Thank... (by hit45)
by potpot
Average of all the elements in two dimensional array
 
Hi! I am having problems in averaging all the elements in my two dimensional array. The first array size is stated but the second is user defined. For example ...
[4 replies] Last: Thanks! so I did that then called it. let's say the name of the functi... (by potpot)
The guessing game
 
hello everyone I'm in my first year studying computer science at Southampton uni we been given this code and have to figure out why it always equals 2 uncomf...
[1 reply] : you mean 'num'? see http://www.cplusplus.com/reference/clibrary/cstdl... (by hamsterman)
fstream question
 
i'm trying to make a class to control a file stream: the fstream is one of the members and the constructor opens the stream for read/write. however, once the...
[5 replies] Last: class rafile { fstream files; public: rafile() : files("den... (by hamsterman)
Login, logout time check.
 
I am writing a program that allows a user to login and logout. What I want to do is to keep track how long they were logged in for. I have read http://www.cplus...
[2 replies] Last: From what I can tell you're doing (for future reference we prefer as m... (by Computergeek01)
by firix
"Vec4 as a vector of four floats"
 
Hello, I want to Define a type Vec4 as a vector of four floats struct floatt{ float f ; }; how should I begin Is it that correct class Vec4{ ...
[6 replies] Last: @obice typedef is a keyword in the C and C++ programming languages... (by firix)
problem with array into function
 
Hello i'm new to C++ programming,and i have an error with the follown code: void operator<<(float **p,array ar){ int i,j; p=(float **)m...
[2 replies] Last: Thank you..it seems to work now(it doesn't crash but it shows "rubish"... (by odyracer18)
Expression cannot be evaluated error....very strange!
 
I am trying to read a file, line by line and parse them to store the information in class variables. It works fine for every variable that I am trying to store ...
[2 replies] Last: Hi Shredded, Thanks! It worked :) I tried allocating memory usi... (by jaycee09)
by wasabi
Incrementing many times within a function call
 
I have a class with a constructor which takes a series of arguments: Property::Property(QString _name, QString _gamma, QString _k0, QString _cohesion, QString...
[4 replies] Last: Adding an integer is quite obvious and brilliant. Thanks. (by wasabi)
Processing Array Data
 
I need to process an array of integers such that every three consecutive integers above a certain number, say 5 a "+" is displayed. Ex: (5) 4 6 + 7 + 8...
[3 replies] Last: That algorithm is not what the OP requested. It won't work properly fo... (by filipe)
by firix
argument to the constructor Vector::Vector(int)
 
Hi Guys, I define a type Vec4 as a vector of four floats. I want to define a class Vector similar to Vec4 ,but with the size given as an argument to the con...
[6 replies] Last: struct floatt{ float f ; }; Is it that correct ? clas... (by firix)
by duff18
Graphic with Grace
 
Hi, I've defined a function f(x) that for every loop return a y value , how can I make a graphic with those data, using Grace? I have a long list of paired ...
[2 replies] Last: I would send those data in a file and then make a graphic with this fi... (by duff18)
Mysterious 0 and If/Else question
 
This is only partially completed but works thus far, my only question is what is causing the extra 0 to appear before my points when the program is ran? I can't...
[4 replies] Last: I had a feeling it was a silly little mistake, well Ive been studying ... (by tmassey28)
Recursive Functions
 
Hello, I am trying to get into programming and I asked my cousin to send me his assignments from his uni class. It has been going pretty well but I have recen...
[2 replies] Last: You could also change the data type of the function to return an integ... (by SteveO)
November 2010 Pages: 1... 678910... 42
  Archived months: [oct2010] [dec2010]

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