Beginners - November 2011 (Page 27)

Array of structures, logic error
 
Problem with the logic in my function. All other aspects of the program are working. I think it may be the FOR loop but it is accumulating the running total jus...
[2 replies] Last: My appologies, thought about posting the rest after I was already in t... (by MattyD74)
How to count odd and even numbers in rand. array?
 
I'm trying to count up the number of odd and even numbers (separately) that were randomly generated and stored in a single line array. Here is my code for th...
[5 replies] Last: FYI: You could also write if( t % 2 == 0 ) as if( (t & 1) == 0... (by binarybob350)
Problem writing into 2 text files
 
I have the following problem when I try to run a simple writing to a text file: for the first text file : "alfa.txt" the program works fine, but for the "beta.t...
[7 replies] Last: I have another question. Now the program works fine and writes the nam... (by Tullius)
calculation program returning 0
 
Hi, I've wrote this program for my assignment and for some reason it only returns 0 as the "shipping cost" any ideas why? #include <iostream> #include <ioma...
[2 replies] Last: Thank you very much the program works fine now. Unfortunately are lect... (by james fawkes)
assign letters to random number
 
does anybody know how to assign uppercase letters to random numbers i.e 65-91? eg. 65 to A, 66 to B etc. my question paper says to "generate an element in betwe...
[2 replies] Last: I'm an extreme novice at C++. I'll tell you what I've learned in clas... (by velcro)
[help!]stacks
 
I'm working on a problem with stacks, to be honest I'm still sorta confused with the topic... so the problem is write a problem to keep track of arriving and de...
[2 replies] Last: i broke the problem down a little, it runs and outputs right but gets ... (by aquariusmirky)
urgent-large reference file
 
hi, i am working on a code it has two parts: for the first part i have 1500-4000 text files which have strings in them.some files are same and some have diffe...
[1 reply] : void comparefiles(const char *filename1,const char *filename2, int x);... (by amnakhan786)
Help with Class Inheritance(Homework)
 
Hello guys this is actually due tonight at 12. I have been working on this for 2 hours now. I am having trouble understanding Class Inheritance. My program work...
[3 replies] Last: although you seem to be calling parameterized constructor of Triangle(... (by Bibek Subedi)
Pointer and parameter problems
 
Problem defined in comments. Line 53 of main and line 165 of intstack.cpp intstack.h #pragma once #include <stdlib.h> class IntStack { int curren...
[4 replies] Last: Got it, thanks. Always the little things. (by AndroidZ)
confusion over Basic loop problem
 
I'm trying to build a 10 question quiz and I'm designing it to where if you get the write answer it will move to the next question. the problem I'm having is...
[2 replies] Last: Since you are making Answer char data type, your condition for if st... (by Bibek Subedi)
Please help me on this.
 
i supposed to output 10 students last name and first and the their 10 grades and each of their average grades. My program doesn't output anything on the screen....
[1 reply] : thats because you are outputing to the file only line 33 is the onl... (by detroit)
by hesso
hello
 
hello, EveryOne Nice to share you.
[1 reply] : Sorry man you are posting assignments and we are not here to do your a... (by Bibek Subedi)
by jlake
arrayas
 
hey i'm new to c++and am having a lot of trouble with this program my professor gave me. i really am not sure how i should start. this is the problem A p...
[12 replies] Last: Think about it... how would you store a reversed string in another str... (by ascii)
sum of square root function
 
ddddd
[1 reply] : First, plz post the code using code tag given right hand side of text ... (by Bibek Subedi)
trouble with function
 
I've gone back to do a bit of console programming while reading c++ Primer. I'm having a bit of trouble with this function. For some reason I'm not getting a va...
[1 reply] : oops, this was a waste of post. Who woulda thought 6 pounds doesn't ma... (by InterFiction)
iterators question??
 
I am trying to do an example , I am trying to swap the number but I do not think I am taking the right aproach. Here is the code, please see if something is ...
[10 replies] Last: thanks again for the fast reply firedraco I did solve like that i... (by detroit)
I need to get a website back up & running
 
Hello, a few years ago (about 7 or so) I developed a concept for a website but I had (& still do not have) little to no knowledge on web design... specifically ...
[3 replies] Last: I'm not sure I'm really the right guy for it. (My knowledge of server-... (by Duthomhas)
C++ assignment - need help
 
the spec for the project (instructions, requirements, etc.) and also my code is in a file called decrypt.txt. It compiles for me in Visual Studio however the A...
[3 replies] Last: ifstream inputfile (fileName); The ifstream constructor takes a c... (by Moschops)
pass by pointer and pass a NULL
 
Hi all, in below test code, if I pass a NULL pointer to the add(int*) function, I still couldn't get the allocated space in my main function. And it thus gave m...
[5 replies] Last: ...which is what he intended, of course. The problem is that he is con... (by Duthomhas)
by Vrakko
Excercise w/map...?
 
I just wanted to know if anyone could tell me a couple of excercises to do with the map structure.
[2 replies] Last: thanks! (by Vrakko)
November 2011 Pages: 1... 2526272829... 65
  Archived months: [oct2011] [dec2011]

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