473,544 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
2
4,042
thread by: Fakhir | last post Jan 4 '23 by: BloomS
Hi, I need help in converting the pesudocode into c++ code. Initialize key = ROLLNO, extra = NAME_POSITION Start the iterator with value 1 If the iteration number is greater than 5, go to step 12 if the ROLLNO is greater or equal to 50 add five to counter subtract 2 from extra go to step 6
0
5,317
SwissProgrammer
thread by: SwissProgrammer | last post Dec 20 '22 by: SwissProgrammer
I have read that some Korean (Unicode symbols) do not work well with MultiByteToWideChar in C++. I am working on some code that does not use MultiByteToWideChar and I want to test it against some of those Korean characters to see if my code works for that. Please list a few (at least one) of those Korean characters that do not work well with...
1
11,827
thread by: CCCYYYY | last post Dec 9 '22 by: dev7060
Hi, I'm a c++ newbie, in a BinarySearchTree data structure I found this definition: void insert (const Comparable& x, BinaryNode *& t); void insert (Comparable && x, BinaryNode *& t); so, what does "&&" mean? it means "const &" Thanks CCCYYYY
1
13,312
thread by: Anwar ali | last post Dec 9 '22 by: dev7060
How to lock floder directory so that it CAN'T seen by other? plez some one explane me this project.
1
9,756
thread by: lumer26 | last post Nov 28 '22 by: Larisabrownb
I am building a student registration system for college The implementation must contain: (1.1) Creation of the constructed record type - with at least 5 variables, three of which have different primitive data types -, declaration of the vector variable of the constructed record type (with at least 3 indices), and registration function...
0
8,503
thread by: lumer26 | last post Nov 25 '22 by: lumer26
I am building a student registration system for college The implementation must contain:
0
7,419
thread by: lumer26 | last post Nov 25 '22 by: lumer26
I'm creating a student registration system for college The implementation must contain: (1.1) Creation of the constructed record type - with at least 5 variables, three of which have different primitive data types -, declaration of the vector variable of the constructed record type (with at least 3 indices), and registration function WITH...
5
17,232
thread by: Chris3020 | last post Nov 23 '22 by: Chris3020
I have a simple utility expecting three command-line arguments: ./myutil -k 123 45 argv is a text flag of some sort: memcmp() against allowed flags; works! argv and argv need to sit in unsigned 32-bit integers and are required to be >= 1. For now I'm using: strstr() to look for "-" ...and assuming absence of "-" means +ve...
1
7,654
thread by: EhYay | last post Nov 19 '22 by: dev7060
How do you store whole sentences in a variable? I want to print out sentences using variables. I tested with a 'string' data type and stored individual sentences as an element then used a 'for' function to print them with a delay between each sentence. The result is an error, upon building it, saying at this line: Full code: #include...
3
19,091
thread by: vasuprasadula | last post Nov 12 '22 by: doze121
Hi all I developed a client server program that uses secure RTP API's. This program opens a text file and read the content of the file and sends it to client. At the client side the content will display on std output. To read the content of the file i used fgets(). The real problem was, when i tried to transfer a file by reading its content...
10
22,233
thread by: EhYay | last post Nov 10 '22 by: EhYay
I've been looking around the web about how to make the program wait for a set amount of time and discovered this type of code. However, my IDE says it cannot resolve Sleep(). I have included the appropriate library and even tried its variations. I'm confused about what's wrong and would much appreciate help. #include <windows.h> #include...
3
13,905
thread by: Ronak mishra | last post Oct 17 '22 by: dev7060
I don't know why but i am getting an error showing "command-line error: missing source file name C/C++(593) '' Pls help me as I am new to it.
1
11,010
thread by: Ronak mishra | last post Oct 4 '22 by: dev7060
I am new to using laptop so I don't know much about it , so pls help on how to download c++ compiler , how to run a programm , what is git and github , what is g++.
1
10,895
thread by: vlnikolic | last post Oct 4 '22 by: dev7060
hello i would like to create a tree like structure in c++. since the number of children per node is arbitrary i would like to use stl vector for tree creation. tree should look something like this: https://i.postimg.cc/8zzT6jvJ/Diagram1.png also
0
8,624
SwissProgrammer
thread by: SwissProgrammer | last post Sep 30 '22 by: SwissProgrammer
I am using C and C++, whichever works. Prefer Win32 if that works. CodeBlocks. No dot net. No visual studio. No MFC. I tried writing this on my own, but it is beyond me. My latest attempt has been the following: I have been studying DrawText function from microsoft.com to write text to a bitmap. Then I tried using similar to from...
0
5,698
thread by: rosydwin | last post Aug 26 '22 by: rosydwin
Hello everyone, today's tutorial is about UART parity. We have already introduced how to write the driver for the UART of T5L screen in the previous course, so today we will explain the parity check based on the content of chapter 9. 1. Theoretical knowledge Before formal explanation of the encoding, let me clarify the theoretical part about...
0
4,568
thread by: dwinrosy | last post Aug 23 '22 by: dwinrosy
Hello, everyone. Today I will teach you to drive the matrix keypad by DWIN T5L ASIC. 1 The internal diagram of the matrix keyboard. First of all, let me introduce the matrix keyboard used in this tutorial. There are sixteen keys on the matrix keyboard, in the order of the first key number is 1, the remaining keys are 2, 3, 4, 5, 6, 7, 8. The...
9
21,078
thread by: georges the man | last post Aug 19 '22 by: dev7060
how do i sort dates in c. i have dates in a file in the following format: dd/mm/yyyy ie 12 aug 2006 i want to sort the dates in the file in an assending way. how can i do this?
0
3,261
SwissProgrammer
thread by: SwissProgrammer | last post Aug 17 '22 by: SwissProgrammer
// The next line was OK until I used w of std::wcout std::wcout << "bitset<8>(data).to_string() = ).to_string() << "] binary\n\n\n"; // error: no match for 'operator<<' (operand types are 'std::basic_ostream<wchar_t>' and 'std::__cxx11::basic_string<char>')
0
3,023
SwissProgrammer
thread by: SwissProgrammer | last post Aug 16 '22 by: SwissProgrammer
I have been reading Stroustrup's C++11 fourth edition and studying it. But, I can't seem to make the following work. I have a binary, utf-8 file with the proper BOM. In that file is the letter "e" which I want to read as a const wchar_t* or at least as a wchar_t . This is simplistic (ASCII characters) for now. I later want to be able to...
0
2,957
thread by: dwinrosy | last post Aug 15 '22 by: dwinrosy
Hello, everyone. Today I will teach you to draw 2D graphics on DWIN screen by Keil c51 development. First, I will introduce the basic touch control in the development guide of DGUS. Note that a basic graphics display control can only draw one type of graphics. Next, I'll describe the data storage format of the basic graphics control at vp....
7
10,918
thread by: wwfarch | last post Aug 10 '22 by: wkailey
I'm working on creating a K-Nearest Neighbor classifier and having some problems that I can't figure out. I have a header file KNNClassifier.h and its class file KNNClassifier.cc In KNNClassifier.h I have the following declarations: class KNNClassifier{ ... map<int, string> classNames; map<int, DataStore*> lastDataStores; map<int, int*>...
0
9,199
SwissProgrammer
thread by: SwissProgrammer | last post Jul 30 '22 by: SwissProgrammer
Using Windows, CodeBlocks 17.12, GCC 5.1 . I have a file that I created in C++ and I added a byte order mark to the start of the file. I read from that file and I am able to read the first byte of that file giving me the first part of that BOM (which I know is there since I put it there). I would like to place what I read into a...
1
9,263
thread by: VladTsyb | last post Jul 26 '22 by: dev7060
In the directory where the program is located (C:\2022\Work\programming\engineering\my-works\my_game\programs), there is also the glew-2.1.0 folder, which contains the include folder, which contains the GL folder, which contains header file glew.h. When I try to run the program in Visual Studio Code 1.69 (Windows 10 Home), the following text...
7
27,682
codegeekguy
thread by: codegeekguy | last post Jul 13 '22 by: Khushi16M
Hi, I wanted to know if is there any simple code that can compare two different strings in C++ easily.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.