49,761 Topics
| |
| Greetings everybody, I have been using Code::Blocks for only a few days. I have developed lots of GUI applications in other IDEs. But, when I try to start a GUI project in Code::Blocks, I am having compile error, even thoough I change nothing in the generated project. I mean, even … |
Hello, I am making a 2d shooter game, and I dont knnow how to make the player's ship move left and right with left and right arrow keys... please help me. I have to finish this project before 6th... please help | |
I'm supposed to just read a file and display certain information. I wrote the file in notepad and have it in the correct folder for my project, but when it opens (it DOES open), it doesn't display anything. Ideas? #include <iostream> #include <fstream> using std::cout; using std::cin; using std::ifstream; int … | |
How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name. | |
I am having trouble finding out if I did the header correctly #include <iostream> #ifndef TREE #define TREE // Node class class Node { int key; Node* left; Node* right; public: Node() { key=-1; left = NULL; right = NULL; }; void setKey(int aKey) { key = aKey; }; void … | |
I have this working like it should (I think) except that it is cutting off the first letter of the first display name unless I add a space before the name. I have tried using just using cin >> soccer[i].name but it doesn't work, it skips over the name entering … | |
please i have a little problem creating a class and making it run. The class is created separately as a header file with it's source code. whenever i build the source code of the class, i get an error that says: undefined reference to 'WinMain@16'. And whenever I run the … | |
I'm doing a program on a quiz using DEV C++ and i want to set a countdown timer for it. As the user is doing the quiz, he's able to see the timer and once the timer reaches 0, the quiz automatically stops. Is it possible to do this? Thanks … | |
Hi i developed a C++ code for tracking a yellow colored object. IDE: CodeBLocks Opencv Version:2.4.6 Language: C++ Following is the code for yellow color detection, which i was able to successfully perform. #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; Mat GetThresholdedImage(Mat image_here) { Mat … | |
| Greetings everybody, I would like to ask you if there is any tutorial about libusb I could learn how to use quickly. Additionally, how could I use libusb in visual studio, currently have VS2010? I can already access it in Ubuntu, but desire to use in also Windows. Thanks |
Hi guys, Error- collect2.exe:fatal error:cannot find 'ld' compilation terminated Compiler:gcc library:mingw I have done quite a bit of internet search and followed a discussion pertaining to this on daniweb,but to no avail.Am working on code blocks. Initially there was no problem, then i linked libws2_32.a and even though it compiled … | |
Hi, anyone like to offer some extra eyes on this problem? I am having trouble with the array pointer and with the variables. I don't seem to have the pointer set up because the additional times the array is called it is empty. Also, if I don't use integers the … | |
guys i need help with my program.if i run this code its crashing. if there is a value in my QLineEdit the button **BMIINTERPRETATION** must activate, i set it like this( **bimout->setDown(true)**) so here is my code. i don't know where i am going wrong any help will be appreciated.thanx … | |
Hello everybody. After 3 hours of constant searching, I have finally given up on finding a program that recovers a password protected word document. So, I coded my own program that goes through every single letter combination of any desired length. Now, all I need to do is have the … | |
Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 for hours worked and pay rate. Use a class … | |
Line 49 is giving me a C2679 error and I'm not sure how to fix it. Help? #include <iostream> #include <fstream> using std::cout; using std::cin; using std::ifstream; using std::ofstream; const int MAX_SSN = 12; const int MAX_WAGE = 6; const int MAX_HOURS = 3; const char STATUS = 1; int … | |
[code=C++] #include <iostream.h> int main() { char word[32]; int x = 0; cout << "Please enter the word (maximum 32 characters):\n"; cin >> word; cout << "The ASCII for this word is:\n"; while (word[x] != '\0') // While the string isn't at the end... { cout << int(word[x]); // Transform … | |
greetings just started with C/C++. Im not quite comfortable porting from java to c/c++. Pointers are quite hard at start. So pls help me with this problem I want to copy the exact data of a certain pointer to an array of struct. Not just point a pointer from another. … | |
hello there i have a homework in c++ and a i dont know how to do can you help me please... | |
Hi guys , I would you to help me to solve this problem First , user need to input 10 numbers Ex : 85 11 36 174 112 24 73 52 183 149 Next , user need to input the initial number . This initial number will determine whether the … | |
Creating a text editor. Thread 1 creates a file and listens for user input. Thread 2 checks for spelling mistakes. How do I show spelling mistakes on the console? Should I highlight the text that has the spelling mistake? I tried that but it just highlights the following text in … | |
Ada Yang Bisa Bantu Agan2 Master mau tanya penjelasan dari baris per baris program C++ ini gan apa ya #include<iostream.h> #include<string.h> #include<stdio.h> void main() { int i,j; char tabStr[50]; char temp[50]; cout<<"Masukkan kalimat "; gets(tabStr); i=0; j=strlen(tabStr)- 1; while (i<=j) { temp[i] = tabStr[i]; tabStr[i] = tabStr[j]; tabStr[j] = temp[i]; … | |
I need to monitor disk, to know how much data is being written on my disk per day. I came across "**Win32_PerfFormattedData_PerfDisk_PhysicalDisk**" Class.But the problem is that returns different values among them 0 values.My questions are -why these values keep changing? -i got 2 instances from this Class and i … | |
I have made a 6 bit Linear Feedback Shift Register, the user enters 6 bits as the initial card, this bitset is called inpSeq, the user also enters 6 bits representing the polynomial. A for loop examines this polynomial bitset for bit 1's, bit 1's position in the bit set … | |
Hi, I would like to know the code for this problem: Write a program that asks the user to enter 5 numbers and display the numbers in descending order in iostream. | |
Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index. | |
can sb help me?İ have to make a project.... 4.power polinoms i have to find the real roots an complex root. anybody any idea for these. Thanks....! | |
What's the difference between: int once; cout << "ok"; and this: char twice; cout << "ok"; Is the output for the first one just ok and the second one ok ok ? |
The End.