49,761 Topics
| |
When I click on any of my menu bar, the menu wont expand or sometimes it does but missing some. I tried reinstalling and resetting it but it still doesn't work. Please help. Thanks. I attached a print screen of the problem. | |
help i am a beginner and i need help with my final program. i beleive i have everything set but i am not sure how to write the function. i want the function to add up all of the rides and give a grand total but i can not get … | |
I have said program: [code] #include <iostream> #include <fstream.h> #include <conio.h> using std::cout; using std::cin; using std::ios; using std::endl; int main() { char first[6]; char middle[16]; char last[16]; int counter = 0; char temp; cout << "Please enter your first, middle, and last name:\n>"; cin.get(first, 6); cin.ignore(80,'\n'); cin.ignore(80, ' '); … | |
I'm not sure if this is possible. Basically, I have a function that will detect the current active user. [CODE]string currentUser() { string user; ofstream outf("CurrentUser.dat", ios::trunc); system("whoami >> CurrentUser.dat"); outf.close(); ifstream inf("CurrentUser.dat"); inf >> user; return user; }[/CODE] I have another function which will create a directory in the … | |
First let me thank you for taking the time to read this. I've been working on this code for a while and I can't seem to get it to run. Basically what I have to do is take in data from a file then output the data in a report … | |
Hello to everybody, I am a c++ beginner, and I want to do a program that reads a file with a column with numbers, "finds" the repeated numbers and write the repetitions on other file. For example, I have a file like this: Input file: 6 5 4 4 7 … | |
I'm not really sure what the proper forum for this is. Basically, I have compiled a small program (written in C++) that I want to execute. It first creates an AppleScript, then runs it. But, when the program is run (it is a 'Unix executable file'), I want to to … | |
compiles there are no errors but it only outputs part of the desired output and then exits in a segmentation fault This is the output its printing out [code] Input is: 25 10 - 100 115 - - 300 2 5 * / / Contents of input queue: 25 10 … | |
Don't know how to approach this problem, here's what I have so far, any help would be greatly appreciated. PROBLEM : Modify the function days() written for exercise 1 to account for the actual number of days in each month. Assume each year contains 365 days( that is do not … | |
[CODE]double speedTest() { double dInitialTime = clock(), dFinalTime = 0; double dRepititions = 99999999; double dResult; cout << "\nCalculating...\n\n"; for(int nCounter = 0; nCounter <= dRepititions; nCounter++) { pow(dRepititions, pow(dRepititions, dRepititions)); } dFinalTime = clock(); dResult = dFinalTime - dInitialTime; ofstream outf("Results.dat", ios::app); outf << dResult << endl; return dResult; … | |
hi i know there is a lib for mysql in c++, but i can't seem to install it properly! someone has a place i can find a tutorial for mysql for: Windows XP, Codeblocks. thx for helping. Checklist for Fast Responses: 1: Search before you post. Does what you're looking … | |
OK, I have been out of the loop with C++ for a year now. I am finished with school, so this is NOT homework. Just trying to clean up some old assignments for future references. (the code is in "messy" shape til I can get it working properly and clean … | |
Hi I'm looking for an efficient way of converting an array of integers to an array of doubles. Currently I'm doing this: [CODE]int *a = new int[1000]; //And then assign values to the indexes double *b = new double[1000]; for(int i = 0; i < 1000; i++) { b[i] = … | |
[CODE]// Listing 14.4 // Add Function #include <iostream> class Counter { public: Counter(); Counter(int initialvalue); ~Counter() {} int GetItsVal()const {return itsVal; } void SetItsVal(int x) {itsVal = x; } Counter Add(const Counter &); private: int itsVal; }; Counter::Counter(int initialValue): itsVal(initialValue) {} Counter::Counter(): itsVal (0) {} Counter Counter::Add(const Counter & rhs) … | |
Well i'm beginer in c++ programing languages, what I need to know is, What is the partations of c++? What kind of programmes I can built with? And why it's the best programming languages? | |
Hi, I have a C++ program (built in Visual Studio 2010) and want to add a user interface to package it up. I've been reading around about windows forms and the win32 API, and found loads of tutorials showing how to create interfaces but I can't find any advice on … | |
Hey all, I just wanted to know if I should use a different process to run my loop. I use a while loop until the AI figures out the number. I know there is a more efficient and easier way to make this loop happen with BOOLEAN. Setting while(bool = … | |
Hello World ! Can anyone tell me how to put a '+' character at the screen centre in 3D World space..It should stay at the centre while moving camera..I don't want to use glutWarpPointer()...anyone who can tell me ..when I move my camera it must be at the screen centre.. | |
Write a program that emulates the DOS COPY command. That is, it should copy the contents of a text file (such as any file) to another file. Invoke the program with two CPP command-line arguments—the source file and the destination file—like this: C>ocopy srcfile.cpp destfile.cpp In the program, check that … | |
so..i found this on wikipedia but i dont really get what dist, previous, alt mean in here.. [CODE] 1 function Dijkstra(Graph, source): 2 for each vertex v in Graph: // Initializations 3 dist[v] := infinity ; // Unknown distance function from source to v 4 previous[v] := undefined ; // … | |
hey, I have to write a program that asks the user for an input amount (in cents) and the highest denominations of change (1c,5c,10c,20c & 50c). With these 2 inputs, the program then finds the distinct ways in which the change for the given amount can be made using the … | |
| Hi, just finding out about making a program that will switch my monitor mode from DVI to HDMI and backwards. Is there any of you guys that done similar thing? Is there a possibility to guide me where to start my research and coding. thanks for help anyway |
Design and develop a program for balanced delimiters checking . Use the stack class defined in STL. Your program should take from the user the name of the C++ program he wants to check and then opens it and processes its text and issues a message saying that: You the … | |
please if any one knows howa to solve this problem Write a program that asks the user for the level n that he wants and creates the Farey sequence as a linked list of fractions of level 1, then extends it to level 2, 3,...n. Below are input/output samples: Input … | |
Hi there, I have been given this question to complete but I can't seem to get my code working properly. I'm very new to C# so sorry if i come across as stupid! Here is the question... Create a class that represents the grade distribution for a given course. In … | |
Hi dudes, does anyone know where is the problem this my code: [CODE]void CMyListBox::loadSources(CMyListBox::eInputMode eMode,const std::vector<wchar_t>& coll) { wchar_t *pBuffer=new wchar_t[coll.size()]; std::copy(coll.begin(),coll.end(),pBuffer); wchar_t zodis[20]; while (swscanf_s(pBuffer,L"%s",zodis,20)) MessageBox(zodis); }[/CODE] the imput(pBuffer) is this string "šešios žąsys su šešiais žąsiukais." swscanf_s only keeps reading the same word "šešios" ... | |
hi, first of all im noob and 11 years old so don't blame me if something is wrong! i try to read a txt, see a version, read a txt on a server, see if on server newer and ask to update if yes. any suggestions? Oh and in C++ … | |
Hi, What can I create a list? I would like to know how to insert items in a list. I wrote this code [CODE] void addElem(lista *&head, int elemento){ if(temp == NULL){ head=new lista; head->value=elemento; head->link=NULL; temp=head; }else { lista *new_node=new lista; while(temp != NULL){ temp=temp->link; } new_node->value=elemento; new_node->link=NULL; temp=new_node; … | |
Hello. I have been out of programming in C++ for about a year now (around the time I took my last C++ class) and I am wanting to get back into it. So I decided to make a rock, paper, scissors game to refresh my memory but I am running … | |
[CODE]#include<stdio.h> #include<iostream.h> int main() { int x,y,z; x=y=z=5; z=++x||++y&&++z; printf("x=%d,y=%d,z=%d",x,y,z); } [/CODE] why the output is x=6,y=5,z=1?? shouldn't it be x=6,y=6,z=1 |
The End.