49,761 Topics
| |
Hi all I've just downloaded the Visual C++ express 2010 from the microsoft website. but when i try to compile and run the program, it says: "Unable to start program 'C:\Documents and settings\Indrajeet Roy\My documents\Visual Studio 2010\Projects\First Prog.c\First prog.c.exe'. The system cannot find the file specified." What do I do … | |
char* ...is it similar to char var[5]; int *x; x = & var[0]; ? | |
Hi, I have a complex C++ code with gui. Each major gui division is independent class. Now these classes must 'talk' sometimes in operations like copy from division A and paste in division B. So I need to pass some pointers from one class to another. I was thinking of … | |
I am aware that this is something that has been asked repeatedly, and that conio is outdated, it is completely non-standard, but I need do use BGI graphics(in Turbo C++ 3) for my school project and for that along with BGI I need conio too.. I convinced my teacher to … | |
Hi all, I need to have a program to word count remove punctuation and sort it in alphabetical order. I had done the word count portion but i am lost in removing punctuation and sorting in alphabetical order portion. Hoping to get some help. [code] #include <fstream> #include <iterator> #include … | |
First I'd like to say how much I appreciate these forums. They have helped me before, but this is the first time I've posted a question myself. My problem is that I use a different IDE than my teacher does (probably not the best idea) so I want the program … | |
Why won't this output my string vertically? THanks in advanced, bookmark. [CODE]#include <iostream> #include <string> using namespace std; void print (const string & s); void main(){ print("blah"); system("pause"); } void print ( const string & s){ int i; int clrscr(); for(i=0;i<4;i++) { cout << "\n %c", s; } } v[/CODE] | |
I seem to be very bad with playing around with pointers. Basically the specialization template is supposed to return the address of the longest of the 5 strings provided. I keep getting an error on line 20 about char vs char *. Please some help, a good explanation on the … | |
I am having a similar issue [CODE]// Exc_3.cpp - Testing string with refernece #include <iostream> #include <cctype> #include <string> #include <cstring> using namespace std; string lowerToUpper(string & ref); int main() { string str; string constant = "q"; cout << "Enter a string (q to quit): "; //while (constant != getline(cin, … | |
This is my first group project me and one other person wrote the majority of this program. I put message on the functions and other things i need help on. It seems to work a little bit but I'm not getting the correct values when I try to run this … | |
i currently am throwing an exception in my constructor of my class and i read that when u do such a thing, the objects destructor is never called! meaning if i allocate any memory without using the heap, i have to MANUALLY deallocate the memory myself. An article i read … | |
Hi all, I have a silly question regarding how to translate this command in CMakeLists.txt g++ x04.cc -o demo -lplplotcxxd x04.cc is c++ file , information about lplplotcxxd can be found here [url]http://ubuntuforums.org/showthread.php?p=8538977[/url] since the command " g++ x04.cc -o demo -lplplotcxxd" is working on my computer so I think … | |
[CODE] #import <iostream> #import <string> #include <fstream> using namespace std; //The phonebook itself. class Book { public: int people; //The information for a person. class Person { public: string firstname, lastname, phonenumber; }; //Returns 1 if Person1 comes before Person2, 2 if Person2 comes before Person1, and -1 if they … | |
Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this … | |
I've finished a void display function for an in-game menu. I'm trying to have the menu stay at the top of the cmd for the length of the game. However, since it's a separate function, the program stays in the menu function, and never reaches the functions that follow it. … | |
| I have been tearing my hair out over this, and I have written and rewritten the code over and over again. If I can get some kind of direction or where to start, it would be awesome! I put something down there that I have tried for one of the … |
Hi all. I am having trouble with my code. I have played around with it for a while, and I just can't seem to get it. The only thing I am having trouble with is it getting to output the a.m. and the p.m. correctly. [B]it always outputs p.m. no … | |
I am working on a program that reads students name and test score from a file. The program should assign the appropriate letter grade, then output the name score, and grade. It should also determine the highest test score. I do not see where my errors are. Please help! [CODE]// … | |
Hi All, I have a program with threads and after a while i ve got std::out_of_range error. when i broke the process to debug, it pointed me to this line: > testsimulatord.exe!mainCRTStartup() Line 182 C and my stack contents are: KernelBase.dll!7604b727() [Frames below may be incorrect and/or missing, no symbols … | |
Hi. I am writing a program to read user input numbers until '0' is entered. I then figure out if each number is even or odd and find the average of all the evens and all the odds (even average is one number, odd average is another.) I have it … | |
In the name of God . Hi everyone . I am going to write a program which compiles c++ codes . I don't have any time to write my own compiler . so i want to use ms compiler -> "cl.exe" I will use code below , but not working … | |
Hello, I've got a simple program where i'm trying to a Char array with a string, but even though the program in debug mode shows that the string Phone = Phone, it is not adding a new line when the string starts with Phone. Can anyone tell me why the … | |
Hello I have a > b(for example) I need to generate random number x that belongs from a to b for example a = 9, b = 16 x has to be x > 9 and x < 16 I use cstdlib.. but can't guess how to do it (using … | |
Ok I got my program running, finally ^.^ Compiling without errors But I want the looping for the binary search to work. How do I get it to loop without sending back a return until all 5 numbers are done searching. [CODE]#include <cstdlib> #include <iostream> #include <fstream> using namespace std; … | |
Hi..I m an engginering student in 3rd yr.I want make a minor software it mns want to do smthing diffrnt.pls give me an advice what should i do for dis.pls help me | |
Hi guys, I'm makeing a Homework "tracker", which is basically a day planner. I need help making a settings file for the initial setup. I have a text box, a couple radio buttons, and one "begin" button. I need a way for the program to remember what choices were seleced. … | |
This is part of my code. I want to declare an array of List, and I want to be able to pass this array to the functions listed below, so that I can do work on the array (i.e. add/delete nodes). But I have problems getting my head around pointers … | |
I have to create the following functions with the code provided: OpenScreen(); MonthlyPayment(???); Amortize(???); AmortizeScreenHeader(???); But I'm kind of confused on whether or not the program will only have functions showing in the main body or will there be more than just the functions? Ex: [CODE]int main { OpenScreen() MonthlyPayment() … | |
I have to answer with the runtime for Big O for a few examples of C++ code. I'm generally having some trouble grasping the concept of Big O but two particular problems are stumping me: [CODE]cin >> x; double n = example(x); for ( i =0; i << n; i++) … | |
i have an assignment can somebody help me, [B] Assignment Statement:[/B] Comparing two arrays for equality or matching indexes You are required to write a program which will take input from user in two integer arrays. The program should compare both arrays for checking if both arrays are totally identical … |
The End.