Beginners - April 2009 (Page 2)

Why dont my exe's run on other computers?
 
I compiled a fractal program (by building a release version), and my exe will only run on my computer (of two others I've tried on). The windows error upon o...
[15 replies] Last: Well then... that's good that it's not using manifests. Mostly becaus... (by tkurowski)
Asterisk pyramid?
 
for (i = 11; i >= 1; i--) { for (j = 1; j <= i; j++) cout << "*"; cout << endl; } thats my code but i need the pyramid to go down to the righ...
[3 replies] Last: for(i=1;i<11;i++) { for(n=0;n<i;n++) c... (by mcleano)
by Bv202
Variable type for both int and char
 
Hey, I'm making a small program to practice Binary Search that let the user input a number to search for. BUT the user should also be able to enter a letter ...
[17 replies] Last: Ok, thanks again =) (by Bv202)
by Laeion
Multiple Return();
 
s0ftware: Visual C++ 2008 Express inf0: Console Project c0de: int Process(int a, int s, int m, int d) { cout << "Addition Process (" << x << ...
[6 replies] Last: For that job, the best you can do is to use void function and call... (by jasmin m)
Quick question regarding array pointers
 
Ok, I have a function in which two arrays of unsigned short ints are passed. void CheckForMatches( unsigned short* arrayB,int sizeB, unsigned short...
[1 reply] : As far as I can tell, arrayC = numB; does what you expect. The pro... (by Disch)
by Joe101
Object Scope
 
Hi I wrote a program to find the largest palindrome that is product of two three digit numbers. The program works correctly, but I'm baffled by something...the ...
[5 replies] Last: thanks kbw... i see that you are obviously correct! (by Joe101)
segmentation problem
 
Hello i wrote this program, it works perfect, however at the end i have a segmentation fault problem.. can anyone tell me how do i correct that mistake??? in...
[4 replies] Last: char* is not a string, it's a pointer. If you want to use it, you hav... (by Disch)
Fail reading a file. Maybe EOF?
 
Hi I have some kind of problem with reading from a file. The file looks like this: gas molecular viscosity [Pa.s] * 1.8e-5 gas data: 0 (mean free path),...
[no replies]
by Claymz
for loop problem with compiler
 
hi, ive written string reverse program, which looks like this - just an example for my problem: #include <iostream> using namespace std; int main()...
[3 replies] Last: well then, i guess the book was wrong xD tyvm! (by Claymz)
by sasha
hi....
 
cud sum1 pls correct da code or suggest ways such dat dis prog calculates da bill even if da items r chosen at random.....unlike now.....which calculates only w...
[10 replies] Last: oook...i'll try correcting my grammar....and i'm totally a beginner i... (by sasha)
a simple question
 
how to output a number with a format of 01, 02, 03, etc.? thanks in advance. cplusplusnew
[1 reply] : cout << setfill('0') << setw(2); cout << your_number; ... (by Disch)
Problems with event handler
 
Hello everyone, i am having problems in passing arguments to the event handler which i am trying from the past 2 days and not able to solve it. m...
[2 replies] Last: yes. it is ..have i posted at the wrong place? i dont think so (by nightscorpion)
Unrequired input? Is this possible?
 
This sounds a lot more elementary than it is, but due to the cin function requiring input before the rest of the program will continue, I can't get my program t...
[10 replies] Last: Thanks! (by chrisname)
best way to use if statement?
 
Hey, i'm pretty new to C++, i know exactly what i need to do, but i'm having trouble in figuring out how to do it =/ I making a battleship kind of game and i...
[2 replies] Last: yes, that works awesomely thank you :) (by firewolf7789)
by kingis
array problem...
 
int main () { double g = 8.3631; double h = 17.2794; double j = 52; linspace(g,h,j); } void linspace(double d1, double d2, double n) { double te...
[3 replies] Last: assuming that you assingned new double temp to type INT with a value (by anythingworks1)
Program Problem
 
I have a program that I cant figure out what is wrong with it. I get certain errors when I try to compile it. Any help would be GREATLY Appreciated. The Error ...
[13 replies] Last: Ahahah oh god - I didn't pick that up I didn't realize i actually did ... (by Mythios)
find the highest scorer and name?
 
Can somebody help me find the highest scorer and the name of the person that scored the highest? This is what I have so far... #include <iostream> using na...
[3 replies] Last: that's the problem, I changed it but I messed it up...please help t... (by lolaabbydawn128)
I have a problem whith file o/i
 
I wrote program that input string to a file and I want the user to enter the file name and I use these way cin>>filename; ifstream myfile (filenam...
[4 replies] Last: Well, that was a truly worthless post. And so is this one. (by helios)
Constructors
 
Hi, I need some help understanding the basics of constructors, however, I cannot find any material concerning them on this site. Can someone please teach me ...
[12 replies] Last: right --- don't have count and m_count in your class. Just have one... (by Disch)
xml changer
 
i was board yesterday so i wrote the following program. it finds the xml file "example.xml". it finds the "tag and information" and lets you change the info bet...
[2 replies] Last: like how? i haven't messed with using memory yet... (by kyle11778)
April 2009 Pages: 1234... 28
  Archived months: [mar2009] [may2009]

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