Beginners - March 2010 (Page 24)

by nicks
stuck on assignment
 
need to randomize an array an got stuck
[2 replies] Last: Try this. I used this a while back. You randomly select two, differen... (by tummychow)
by ARWA
rteurning a value for function that i dont whant to
 
my problem is that i have declared aprototype with returning value as float then inside the function i sayed the if a condetion satisfy .read som data and the...
[4 replies] Last: Let's clear the matter up. There are three return statements in you... (by Danielsson)
by Kroms
Array unknown size (error C2133)
 
Hey all. I have to write a program that tests whether or not an array of chars is a palindrome (where a word is read the same backwards as it is forwards - R...
[3 replies] Last: Use int main() . char newArray ; newArray ; You cannot do ... (by firedraco)
Linked list problem
 
I cant figure out whats wrong here? I've got the following errors: Error 1 error C2440: '=' : cannot convert from 'p_node *' to 'int' Error 2 error C2227: ...
[1 reply] : You're declaring 'temp' as a pointer to an int, but then making it poi... (by Disch)
next step i should take
 
i been studying c++ for a minute and i purchased a couple books on making games then i Purchased OpenGl Programming guide 7 edition,the thing is after I'm full...
[3 replies] Last: I wouldn't waste your time with Blender. It is an excellent tool, but... (by Return 0)
fstream::is_open Cant open file
 
I am new to programming and trying to write a program that writes strings to a text file. I am using fstream::is_open to display the error message Can't open f...
[2 replies] Last: Thanks firedraco. I didn't realize they were not in the same director... (by RachelinMO)
by mirad
meaning of"&" (1,2)
 
float & function(parameters) what does the following syntax returns as result in other words what does the "&" stand for thanks
[20 replies] Last: It might be implemented as one, but conceptually it isn't. EDIT: ... (by Disch)
error LNK2019: unresolved external symbol
 
Hi I cant seem to find what is wrong with my programming. I keep on getting the LNK2019 error and the LNK1120 fatal error. here is my code. # include <iostrea...
[6 replies] Last: I was able to get the program coded and running without error last nig... (by Mozie)
Marco in C++
 
Anybody please can explain how the following codes work, #define ENTRY(e) {#e, drawSolid##e, drawWire##e} static const entry table = { ENTRY (Tetrahed...
[2 replies] Last: nice, thanks (by vampire)
by iAbood
What's the syntax error for this cpp.
 
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; struct StudentType { string FirstName ; string LastN...
[6 replies] Last: or you can use only myFile>> Student .ID ..for all the string paramet... (by bluecoder)
by LiLi
Urgent Question
 
Hi, I am a beginner in C++ but need to code a problem as soon as I can. At this step I want to code the objective function below with some constraints. I...
[1 reply] : can you elaborate more on : What is min, Mj , Yk , alpha, Xa ,Ca ,Za i... (by bluecoder)
seperating strings
 
Hi I am nnew to c++ and have a simple question. say i have a string of str = "hello world 23.133"; I wish to store a string values to str1 = "hello"; str2 =...
[2 replies] Last: For the second question, you can always check the stream's state to se... (by Duthomhas)
spam or legit
 
I have to do this assignment.I am newbie, and need your help.could you guys please help me in this matter. Thanx I have provided with a collection of sample ...
[2 replies] Last: Thanks for replying.i just dont know how to start it.I think that its ... (by mm2adnan)
subtree
 
does anyone have pseudocode for subtree, the question: /* Return true iff the tree whose root is identified by n1 is a "subtree" of the tree whose root is i...
[1 reply] : does anyone have pseudocode for subtree I don't think so you only ne... (by hamsterman)
How divide and conquer algorithms are implemented
 
Hi, I was studying recursion in c++ recently. Although I understood the simple single-recursion as calculating factorial, etc, easily, but was unable to unders...
[3 replies] Last: Check out: http://en.wikipedia.org/wiki/Merge_sort (by jsmith)
by orbit
Turning calculator into functions
 
This is what I have so far. #include <iostream> using namespace std; double val1; double val2; double r; char ValidOperators = "+-*/cCxX"; ...
[1 reply] : You mean you want to check if Op is in ValidOperators? Why not just l... (by hamsterman)
by cortez
Stuck on this assignment...
 
Im new to C++ and im working on a school assignment but i have no clue what to do next... The next steps in this assignment are: *If the user enters a value ...
[2 replies] Last: you can also use switch case for the grade instead of if else. (by bluecoder)
Bankapplication (I am stuck)
 
Would need help to get started on a project. The project aims to be to create a program to simulate a type of banking application. There shall be a menu (main...
[no replies]
by pupo
Need code for school assignment
 
First hello all :) My problems :( Before 2 weeks my semester started and we got the programming tasks to solve but i newer had before programming lesson i...
[1 reply] : Sorry, this isn't a homework service. Start by reading this: http:/... (by helios)
wrong c++ code !!
 
i have tried alot to solve this problem but my code is wrong so could any one help me!! this the problem: FirstName LastName Ali Abdallah Maged Sayyed Soha...
[no replies]
March 2010 Pages: 1... 2223242526... 34
  Archived months: [feb2010] [apr2010]

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