i saw that but i wasn't sure. ty.
Type: Posts; User: jeremy duncan
i saw that but i wasn't sure. ty.
here's how i delete the vector in the code in post 7. does this look right, the last 2 lines in main:
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using...
thats beautiful. ty!
write the j address in the file, this sends a error in the ReadTheTest function, then get a count of how many addresses are bad. should just be one. that function then sends a blip somewhere showing...
this is what i came up with:
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
void ReadTheTest()
apparently:
"The size of an array is static in C++. You cannot dynamically resize it. That's what std::vector is for:"
and
"With STL containers, the value type is required to be assignable....
i see here is something like what i want but its not possible using vector push back.
c++ - Why can't I push_back to a vector of const elements? - Stack Overflow
is there some other way to...
#include <iostream>
#include <vector>
using namespace std;
void test(vector <int*> v)
{
for (int i = 0; i < v.size(); i++)
{
if (v[0] == v[i])
{
laserlight said they werent right so i redid them it took a few days, my other thread was locked.
GitHub - learningToProgramGames/flow: removing the jerkiness
im not making a hacking program,...
i updated the readme, to make it easier to understand what i was going for with the program.
the names in the code are as good as i can make them, its not technically based its what i think they...
fwiw i did a few bug fixes to the code, its all done now though but i wanted to say i updated it if you dl the old version and found the bugs. so from here on if you look at it and find bugs or...
i finished making what i was making and felt bad you didnt know what i was trying to code so i decided to share my github where my project is t and you can read all the code there to see what i did....
im not familiar with the xy problem, but my problem was i had a switch condition i needed to clean up.
i have since finished my initial examination of my code, and will post if here for you and...
here's my finished code. i need to cross check it before putting the if statements in the switch statement into their classes to clean up the switch statement.
i have to read the code now and...
heres my code so far, notice the comments in the switch case is the code is still need to make.
#include <iostream>
#include "one.h"
#include "two.h"
#include "three.h"
#include "four.h"...
i think i can make it cleaner but i dont know how;
void test(int &value_1, int &value_2, int x)
{
switch(x)
{
case 0 :
for a idea like heap sort here is the way it should work, but it may not be heap sort because of the logic.
- node 1 = all the possible words = (lion, and, mouse) = lines 2, 4, 6
- node 2 = less...
i made some code that does what i wanted and will post it as the answer to my question;
heres the code;
using System;
using System.Collections.Generic;
using System.Linq;
using...
this is the algorithm i drafted for the last two updates in my previous list;
2 lion and mouse
3 and mouse
4 lion and mouse
5 lion and
6 lion and mouse
7 lion mouse
step 1;
here is the code plan i wrote up so far, no coding done yet;
updates still to do:
- the words are in the articles lines
i write the line the word is on, as the first word, then i write the...
hey thats nice sorry for the delay i was busy.
my code words but its ugly;
string word = "Hello World donkey kong";
if (word.Length > 0)
{
int i = word.IndexOf(" ") + 1;
string...
i found out what i was doing wrong. i shortened the string by removing duplicate words, then i counted the original longer version and it didnt match up with what should have been counted.
so with...
i have a bunch of string each in their own array element.
i put each array element into its own new array, the new array holds each word of the string.
i take the array holding individual...
i was giving the wrong input. it was returning what it was supposed to for the input i was giving it. i made a mistake. when i put the code without the p for loop in a class then called the function...