Beginners - April 2020 (Page 11)

first time installation. getting error ld. exe cannot find -lsprite
 
I installed code blocks first time. I am using windows 10, code blocks version 20.03. When i am trying to compile code i am getting error: ld.exe cannot ...
[6 replies] Last: I tested my C:B 20.03 install, twice creating a new project. 1st usin... (by deleted account xyzzy)
Failed usage of functions under chrono header
 
I'm trying to get the time taken for a process to happen (from the start of the program until my calculation achieves a certain value). However, I keep getting ...
[9 replies] Last: Thank you again for your help! (by kbklpl21)
while ((ch = getchar()) == ' ') equivalent in c++
 
I believe this is c code, so what is the equivalent of this line in c++? while ((ch = getchar()) == ' ');
[3 replies] Last: It's skipping spaces. When it finally reads a non-space, it returns th... (by dutch)
by pkdir
Reading fixed-format file (two delimiters)
 
I'm trying to read in a file that is in the format: name:project:specification. An example file: John Doe:Cat:ABCDE. Carly:Mouse:DEFG. I also want to chec...
[12 replies] Last: Yes that's the syntax, I also want to make sure it contains no invalid... (by pkdir)
How to read only what comes after the comma from txt file
 
I have a file that has several presidents' names and their party affiliation, like so; George Washington,Unaffiliated John Adams,Federalist Thomas Jefferso...
[2 replies] Last: Thank you! (by aliciabilbao)
by sparki
C++ Pointer to pointer arrays
 
Hi guyz, So I am learning about the use of pointers to pointers, and I have implemented a program below on the sorting of arrays. But I kept receiving an error...
[4 replies] Last: One more thing: int &temp = x; // temp is a reference, not a copy x =... (by keskiverto)
Recursive Function Reverse Integer
 
Assignment is to utilize recursive function to display a number in reverse. One function must output this reversed number, while the other must keep the first d...
[7 replies] Last: #include <iostream> using namespace std; int swivel( int x ) { in... (by lastchance)
C++ Array of Linear Linked Lists (using different pointers?)
 
Hello - I am wondering if its possible to create an array of linear linked lists, with each list being of a different node type? This is for an assignment as...
[2 replies] Last: They haven't said no... so maybe? (by confundido)
Question about ntqueryprocessinformation?
 
So I really don't have much of a point to doing this, really just playing around, testing etc. Really just a learning exercise. So I'm attempting to use nt...
[11 replies] Last: ok i gotcha. That is nice little trick. ty for all your help. (by markyrocks)
Getting Significant Figures During Division
 
I'm trying to learn how to code and I decided to try and make a calculator. I've got everything working but I can't get decimals from division. I've tried doubl...
[1 reply] : I didn't bother to look at your "full code". Presumably first and seco... (by dutch)
by R0SsAN
Reading Memory for Anticheat
 
Hi, me and a friend of mine are doing an anticheat tool but we have some problems.. We wanted to create an autoscan that automatically takes all the strings pr...
[2 replies] Last: Sounds like Rossan already did look up OS documentation (ReadProcessMe... (by Ganado)
Question about elapsed time!
 
Hi, I have to create a project that tells you the time elapsed. Let's say you want to now the age of George, we will input his birthday 20/04/2020 and the ou...
[5 replies] Last: Use mktime() to compute the time_t that corresponds to noon on each of... (by dhayden)
I don't understand what my assignment is asking me to do?
 
Here is my assignment below: Design and write a C++ program that accepts input from a file and uses an STL stack of characters to process a line of text in ...
[15 replies] Last: My previous post was just some context as to 'what the user sees'. You... (by booradley60)
Returning to beginning of while loop halfway through?
 
I need help with part of a vending machine assignment. If the user's chosen drink has run out, I want it to return to the beginning of the while loop instead...
[5 replies] Last: Hello almostdone, Any time.Glad it worked out for you. Andy (by Handy Andy)
Can heap variables have an identifier?
 
I've always thought of variables stored in the heap as variables that can only be accessed (indirectly) through a pointer, and not having an idenfitier of their...
[2 replies] Last: Hello anarelle, I have never really tried this, but I believe you cou... (by Handy Andy)
Nested structs and the usage of this
 
Suppose I have the following code: struct N { int a; struct NN { int b; }; }; Is there a way to write a function in the inner struct that wo...
[8 replies] Last: jonnin's answer is what I was looking for. Thank you! (by arczi w)
Raeding and searching byte array from file
 
Hi, I'm writting a simple code to find in wich offset of a given file there is an array of bytes. For example, searching 0x66 0x7C 0x1B 0xAA in a file. I wrote...
[3 replies] Last: Yes, something like that. But you can move the find array outside the... (by salem c)
Priority Queue
 
I have a priority queue which I populate. Another function will pop its first entry, calculate a departure time and push it into the priority queue. I follow th...
[4 replies] Last: Thanks for the clarification. Sounds like I need to read up on exactl... (by stoneJax)
if statements
 
i am trying to extract the values from filterData vector. I want to pull out the values and the index they are located at but i am stuck at what to actually put...
[6 replies] Last: okay thank you that helps a lot (by jtek679)
Function not executing
 
Hi, both the compiler and debugger don't show any errors except the program only runs until when I call the function first_2_opt(n, d, f, p) at line 69 from h...
[9 replies] Last: Hi MikeyBoy, Because when I tried to print something in the loop noth... (by kbklpl21)
April 2020 Pages: 1... 910111213... 20
  Archived months: [mar2020] [may2020]

This is an archived page. To post a new message, go to the current page.