48,985 Topics
|
|
I am learning C++ and I have done Pointers..but I am not able to understand it well. I know what is it but I am not able to understand exactly why do we use rather where do we use it. :confused: .basically it's the practical implication of it which I … |
|
Is reading and writing strings inside of structures possible, or must you use character arrays? Here's what I've tried; no compiler errors, but it doesn't display the text: [CODE]struct Account{ float balance; string Owner; }; int main(int argc, char *argv[]) { fstream File; Account Acc; int row; cout<<"Open or New? … |
|
can C programs use iostream? i've done it in C++, and read that it can be done in C, but i keep getting compilation errors. [CODE]#include <iostream> using namespace std; main() { cout << "test"; } [/CODE] |
|
I need some help: how can I do this: Write a program to find out how many terms of the series: 1 + 1/2 + 1/3 + 1/4 +.... are needed before the total first exceeds 5. |
|
can anyone help me in reading the file names from a folder with a specific extention in VC++ enviroment. thanks in advance sachin |
|
I am writing a program that will build a graph and then find the lowest costs between any given vertices. I have the program building the graph just fine, but now I just started to write the part that will find lowest costs and I get a seg fault error. … |
|
How can i find out the Max and Min value from a Vector, what's the function can i use to do that? max_find() e.g. double x[]; double x_max; double x_min; x_max = max_find( x ); x_min = min_find ( x ) ; |
|
hey ya'll i've made this code (simple, bc that's what i am) and i think it would work except for the tiny problem that i always get the error that the switch statement is illegal, but i don't know what to put instead (when i do run the program, it … |
|
Hello People, I need help because i just need to figure out whats wrong with the code i wrote for my program.. i tried to figure it out but i'm stuck. So here it is and i would appreciate it if someone can set me strait. Thanx alot. Well here … |
|
I have built a SDI project in Visual C++ called HelloSDI. I used a book I bought to learn about Windows applications. The project compiles 0 errors and 0 warnings. The project has a simple dialog box added to it. When I run the program up pops a window that … |
|
hi all....I need help with a pragram which i wrote .....Itz to check if a number is palindrome or not using a function...i.e. the program will ask the user to input any number....then if u reverse the number it will give u the same old number then it is a … |
|
HI plz help me to write my program in c++ which it has the name of for example lida.COM and it just cout a text such az my name or ... u knew i could write many program in c++ but this time i waana change the format of the … |
|
I go to make my program and I get those warnings. I know that they are linked to the exceptions my program throws during execution which terminates my program another godamn debug error. The problem is that when I double click on the warning, it brings me into the complicated … |
|
I need to set a variable to infinity or the highest possible number for the computer. But I have no idea how to do this. I did this a little while dabbling in assembly but I am unsure how to do this in C++. Thanks. |
|
I am working on a time card program in Visual C++ (FYI: I am VERY new to this, so, please, be gentle with me) :) It compiles with 0 errors and 0 warnings, but when it executes I get an error message that the program needs to close. When I … |
|
[B]Intro[/B] [i]This tutorial provides a brief introduction to C++ data types.[/i] [b]What is a data type? [/b] When we wish to store data in a C++ program, such as a whole number or a character, we have to tell the compiler which type of data we want to store. The … |
|
Hello, This is my first post. Anyway.. I am having trouble with my c++ program. My assignment is to read from a file a 2-Dimensional array. However, when attempting to do so with my code, which i'm guessing is faulty, I keep getting this error while using Borland Turbo C++ … |
|
Hello, I need to create a program that will read in a weight in kilograms and grams and will output the equivalent weight in pounds and ounces. I need to use 3 functions: for input, calculation, and output. I also need to have a loop that will let the user … |
|
I'm a little lost here. I'm trying to read from a file named source.txt located in the same area as my program. If i could figure this out i could continue with the rest of the program. I'm just getting a blank screen so i know i'm way off heres … |
|
[img]http://www.computersforpennies.com/error.gif[/img] testing wether this post works, trying to host the image from my site since i dont know how to do it using his form for threads [B]If the image shows, could you tell me what that debugging error means[/B] |
|
I ran my C++ program and got these error messages. I have no idea what they mean. :?: Will somone please help. error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main fatal … |
|
This program is a word counter. But my logic is all messed up when it comes to the counting. I am not too sure on how about fixing it. The project compiles yet does not work properly. I still haven't figured yet how to count lines or characters properly. [code] … |
|
plz guide me soon so that i submit my assignment on saturday |
|
New boy -easy question - doing a tutorial and the compile and run work but the only time I see the program partially running is when I put in a cin - I have looked but I cannot find how to put in a pause and allow me to see … |
|
I am a java programmer trying to understand a c++ oddity that I ran into. My c++ program writes a few MB of data using ofstream. Just before the program ends I close the ofstream. However when the program terminates, the amount of free memory on my linux box has … |
|
[b]Round Robin Algorithm Simulation[/b] Hey there can anybody help me look for a copy or program a simulation of a Round Robin Algorithm... The program should accept the following from the user... 1) Quantum Time 2) Burst Time 3) Arrival Time 4) The number of Jobs.. If you can... please … |
|
Hey there can anybody help me look for a copy or program a simulation of a Round Robin Algorithm... The program should accept the following from the user... 1) Quantum Time 2) Burst Time 3) Arrival Time 4) The number of Jobs.. If you can... please help everyone else avail … |
|
Hi everyone, I have a project for my class. I have to write a function that accepts a c-string as an argument and returns the number of words contained in the string. For instance, if the string argument is "four score and seven years ago" the function would return the … |
|
Hi, I'm supposed to create a program that does the following: A corporation has six divisions, each responsible for sales to different geographic locations. Design a divsales class that keeps the sales data for a division, with the following members: an array with four elements holding four quarters of sales … |
|
Hello everyone! I sure wish I would have known about this place befroe now, it would have saved some long nights. I am having probems with arrays. The situation is this read all the lines from a file and store it into an array. Once you do this, you have … |
The End.