49,761 Topics

Member Avatar for
Member Avatar for khaled02

Hi, I hope you can help me out of this because i really dont understand how to fix this code anymore, i tried and tried and it don't work. When i debug this code in Microsoft Visual Express 2010, it says the following erros are: 1>------ Build started: Project: Adreesbook2, …

Member Avatar for khaled02
0
238
Member Avatar for ALosh99

Hello, I am trying to write two equations, each element in the equation is an arry , double XDiffusion (int D,int D11, int x, int s) { float DeltaX; return DeltaX; } double YDiffusion (int D,int D11, int x, int s) { float DeltaY; return DeltaY; } int main() { …

Member Avatar for ALosh99
0
611
Member Avatar for Kunora

Hello guys, our teacher gave us this code to transform it into a code that includes classes. It is about students registration into courses. It has also logical problems. Since Im new in C++ I really need your help, this is important. thank you

Member Avatar for 2teez
0
109
Member Avatar for Romina_1

Hi guys! I'm new in c++ so i really need your help. I have to do a project Student Course Registration. I have to do a program where students can insert their id name and course. I have to use classes in c++

Member Avatar for ddanbe
0
147
Member Avatar for whaleflipper

I'm a noob at C++ and this is the first assignment in my class. I'm not sure If I did it right. Can someone please check and correct it please? Thank you Question: develop the pseudo code for the following: Negotiating a consumer loan is not always straight forward. One …

Member Avatar for invisal
0
709
Member Avatar for can-mohan

Hi, Guys i just wanted to know whether set store elements in specific order or it contains unordered elements only. As per c++ specification http://www.cplusplus.com/reference/set/set/?kw=set Sets are containers that store unique elements following a specific order. As per my knowledge they are not ordered in the sense that you can't …

Member Avatar for JamesCherrill
0
300
Member Avatar for munchlaxxx

I really need help with this. I've been using Visual Studio for C++ and Assembly, and I can build my projects with zero errors, but when I try to Debug I get the message: **Unable to start program "C:\mypath\Debug\filename.exe" The system cannot find the file specified.** or if I Start …

Member Avatar for Mauricio_4
0
17K
Member Avatar for Darth Vader

Hello, I try to catch the HTML code from a webpage after I have logged in to a page. HTML is returned but that is the orignal HTML only BEFORE I logged in. For example I try to find "Log out" and other content in the string "getDocumentHTML" returned which …

Member Avatar for JOSheaIV
0
342
Member Avatar for can-mohan

Hi, In below design a big problem is whenever DoSomething() signature is changed to introduce new functionality caller class (return m.DoSomething()) also needs to be changed which might not be aware of this change. kindly suggest good design to get rid of this flaw. class MyOtherClass { int m; public: …

Member Avatar for can-mohan
0
225
Member Avatar for can-mohan

Hi, In below function i am not able to figure out why predicate function cmp_str can't be used with for_each algoritham while using this algoritham with map. #include <iostream> #include <map> #include <utility> using namespace std; struct cmp_str { bool operator()(string a, string b) { return a.compare(b)<0; } }; int …

Member Avatar for can-mohan
0
3K
Member Avatar for ibthevivin

This program challenge was given to me by my Professor for extra credit. He said it includes some programming that we haven't learned yet in our C++ class. Messed up... Ideally I would love if someone would do this for me, but we all know that's not happening. lol Anyways...could …

Member Avatar for ddanbe
0
3K
Member Avatar for Paul7

Hey my People, I'm brand new in C++ that i cherish so much to learn. Please can you help...What do i need to install as system environment so that i could work with my computer having just Windows Pofessional? i need you to give me the element to install like …

Member Avatar for rubberman
0
73
Member Avatar for Paul7

Hey my People, I'm brand new in C++ that i cherish so much to learn. Please can you help...What do i need to install as system environment so that i could work with my computer having just Windows Pofessional? i need you to give me the element to install like …

Member Avatar for rubberman
0
143
Member Avatar for harshguy

We started learning C++ in our class at school a few months ago, and hence, we have to download and use Turbo C++ 3.0 (90s software, ugh), as we don't have to change the syntax at all. Till now, I managed on Code::Blocks on my sister's Windows, but I want …

Member Avatar for mackit
0
1K
Member Avatar for Mr.M

Hi Dw. I'm new to C++ nor Win32 app dev. I want my app to stay open or running even if I'm not interacting with it. And how to write a close call. In VB to close it you just right: Close() How can I achieve these two? Also how …

Member Avatar for tinstaafl
0
243
Member Avatar for Mr.M

I'm getting "error C2039: 'AllocSysString' : is not a member of 'System::Char' error. I'm trying to assign the result to a string variable. wchar_t str; return str.AllocSysString(); But I'm getting the above error.

Member Avatar for tinstaafl
0
206
Member Avatar for Michael_48

I am having a hard time comparing my if else statements and getting it right. I want to ask for male or female, and if male then I can respond "Hello, Mr...." and if it is female then I can respond "Hello, Mrs...." #include <stdio.h> int main (void){ int firstNum; …

Member Avatar for David W
0
303
Member Avatar for Darth Vader

Hello, I use the webkitbrowser which is simular to the webbrowser. Now on a website, I want to programatically insert a string into a textBox. This I have succeeded to do like this: webKitBrowser1.Document.GetElementById("txtbox1").SetAttribute("value", "hello"); After this I will need to programatically click a button that will check that "hello" …

0
150
Member Avatar for Fatima Tahir

I searched that question but didn't understand the answer that is: We can traverse the tree in O(n) time and insert each element into an initially empty AVL tree; this will take O(nlogn) time overall. To get O(n) ‘best-case’ performance we can do something that’s a bit of a hack: …

Member Avatar for deceptikon
0
433
Member Avatar for sirlink99

Hello everyone, I am trying to write an object loader in c++. Currently, I have a file that is made up of many sub objects and I am having a little difficulty figuring out how to process the data. First of all, here is an example of part of the …

0
179
Member Avatar for clife

Hi, I would like to learn dbus as i encounter it more in my daily work.The problem is that the applications already using it are very complex and there is very less scope to understand exact use of DBus communication. I know other IPCs like message queue, socket etc, the …

Member Avatar for rproffitt
0
181
Member Avatar for Kenny Robertson

Hi Guys! "can you teach me how to Disable Button Until All Textbox Is Not Empty." in my design form Named login. I have 2 textbox and 2 buttons I want to disable the buttons until all textbox is not empty i try everything i know but its not working …

Member Avatar for JOSheaIV
0
989
Member Avatar for Sameer_6

I want to make a menu driven program in which I have 4 options 1) input() -Inputs the data WITH A UNIQUE KEY (AND CHECKS FOR REPETION) and writes it to a file 2)output() - Outputs the data using a UNIQUE KEY (WHICH WHEN NOT FOUND GIVES AN ERROR) 3)delete() …

Member Avatar for rubberman
0
303
Member Avatar for nebiyu elias

c++ code to count and print the number of lines,words,and word frequencies in the file

Member Avatar for rubberman
0
102
Member Avatar for alfadil ahmed
Member Avatar for David W
0
272
Member Avatar for rose_2

this code is correct expect that part which calculate the waiting time .. it should be 0 in first process but in output it equals the burst time of 1st process. how can i fix it ? #include <iostream> #include<iomanip> #include<queue> using namespace std; int main(){ queue<int> sc; float tat …

Member Avatar for tinstaafl
0
1K
Member Avatar for Sameer_6

Please Help me out!! After many tries I'm unable to return a string from a function. Please reply with the corrected code! I want it for my High School. Thanks in advance! I've shortened the code here. #include<iostream> #include<iomanip> #include<conio.h> #include<cstdlib> #include<fstream> #include<string.h> #include<stdio.h> using namespace std; string logdisplay(int log) …

Member Avatar for Suzie999
0
271
Member Avatar for lewashby

I'm reading 'C++ For Dummies 7th Edu' and I'v ran into this little snipet that's confusing me. BOOK You can add const-ness, however, as in the following void fn(char* pName) { // declare following is allowed even though // declared Student(const char*) Student s(pName); // ...do whatever... } The function …

Member Avatar for lewashby
0
264
Member Avatar for rose_2

i know it's too much long but i really need some help to fix the program errors , am stuck within whole code lines and ma mind went confused .. it's airport simulation program the airport has one runway .. one plane can land and one plane can fly but …

Member Avatar for David W
0
248
Member Avatar for Medo_5

hello everyone i just started my implementation of a bigint class and i got stuck is there a way for me to dynamically allocate the memory so i wouldn't have a fixed number like this num[50] and is there a better way the imrove my display method thank you in …

Member Avatar for rubberman
0
178

The End.