Beginners - May 2010 (Page 31)

function does not take 0 parameters
 
void breakdown(double change) { double q1=0,q2=0,q3=0,q4=0,q5=0,q6=0,q7=0,q8=0,q9=0,q10=0,q11=0,q12=0; double m1=0,m2=0,m3=0,m4=0,m5=0,m6=0,m7=0,m8=0,m9=0,m...
[5 replies] Last: What exactly is the use for this? (by MottMan)
by tysonc
Loop problem
 
for (loop = 0; loop < (seqread - 1); loop++) { if (name == Datalist .Name) { difsearch1 = loop; } } Out << difsearch1 << endl; How come when I try...
[4 replies] Last: You are right... as you can see I used getline() to get name. I got t... (by tysonc)
iostream and #include question
 
I'm trying to compile the following code, where I include the boost graph library #include <boost/graph/graphviz.hpp> #include <boost/graph/adjacency_l...
[4 replies] Last: It sounds like boost/graph isn't in any of the default locations your ... (by Albatross)
Cin.get() Problem
 
I made this program that tells the user if the number that was inputted is prime or composite. At the end of a program I would normally create a char and then f...
[8 replies] Last: I found a bunch of bugs and fixed them. Here is the new code: #inc... (by MottMan)
by tysonc
Diff Function
 
I'm writing yet another function that would determine how many characters in the first string must be changed to change the first string into the second. I'll ...
[5 replies] Last: Try just looping over the smaller string's # of chars, then after you ... (by firedraco)
linked lists... pointers
 
Hi! I got a question... Ive been programing on java for a while and i kind of got adapted to it... so there is something i dont understand here: for examp...
[4 replies] Last: I know... I mistyped... Sorry. Sorry for all I write wrong Im out of ... (by jorge12745)
Pointer Wont Print out to Console
 
Hi I am trying to make a program that returns a substring of a string if it is found. The cout statement works but the pointer variable inside it prints no cont...
[2 replies] Last: Thanks for the links. I am doing this exercise just to learn pointers.... (by alMarshy)
by SoloXX
Reading words from a file; display to console
 
Hey all, Need a little help for this final part of my console program. I'm in my 7th week in my C++ course, so I am a beginner. The problem is stated in my ...
[5 replies] Last: You can actually use the same kind of loop to reverse your words that ... (by Popasquat)
extern trouble
 
Hi. I'm writing a horse racing analysis program. Here is my code that is giving me trouble: note 2 functions and the header file The function void raceDista...
[1 reply] : In one of those, the functions, distance needs to have another extern... (by Albatross)
by EEVIAC
<ctime> sample program
 
Could anyone explain this sample program to me. I can't see how the while loop works, in this instance. I don't know what clock_t start = clock(); means, e...
[7 replies] Last: nevermind I get it thx everyone (by EEVIAC)
by ollie
Trying to calculate Delaunay triangles
 
I am trying to calculate delaunay triangles using the following process: • x,y data is projected onto the paraboloid z = x 2 + y 2 • The triple (i, ...
[no replies]
by Nikoru
Question as to why something works :P
 
#include<iostream> using std::cout; using std::cin; using std::endl; int main() { int choice; cout << "\t Your adventure starts in...
[13 replies] Last: Ok, here's another breakdown for you, Nikoru. First of all, putting... (by packetpirate)
starting C++ .. not a total code "noob"
 
Hi, I'm starting to learn C++, but I'm not a total newbie to programming -- I've done Python quite extensively. Anyway, I don't really want to sift through pag...
[3 replies] Last: From my experience, i've learnt that trying to port code from one to a... (by AngelHoof)
by tysonc
Looping across strings
 
I need to take a small string (for example: "FK3I) and convert it to "FKIII". As you can see, when a number is found (the number will always be greater than 3,...
[15 replies] Last: Or a completely different approach: string RLEdecode (const string& ... (by guestgulkan)
by tysonc
Missing type specifier
 
Here is my function definition: int search(const string& searchfor, const Protein Datalist , int lines); and the same thing is copied down below along with ...
[2 replies] Last: Yes it is... (by tysonc)
4-Variable Karnaugh Map simplification process (URGENT!!!)
 
This is a homework due in less than 48 hrs... please help ~~ here's the description: - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
[2 replies] Last: i tried... is there any source file missing? coz i cannot compil... (by rachel0630)
Swapping pointers
 
Could anyone teach me how to swap 2 pointers/ correct my mistakes Employee *staff for(int i = 0 ; i < count ; i++) { Employee *temp ; for(int j ...
[4 replies] Last: You could not use a pointer to a temporary Employee at all. Just decla... (by imi)
Array Ouptut Question!
 
Hi, I was actually trying the arrays lesson for tutorials here. The following is the code that I typed. #include <iostream> #include <string> #inc...
[10 replies] Last: I thought using <vectors> might be a possibility..... (or at least it... (by blackcoder41)
Program closes down too soon
 
I´m doing a small exercise from a book I have. The purpose of it is to add together two numbers that the user chooses. #include <iostream> #include <limits...
[4 replies] Last: Working fine now. Thank you. (by Shapeshifter878)
While Loop
 
Ok I got my read file to read. Now for the last problem I am haveing a problem with my while loop... int main() { ifstream filein; filein.open("Undergr...
[3 replies] Last: heres an updated version I'm having a problem when it runs to the end ... (by IsisV33)
May 2010 Pages: 1... 2930313233
  Archived months: [apr2010] [jun2010]

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